We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Display product collection without limit in Magento 1

I created a custom module that redirects your homepage to a landing page (CMS Page) that is a campaign page, for example, black friday. I've created a new layout for the page, layout that uses a ...
0
votes
0answers
6 views

Google search results show the from x to y article?

Almost any search result in Google which is for the category page has the artice amounts in the result, see https://prnt.sc/pwbmvi. Any idea how to prevent this? Magento 1.9.3.7
0
votes
0answers
11 views

Magento 2 How to expand all category filters by default?

I am using Magento 2.3.3 and there are multiple filters are on my category list page. I also used the "Manadev" layered navigation. which allows showing all filters if you select anyone of them. now:...
2
votes
1answer
22 views

How to get the categories child category list per store in magento2 rest api

I need to retrieve categories and child-category list per store. I have two store have store code grocery and fruit.
0
votes
0answers
15 views

Magento2 : How to apply different image size in multiple categories?

I want to show different size images on multiple categories. let suppose I have 3 categories : - cat1, cat2, cat3 I want to show images as below: => cat1 want to show 240 x 240 images => ...
0
votes
0answers
16 views

Magento 2 show products by in root category

i want to show all products in root category , i can not see any option in root
0
votes
1answer
19 views

Magento 2.3 Product Category not showing changes on frontend

I am wondering if anyone can help. I have made some design changes to the following category: https://www.valvesonline.co.uk/manual-valves/ball-valves.html However these changes do not appear on the ...
0
votes
0answers
18 views

CategoryManagement class, how to move at top

I found a problem with a custom script in our Magento 2.3.3 installation. The custom script tries to order the categories. There is a usage of the move function from the CategoryManagement class. It ...
0
votes
1answer
17 views

Wrong sort order on category page Magento 2.3.0

I have created an attribute that is used for sorting on the category pages. The sorting order is numeric. Expectation is that sorting order is: 1. 1 2. 2 3. 11 But the actual sort order is: 1. ...
0
votes
1answer
18 views

Convert system url categories

I have a store view: - Default - First store - Second store The second store has a problem with the categories First store - its URL looks like this: firststore.com/category-name/ when i go to ...
0
votes
0answers
8 views

How to display category image with the label in the top menu in Magento 2.3

I'm new on Magento, I want to display the category image with the category name without using an extension, is it possible ? Thank you.
0
votes
0answers
18 views

Magento 2: Make a view all link in sub category

I have a category, I want to check if(sub_category > 20) { link <a>view all</a> category and it link redirect to new page show all sub category } else { not show link view all ...
0
votes
1answer
16 views

Error “URL key for specified store already exists” when enable “Anchor” in category in Magento 2.3.2

Categories in two different parent with same url-key. First category in the list is saving fine when we update anything in that. But when I am enabling Anchor => Yes In the second category with ...
0
votes
1answer
38 views

Magento 2: How I can use category DataProvider in Admin Grid

I am trying to add Category Grid in Magento 2 I created A grid and add Dataprovider Magento\Catalog\Model\Category\DataProvider Here is Code of My DataProvider <dataSource name="...
0
votes
2answers
41 views

How to programmatically add suffix to the catalog title in Magento 2.2?

I need to add the suffix to the catalog page title programmatically for SEO. Currently in view source code i am getting catalog category page title like <h1 class="page-title" id="page-title-...
0
votes
2answers
48 views

How to override the category controller in Magento 2.3?

How to override the category controller in Magento 2.3? Please give me any solution?
1
vote
1answer
42 views

Magento 1.9: How to get the appropriate products attributes details?

I just display my attributes on the PLP page, but the attributes duplicates or mismatch, actually I am using $attributes = $_product->getAttributes(); for getting appropriate attributes, but my ...
1
vote
1answer
42 views

Magento 1.9: Change Grid/List View Based on Category

My default view is List view, how can I change based on category.
1
vote
1answer
52 views

Magento 2 - Assign product to category on frontend

I am creating a frontend from for Sellers to add/edit their product on website, product adding/editing is working perfect. Now I have to assign that product to a category Almost on every article and ...
1
vote
2answers
36 views

How to load category image in frontend?

We have created a megamenu and want to load the category image on the menu. I'm not sure how to load that. As of now, we have just hardcoded the image. Below is the code: <?php namespace ...
0
votes
0answers
9 views

Magento 2.3.1 Category filter option

I need to enable category filter options. I noticed that the "Use in Layered Navigation" dropdown is disabled under product attributes storefront properties. how can I update this to "Filterable (with ...
0
votes
0answers
12 views

Remove single category in sidebar in category list page in magento2

Remove single category in sidebar in category list page in magento2
0
votes
0answers
9 views

301 Redirect For Category with forward slash

We recently deployed a Magento 2 site. Fresh install on a new https:// domain Set category suffix to blank Not .html or / What is occurring is, I am getting a 301 redirect after some categories: ...
1
vote
1answer
15 views

Magento 2 add parent category class to body for product listing page

I have number of subcategories under a main category called 'services'. I want to add a custom class 'service-listing' to body on all the subcategory pages under this category.
1
vote
0answers
9 views

magento 2 How to customize product list pages of all subcategories under specific category?

I want to customize all subcategory pages whose parent category is 'Services'. The customization includes following: Remove Toolbar Add filter for gender (gender is product attribute) Add custom ...
0
votes
0answers
19 views

How to Filter Current Category Layer's products colletions by instock and qty greater than zero(0) condition in List Page Magento 2

Please check below Code: di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
1
vote
0answers
17 views

Custom Canonical Tag in Magento 2 Category with Magework seosuite

I try to show custom canonical for category with Magework seosuite, but this function I think that not is possible. Is there a way to do this, maybe with an extension or plugin of this module ? Thank ...
1
vote
0answers
19 views

Magento 2 exclude products from catalog price rules

I'm facing this problem. I have around 70 products in different categories and different attributes sets, but with the same common attribute (SKU). I have 3 catalog price rules which applies ...
0
votes
1answer
25 views

Magento 2 category image 404 with store code in url

I have a phtml file in my theme that is added to category page via XML updates tab. I read image in phtml like so: $this->getUrl('media/catalog/category/').$_category->getImageUrl() My theme ...
0
votes
0answers
24 views

Magento 2: How to redirect the category url path to custom url (to hit search page url)path

My Requirement: I need to redirect the URL while clicking the main category in the menu For example : From https://penqueen.com/test.html To https://penqueen.com/?q=item_class_pink=Ballasts ...
0
votes
3answers
29 views

Magento 2.2.8 - Add Custom Attribute To Category

I need to add a wysiwyg attribute to the Magento categories, this needs to sit within the 'General Information' tab. I can't seem to get it to work and I've had a look around on StackOverflow and I ...
0
votes
0answers
17 views

How to create a category in Magento using SQL

My attempts at creating a category with PHP fails while flat_categories are enabled in the system. Reference here. So, I want to create a new category in Magento 2 using SQL. How would I do that?
1
vote
0answers
28 views

Layered navigation and categories filter

I'm using multiple layered navigation filter (https://github.com/SlavaYurthev/MultipleLayeredNavigation-M2) is allows to select multiple categories at once. But categories filter is not working, I ...
0
votes
1answer
18 views

magento 2 get first level category from current catgeory ID in controller

I am trying to get first level category from current category ID in my controller . For example- I have Maincategory SubCategory1 SubCategory2 SubChild1 SubChild2. ...
0
votes
1answer
43 views

How to load Category image in top menu?

I have loaded the category and sub-category, now I need to load image as well but I'm not sure how to do that. Below is the code I have used: In block file: public function getStoreCategories($...
0
votes
0answers
4 views

Import category url key and meta tag programmatically

I want to import my magento2.1 categories url_key and meta title programmatically. how can i do?
1
vote
1answer
22 views

Delete or Save category works in bootstrap file but not in my custom API controller when flat categories are enabled

I am trying to create and delete categories in Magento 2 but am facing some issues while doing it when Flat Categories option is enabled. The weird thing is, my code works fine when called from a ...
0
votes
1answer
30 views

Magento 2: load disabled category childrens

I need to get all category children of a specific category but disabled categories too. I have this category tree: + Root (ID: 2) // enabled | + Main 1 (ID: 3) // enabled | | + Sub 1 (ID: 4) // ...
0
votes
1answer
23 views

it is possible to remove sidebar for specific category product listing?

my file : Vendor/theme/Magento_Catalog/templates/category/products.phtml i made this changes ` if($category_name == 'Featured Product'){?> <!-- when Featured Products --> &...
1
vote
2answers
81 views

Magento2.3: How to get sub category for parent category?

I have installed Magento2.3.2 EE on local. I have seen that the default category menu is not working correctly so that we want to load category and subcategory collection at top menu position with our ...
4
votes
1answer
49 views

Product to category redirect

Is there a way to link/redirect a product page to a category? Scenario: I have 70-80 new products that all go into the same category. I can either chose to put one of the products in the "News" ...
0
votes
1answer
60 views

Magento2: How to load category collection?

I have to load the category collection and show it on top menu position on my Magento site. I have tried object manager concept but it's not correct method to follow so that I have to load it using ...
0
votes
1answer
39 views

Magento 2 : How to fix “Class Magento\ConfigurableProduct\Model\Product\Type\Configurable\Interceptor does not exist”

Please help, I can't create Products or Categories. How to fix it?
0
votes
1answer
37 views

How to get Category and sub category from backend?

We have faced design collapse issue on the category menu part at the frontend of the website. So, we have created the mega menu using html and css, and included that code in topmenu.phtml. Now, we ...
1
vote
2answers
50 views

Magento 2 : Getting error while saving category from admin

When I try to save category from admin panel it showing error like something went wrong and when I checked the exception log it showing me below error. main.CRITICAL: SQLSTATE[HY000]: General error:...
0
votes
0answers
14 views

How to expand / unfold category list by default (magento CE 1.8.1)

currently , my theme looks like this on a -mobile- device: But I want it to look like this: Meaning: I want the category list to be unfolded by dedault; without the user having to select it. I ...
0
votes
2answers
68 views

Magento 2 how to get all categories of a product in controller

I am trying to get all categories with their levels of a product through it's ID in my controller which is overriding default magento controller. Can I get product's category path url through it's id ...
0
votes
0answers
16 views

Get current product categories of current store only in Magento 2

I made the following in Magento 1 for a multi-store website: $rootCategory = Mage::getModel('catalog/category')->load( Mage::app()->getStore()->getRootCategoryId() ); $sameStoreCategories = ...
0
votes
1answer
22 views

Magento 1 sub domain Redirect issue

Just copy original domain files and DATABASE to Sub-domain and change Base-URL every links is working prefect but only few products, category, and images slide show links redirect to original main ...
0
votes
1answer
33 views

Magento 2 : Get current_category is cached and shows wrong IDs on category submenu

I have created a module to avoid an objectManager. In this I have public function getCurrentCategory() { return $this->_registry->registry('current_category'); } On my phtml file I ...