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
24 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
9 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
18 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
16 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
25 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
36 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="...
5
votes
2answers
70 views
+50

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
1answer
42 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
23 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
29 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
1answer
36 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
22 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
39 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
30 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
84 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
23 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
50 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
32 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
34 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 ...
0
votes
0answers
29 views

can't save new category in magento2 admin panel [duplicate]

Magento2 admin panel adds new category save then error show. "Something went wrong while saving the category." So give me a solution.
0
votes
1answer
42 views

Set cookie in Observer Not working when full page Cache is enabled

I have to set category id in cookie when customer go to Category page and update cookie with category id when visit again using seperate module. I have created Observer and set cookie there but not ...
1
vote
1answer
54 views

Magento 2 : product collection ASC sort by category

I want to sort product collection by category ids. I used this below code. What i need to add in this code ? /** * @var \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory */ protected $...
0
votes
0answers
16 views

Magento 2 admin panel add new category error Integrity constraint violation [duplicate]

Below error when Magento 2 admin panel add new category [2019-04-08 22:36:22] main.CRITICAL: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'entity_id' cannot be null, query was: ...
0
votes
0answers
12 views

Magento Category Structure - How to handle category taxonomy like modern e-commerce sites

I hope this title isn't misleading and properly describes what I am wanting to do. I am also seeing insight from the community for the best way to accomplish the end goal that I want for Magento ...
0
votes
0answers
15 views

magento1 to magento2 data migration is done but when add category admin panel then error show

magento1 to magento2 data migration is done but when add category admin panel then error show "Something went wrong while saving the category." so give me solution like new category add into admin ...
0
votes
1answer
12 views

Issues with some URL's in Multistore Child Store

I have a store, mydomain.com, with a top-level category called Shop accessible via mydomain.com/shop. Its child store, which we'll call "new", is at new-mydomain.com. This sub-store also has its own ...
0
votes
3answers
46 views

How to get products of a category and all its subcategories by category id?

I am trying to get all products of specific category whether these products are directly listed in the category or in the subcategories under this specific category I really searched for this on ...