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
1answer
19 views

Magento 2 Auto-remove empty categories from menu?

I am using Magento 2.3.1 and the pearl theme. My site has many different categories and I wanted to know if there is a way to have magento automatically remove categories that don't have product in ...
2
votes
0answers
25 views

Magento 2: Use Categories Path for Product URLs is not working

I have two products having the same attributes as categories, attribute set, etc. And I have set Use Categories Path for Product URLs as NO but still, one product has the category in URL another don't ...
0
votes
1answer
21 views

How can I add a column to Category -> Category -> Products in Category grid in magento 2

I would like to add an extra column based on a product attribute <my_attribute_code> in the product grid that appears when editing a category in the section "Products In Category" ideally ...
1
vote
0answers
16 views

level 2 menu is not collapsing on mobile (Magento 2.3 Parent theme-Luma)

I have created a three-level menu using Magento Admin It works great on desktop. But the third level menu is not collapsing on mobile view. Please check the image. Yellow highlighted links are the ...
0
votes
2answers
27 views

Magento2 : Get Category Ids from product import csv

product import csv containing category data which is given as below Default Category/Diagrams/Business,Default Category/Diagrams/Strategy,Default Category/Diagrams/Planning,Default Category/...
0
votes
1answer
20 views

Magento2: Add product to parent and child categories on import

I am trying to import products in Magento2.2.5 Products have many categories : e.g Default Category/A1/A2/A3, Default Category/B1/B2/B3 When i check the product configuration, the product only has A3 ...
1
vote
1answer
20 views

Getting Subcategories even if product count for each is 0

In my module, I am getting the current ID and then using the category repository and the "getChildren" method. This works great, except it doesn't return child categories with product counts of 0. ...
0
votes
1answer
16 views

Assign related products from categories (Magento 1)

We have a magento store and we have over 1000 products listed. We want to assign random related products, but they should be within the category. For example, if a product is listed under Men >> T-...
0
votes
1answer
32 views

Magento 2 delete specific product categories

how can I delete specific categories for a product in Magento 2.Forex: I have a product with a,b,c categories, I have some conditions if the conditions meet my categories remains same but if those ...
0
votes
0answers
10 views

Category attribute's value does not get updated when in store emulation mode

I am trying to update some category attribute's value for a specific store, and i need to do it in emulation mode. So i do something like this: $appEmulation = Mage::getSingleton("core/...
1
vote
1answer
23 views

Product Category is not displaying in front end in magento 1

I have created a new category in the backend. But it is not automatically showing in front end.
0
votes
0answers
17 views

Getting all store categories into first store

I have created a multistore website and after that create root category for all different store, When I try to get store vice category I am getting all store categories into the first store $storeId =...
0
votes
0answers
26 views

Magento 2 - Hide or remove category form after verification on admin

I want to hide OR remove category form after a verification So, I succeed to hide it by creating category_form.xml on view\adminhtml\ui_component <fieldset name="general" sortOrder="5"> &...
2
votes
1answer
37 views

magento 2.3.1 “Catalog Category Link” widget blank

I am trying to use the following widget: {{widget type="Magento\Catalog\Block\Category\Widget\Link" anchor_text="ewrrewq" title="rqewrqrq" template="category/widget/link/link_block.phtml" id_path="...
7
votes
2answers
142 views

How to show Categories in System.xml in magento 2

I'm getting all the categories in System.xml using the class Vender\Module\Model\Config\Source\Category <?php namespace Vender\Module\Model\Config\Source; use Magento\Framework\Data\...
0
votes
0answers
21 views

Always Showing Layered Navigation

So I've extended the Layered Navigation to include a few extra option collectables that are always there, regardless of filters applied. I would like to have the Layered Nav show up on all category ...
1
vote
1answer
17 views

How to create Admin-User for (Role) specific category-only access in magento2, It Possible or Not?

I have Created two-stores, And I have Add two Root-Category , But I Need to Create Two AdminUser for make(Role to) access for specific one-Store Category. Example (AdminUser A)-> Specific access ...
1
vote
0answers
20 views

Product page and category page disappeared

Developed on developer mode and everything is OK, just set production mode, home page and admin panel is OK but category page completely disappeared and shows a blank page and also product page is ...
0
votes
1answer
25 views

Move static block on category page

I'm trying to have 2 pieces of static content on a category page. One directly beneath the category title and another below the product listings. I notice Categories have a "description" and support a ...
2
votes
0answers
21 views
2
votes
2answers
58 views

URL Rewrite Duplicates and Product URL

My headache begins with a common URL Rewrite issue. I am running Magento 2.3 and rely heavily on an extension called Firebear Import / Export to handle my suppliers CSV feed imports. Let's say in ...
1
vote
0answers
24 views

Magento2 Catalog Price Rule

Magento2 Catalog Price Rule Not Working when i create rule and click on save and apply rule not applied on Category without re-indexing my indexing is on update on save mode.
3
votes
1answer
32 views

Magento 2.3.0 TinyMCE removes anchor tag href suffix when used with {{store url=''}}

I am trying to add category link in the CMS block. <ul class="list-unstyled"> <li><a href="{{store url=''}}test-collection.html">Test Collection</a></li> </ul> ...
2
votes
1answer
26 views

Magento 2 - Multiple collection on same block

I have a block where I want 3 different collections with different category filters. I have created collection object in constructor like this: protected $collection; public function __construct( ...
2
votes
0answers
20 views

Error: getParentCategories() on null

I am working on my custom module where I added a button on Configurable products. The Content I was showing through button was by getting the Parent Category ID. The main issue I am facing is that ...
1
vote
2answers
43 views

Magento 2 categories backend error: Call to a member function getId() on null in /var/www/src/vendor/magento/framework/Data/Tree/Dbp.php:380

When I try to open Catalog->Categories in the backend, I get the following error: Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/src/vendor/magento/framework/Data/...
0
votes
0answers
23 views

Layred navigation display all sub level category for non anchor category

I came to know that magento layred navigation is only render first child of current category on layred navigation for non anchor category. File for non anchor category HTML render. vendor\magento\...
0
votes
0answers
23 views

How to create select form to choose categories in Magento 2.3.1?

I would like to create a search by selecting the categories in select form. So there will be four select forms and search button. &1 SELECT TYPE and there will be categories to select: ...
3
votes
1answer
41 views

How to get all categories in configuration (system.xml). magento 2

I'm getting all the categories in system.xml using <?php namespace Vender\Module\Model\Config\Source; use Magento\Framework\Option\ArrayInterface; class Category implements ArrayInterface{ ...
0
votes
1answer
37 views

Magento2: How to build a custom category link widget with attributes?

I'm trying to build a category link widget similar to the core one, but that can pull in additional information from the category selected, such as the image thumbnail and maybe some custom category ...
0
votes
1answer
13 views

How to get category image based on category ID?

I am trying to get an image which is uploaded for the category. & also I have category id and want to load complete details of that category based on category ID. How can I achieve this?
1
vote
0answers
14 views

how can we add multi level of categories programmitaclly?

I have CSV file with categories data in parent child level. How can we add multi level of categories programmitaclly ?
5
votes
2answers
85 views

Magento 2 Get Full Category Path for product

How to get full category path in Magento 2? For example Home > Women > Dresses > Maxi Dresses I am developing script for Google Shopping Feed and there is a node product_type which is require ...
0
votes
1answer
24 views

Magento 2 : Add category filter in producy grid

In admin, I want to add column of category and also add category filter in product grid. How to do this? Please help me. Thanks.
0
votes
0answers
18 views

Product position in category magento 2.2.5

I've got problem when i want to set position in Catalog << Categories << Products in Category. For example i set the position item from 0 to 20 and save changes. After the changes are ...
0
votes
2answers
35 views

How to get a each product id in category page in Magento 2?

How to get a each product id in category page? I need to get the product id in custom module template file.
0
votes
1answer
25 views

Auto-expand subcategories in product form

I have a category with subcategories, and I want to have the subcategory visible from the beginning, when the user opens the category selector. Currently, the user has to click the arrow next to the ...
2
votes
0answers
26 views

Can't save value in custom field /admin/catalog/category

I have added a custom field in admin category. I need to save and get value of my field using observer. My Xml file is "category_form.xml" <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1answer
21 views

Category name on product url still working after “Use Categories Path for Product URLs” set to no

"Use Categories Path for Product URLs" set to no on admin panel But everytime I create a new product, it creates rewrite also for category/product url So both of them work: example.com/category/...
2
votes
1answer
33 views

Display sale badge on PLP

I am trying to display a 'Sale' badge on product category pages if the products have a special price. Though the isn't rendering anything. <?php if (_$product->getPriceInfo()->getPrice('...
1
vote
0answers
22 views

Magento 2 : Need to set custom category collection using plugin

I want to set custom category collection using plugin. I created plugin about Magento\Catalog\Block\Product\ProductList\Toolbar this block and aroundSetCollection(). But, not actual output I received....
0
votes
0answers
53 views

Some 3rd level categories are not showing in filter in magento2

I have Category relationship like below. Test>Sample>Men (200 products here) Test>Sample>Women (8 products here) Test>Sample>Others (10 products here) When navigated to Sample category. In left ...
0
votes
2answers
41 views

For Magento 2 not show some category on frontend for not logged in customer, once customer logged in it will able to see that category on front end

For Magento 2 not logged in customer not able to access selected category any way in store Ex. url, menu, search etc , once customer logged in it will able to see category and its products. can ...
2
votes
1answer
33 views

Getting Custom Image Attribute in Frontend

I've followed a tutorial found here: https://webkul.com/blog/add-custom-image-attribute-category-magento-2/ With a slight modification which can be found in the InstallData, where I specified '...
0
votes
0answers
19 views

Magento2 Which table store category ascending order or descending order store category

My project category and sub category I have set ascending order or descending order store category via script or sql query. Magento2 Which table store category & sub category ascending order or ...
0
votes
0answers
26 views

Condition on Category Filter in New Product Page?

I have save unique id with each category save when any category save then current admin id is also save with it. Now i want to apply condition in the New Product Page when any admin want to add any ...
0
votes
0answers
7 views

Can we show partial category's on two different website in magento 1.9?

Can you please help me out to set partial category display on two different web-site in magento 1.9?
0
votes
0answers
16 views

Magento 2.3.1 Multiple categories showing active, How to remove duplicate active class?

In my instance, I have updated Magento 2.3.1 from 2.3.0. I have an issue that more than one categories are showing active on each page. it shows randomly selected more than one categories. How ...
1
vote
0answers
24 views

Magento2: Minicart issue on Custom layout

I am using a custom layout for the category page. Here is my code: app/code/Custom/Module/view/frontend/page_layout/equipment.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www....
0
votes
1answer
37 views

Products not appearing in the catalog - Reindex not adding records

When I add products to a category through the admin pages, the product is not showing up on the relevant category page. Ive have searched for an answer for this extensively and carried out all the ...