Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
1
vote
1answer
40 views

How Display categories and subcategories at frontend with sorting alphabetically

I don't have an idea about how can do that Could you please help me for that?
1
vote
2answers
39 views

Display subcategories on category Magento 2

i would like please your help. I am newbie on Magento and I would like to show subcategories of category on its parent's page on a slider. I tried initially to show the categories on the parent ...
0
votes
0answers
11 views

Bug when trying to enter next page in category

I have an Elastic Search and some automatically made product samples. When trying to navigate in the category, I get this mistake "We can't find products matching the selection". For example, I'm in ...
0
votes
0answers
24 views

Magento 2| Move Product options swatches before product image, Category page

I want to move options swatches before product image, in category view. I try something like this <move element="category.product.type.details.renderers.configurable" destination="product.info"/&...
0
votes
0answers
23 views

Product Category selection - Category info not updating to appropriate description upon selection

When I have multiple categories for products, the category displays the products in the category, a title and a description of the category. When the user select another category from the category ...
0
votes
3answers
314 views

Magento2: Create toggle button yes/no in admin product page

I want to create a toggle button yes/no in the product or category admin side page. also eager to know its description of flow and binding process. I followed many tutorials but don't get the exact ...
0
votes
0answers
16 views

Magento 1.9 problem with categories

Afternoon all. I'm currently working on migrating customer logins from our old website to our new Magento site. Due to the complexities of our old site and the features inherent within, I've had to ...
0
votes
1answer
27 views

Category Link go to 404 on store switch

I have used Magento 2 with 2 store view and My default store is English and set Category Link in Mega Menu but when i change my Store view from English to french that category link goes to 404 page. ...
2
votes
1answer
196 views

Display out of stock products of specific category in list and search result page

I have enabled Show out of stock products in the admin Inventory section. I have to show all in stock and out of stock products of one category(id=10 and its subcategory) in list and search result ...
0
votes
0answers
21 views

Magento 2.1 - Add prefix to category url

How to add a prefix for Magento 2.1 URL and show child without a parent? Example: Category level1: www.example.com/categories/fashion.html Example: Category level2: www.example.com/categories/men....
0
votes
0answers
26 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
9 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
44 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
33 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
22 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
20 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
2answers
153 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
20 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
32 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
22 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
11 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
23 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
47 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
68 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
72 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
138 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
103 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
58 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
131 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
40 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
15 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
11 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
29 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
11 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
23 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
20 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
53 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
35 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
36 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
35 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
30 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
29 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
31 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
78 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
7 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
44 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
36 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
40 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
98 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 ...

1 2
3
4 5
50