Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [category]

Questions about product categories in the Magento catalog

0
votes
0answers
58 views

magento 2 how to redirect disabled product to category page?

I want to redirect disabled products to the related category page. I have tried discontinued option which is available in admin but it is not working. How can I fix the issue?
0
votes
2answers
569 views

URL issue with categories

I am using Magento 1.9.2.4 I have created 3 root categories with multiple sub categories in each root category. First root category (Category) works fine, but their is some issue with sub-...
5
votes
3answers
2k views

Show product of a category in a custom page

I create a category with some product. Also create a custom layout for my page that I add new cms page with this layout that I created. I need to have this page with my layout because I want to add ...
0
votes
1answer
51 views

Unable to unassign the category of a product in backend magento 2

I wish to unassign the categories of a product in admin end. After unassigned the categories, I have saved the product. But the saved changes is not applied. Please provide me a solution to solve this
0
votes
2answers
736 views

Magento 2: How to remove Category using category id by Mysql script

I want to remove category using MySql Script So I can delete the category using category ID completely from magento 2 as we did in admin area category section.
0
votes
2answers
565 views

Display only third level category

My categories are displayed this way: - Main Category   - Product type     - Brand I want to display the image of the third level category on the homepage. Can anyone ...
0
votes
1answer
56 views

Hide description for specific category

need to hide description on specific parent category and all child category. like test = parent abc1 = child category abc2 abc3 and more 70+ i want hide description on test category and all sub ...
3
votes
2answers
160 views

Magento 2 - Can't go to Category page from admin panel [closed]

so I have a few problems that I want to solve but I can't and I tried everything! I don't have any root category and I can't create via PHP file don't know why I can't go to admin>products>...
1
vote
1answer
568 views

Categories widget in sidebar

I created a widget and assigned the following values to it: Type: Catalog Category Link Design Package/Theme: rwd / default Widget Instance Title: Categories Sort Order: 1 Now I want it displayed ...
3
votes
1answer
578 views

Getting the last viewed category on a product page?

We would like to add a link "view all other [category name] products" on the product page. We tried several things no full success. it seems there is a last viewed category methode Mage::...
-3
votes
1answer
38 views

All products page [closed]

I am confounded by a task that I thought was very simple. How do I make a page that will list all the products in my store. it should look like a category page (toolbar) but listing all my products ...
0
votes
1answer
220 views

Set all categories Use Parent Category Settings to yes

I need to set all categories Use Parent Category Settings to "Yes" from mysql I have done this sql query: SELECT * FROM eav_attribute where attribute_code = 'custom_use_parent_settings'; wich give ...
0
votes
1answer
137 views

Magento default search with categoy

For the default quicksearch, am adding a dropdown before quicksearch with values as all the categories available(like all products, living room, bedroom, cellphones, accessories, digital cameras and ...
1
vote
1answer
340 views

Magento for each loop limit

Working on the categories for a magento homepage for pulling out categories on the main page. At the moment it pulls all out of the categories out but I want to limit this too 6 categories. I have ...
1
vote
1answer
3k views

Magento sort Categories & subcategory by Name when Display on Site [duplicate]

I have below code it will fetch the category as well as subcategory from Magento. The Problem is that I have around more then 300 category and subcategory. So I can not change the manually in Magento ...
0
votes
0answers
12 views

Should categories or attributes be used to drive cart rules

Forgive the potentially dumb question but I'm new to magento and I have some fairly complex cart rules needed. I'm not sure if categories or product attributes (or something else I'm unfamiliar with) ...
0
votes
1answer
37 views

How to get latest category on magento 1.9.2.4? [closed]

In Magento 1.9: I have to show latest added category's description on template. So how to get latest category?
0
votes
0answers
22 views

Google Analytics not tracking categories on M2

When I go on my GA Conversions : E-commerce : Overview and then I click on Product Category (Enhanced E-commerce) it give all results for category (not set), how can I verify if the Enhanced is up ...
3
votes
2answers
340 views

Error with Catalog Url Rewrites based on category

I actually have exactly the same problem as posted here An error occurred while saving the URL rewrite after upgrading from CE 1.9.0.0. to 1.9.3.3. I get the error: An error occurred while saving the ...
2
votes
3answers
3k views

Magento 2.1: disable category filters

I am working on a Magento 2.1.7 shop. The products are organized into categories and subcategories. Whenever a customer visits a category, filters (links to its subcategories) are displayed. I want ...
1
vote
2answers
2k views

Category with the 'categorgyurl' url_key attribute already exists

While programmatically creating category, using the below code, i got a error Category with the 'categorgyurl' url_key attribute already exists code: $category = new ...
0
votes
1answer
675 views

How to tell which products are not catgorized via phpmyadmin

I'm trying to pull a list of all products that are not in categories via php-myadmin, is this possible? What is the best way to go about doing this?
4
votes
1answer
61 views

How to set cms block to category in Magento 2 programmatically?

I would like to add CMS block to a category programmatically, how to achieve it?
0
votes
1answer
98 views

Problem: When to hide a product in sub category from showing in the main category?

thanks in advance. This issue has been bugging me. On my website, I have a main category called 'Lighting' and one subcategory within it called 'accessories' shown below: When on the main category ...
0
votes
2answers
31 views

Magento 2 - List child SKUs of category on category page

I hope someone can help - editing the Magento_Catalog/templates/product/list.phtml most likely buy inserting a new phtml file, how can I list all of the child SKU's of the parent category on the ...
4
votes
4answers
32k views

Get category collection from specific store

With flat tables turned off, how can I get a category collection from a specific store view ? I have tried the following: Mage::getModel('catalog/category')->getCollection()->setStoreId(3); ...
3
votes
2answers
1k views

Magento 2: Same ID already exists

I'm having this error when entering one certain category in frontend: Exception #0 (Exception): Item (Magento\Review\Model\Review\Summary) with the same ID "519" already exists. Any ideas what that ...
0
votes
1answer
590 views

URL key already exists

When category is edit, The Magento shows this message error.
1
vote
0answers
16 views

Search not only by product name / description

I want to show product that the category name is "Watches", but the only result I have is the product with "watches" in the name or description. How do I show product that the category is "Watches"?
3
votes
1answer
837 views

Magento2: Show subcategory as a grid with images

I need to display all the sub categories under every category as a grid in relevant pages with linked images. Is there a way to do it ? I am using magento 2.2.4
2
votes
0answers
2k views
0
votes
0answers
394 views

Magento 2.2. - Show subcategories on category page

After searching online, I found this approach to my problem of showing subcategories inside the category page. The above solution states to create a custom module, and then reference it with a cms-...
0
votes
1answer
603 views

magento fishpig get category list in homepage.phtml

As per my requirement. i need to display WordPress category list in homepage.phtml Is it possible or not in this plugin. If possible then please provide appropriate help. Just for your reference ...
0
votes
0answers
37 views

Magento2: How can i override UI componet

I want to override this file : vendor/magento/module-catalog/Ui/DataProvider/Product/Form/NewCategoryDataProvider.php How can i do this? just want to change 'include_in_menu' => 1, to 0 . ...
0
votes
1answer
690 views

Remove “We can't find products matching the selection” category with not products

How do you remove "We can't find products matching the selection" from categories with not products assigned? I have set display settings to Display Mode: Static Blocks Only Anchor: Yes and also ...
0
votes
1answer
9 views

Magento 2 Error “URL key for specified store already exists

Basically i am adding a custom category the problem is when i add two child category with same NAME in to one parent category where child category is already present then this shows error of URL KEY. ...
2
votes
0answers
45 views

How to change the canonical function for category page in Magento 2?

How to add custom url Using canonical function Code: if ($this->_categoryHelper->canUseCanonicalTag()) { $this->pageConfig->addRemotePageAsset( $category->getUrl(), '...
1
vote
0answers
24 views

Products disapearing from a category but reappear after reindex/clear cache

I have a Magento 1.14.2.` store with about 1500 products in about 50 categories and sub-categories. A small number of products (2 dozen?) in a few particular categories regularly "disappear" every ...
1
vote
0answers
15 views

How to add category Path when creating product progrmatically in magento 2

I want to create products programatically by reading an xml file. Reading from xml, and creating product part is completed. I have no idea how to assign the products to category. This is my xml node ...
1
vote
2answers
625 views

Error accessing categories in backend

When I try to access "Categories" in backend, I receive an error. The error is: Attribute with attributeCode "umm_dd_block_top" does not exist. In the attributes list and the attributsets, the ...
2
votes
1answer
561 views

Remove second level category from product url

I need to display only first level category inside product url. If visitors browse and click product inside categorylevel1/categorylevel2.html, I need to show domain.com/categorylevel1/product.html ...
0
votes
1answer
591 views

Magento 2 : Static blocks with products on category landing page

I am stuck in a situation here, In Magento 2 Category settings and I wants approaches from you guys. In Magento 2 I have created a category with Static blocks with products to show settings on the ...
1
vote
0answers
39 views

How layer navigation counter works in Magento 2

I want to add some conditions for the layer navigation counter. Basically I want to skip from counting some products. In vendor/magento/module-catalog-search/Model/Layer/Filter/Category.php in ...
1
vote
2answers
2k views

Set default value for attribute in Setup Script in Magento 2

I have created install script to add an attribute to category. Default value has to be set, thus 'default' => '1', is used. InstallData.php file: public function install(...
2
votes
1answer
230 views

magento 2 Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string

In custom theme And category page show this error- Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string, null given, ...
0
votes
1answer
70 views

Multiple add to cart from product list

I'm trying to create a custom list.phtml template for one particular category that will function as a way for a wholesaler to quickly add lots of products tot he cart at once. I have the attached ...
1
vote
1answer
38 views

How do I add custom content at the bottom of the product category page?

My B2C has different product categories. I want to add some custom content at the bottom of each product category page, such as: text, banner image. I know that the product category is the same module ...
0
votes
1answer
90 views

Display product text attribute on category

I'm trying to display a product text attribute on category list or view mode, but i can't find a guide to do this. For example, a Product have this Text attribute: "7 work days to delivery" in the ...
4
votes
0answers
323 views

magento 2 | Categories not showing in Admin Product Edit Page

I have started working with magento earlier this year, I am running magento CE 2.2.2 I have noticed that when I go back to edit a product from the catalog I have noticed that the categories are not ...
1
vote
0answers
14 views

SEO category path [closed]

Which is the best one and why? www.example.com/women/pants (used by ASOS) www.example.com/women-pants (used by Zalando)