Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
0
votes
2answers
999 views

Magento2 : Category not saving

I have tried to save the category and getting below error in Magento2 admin. Error: URL key for specified store already exists Please help me to fix this issue.
0
votes
0answers
11 views

Magento 1.9 - How to assign all products in a category to it's parent categories?

My products assigned as sub categories and child categories, how to assign all products in a category to it's parent categories. eg: Books/Children/Boys, Now the products assigned with Boys child ...
0
votes
1answer
767 views

creating categories and subcategories using the api catalogCategoryRepositoryV1

I am able to create categories under default category but I am not able to create sub category while creating a new category under default. The body I am passing is { "category": { "parent_id":...
3
votes
2answers
1k views

How to get next and previous product on detail page in Magento 2?

I am new to Magento 2 and I can not find view.phtml file in Catalog. I want to show previous and next product from the category of the current product in Product detail Page, do any on know how can I ...
0
votes
0answers
19 views

Category Page is not loading in magnento admin panel

My Magento version is 2.3.1. all pages in the admin panel working correctly. but my category page is not loading shows console error. I am already trying some solution like delete pub/static ...
1
vote
2answers
2k views

List Sub Categories Magento 2

I want to have Category navigation - so instead of going to the product pages user can navigate using the category images and subcategories shown in a grid and also shows the left navigation on same ...
2
votes
2answers
44 views

The correct implementation of the output of subcategories in the main category

i want to display subcategories in the root category, i found this way that works for me. app/design/frontend/[Vendor]/[theme]/Magento_Catalog/templates/category/products.phtml <?php $category =...
1
vote
0answers
18 views

Getting subcategories in a parent category [duplicate]

I really hope that they will help me in this matter. I have a category in which there are subcategories, I want to display them in grid. I was looking for possible solutions and found only one working ...
7
votes
1answer
2k views

Magento 2 how to filter product collection on category page with custom filters

I have one category in system... For example EMT. There are many products assigned to it. Now I want to filter some products for particular customers for that category. I mean only specific products ...
9
votes
5answers
24k views

Magento 2 - Get Subcategories of Specific Parent Category

What I'd like to do is grab all of the child categories of a specific parent category. I'm assuming the best way to do this is by using the parent's ID and of those child categories that are returned, ...
4
votes
3answers
4k views

How does the Sort Order of Products in Subcategories work?

When adding a product to a category, a sorting order value can be specified. Imaging now we have a Category "P" set to "Anchor" and various categories "C1" and "C2" which are childs of "P". How is ...
1
vote
1answer
137 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 $...
1
vote
0answers
32 views

How to Customize Category URL?

Regarding Customize Category Url like : storename.com\category_id+category_name+category_attribute I read before : "If you have a small amount of customization necessary, the URL rewrite ...
2
votes
2answers
3k views

Display categories and sub-categories

I'm tryng to display categories and subcategories on a cms page <?php $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ...
2
votes
2answers
1k views

How to display all sub categories from one category?

I'm trying to show all the subcategories of the category id3. Category ID3 -> Category Level 2 for Category ID3 -> Category Level 3 (for category Level 2) <?php if (!Mage::registry('...
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 ...
1
vote
0answers
15 views

Restrict access to categories and products

How can turn off the display of categories and products in them for unauthorized users. In case of transition to url of not logged user, redirect to login page.
1
vote
1answer
22 views

How to exclude specific Products, Categories and CMS Pages from sitemap.xml generation in Magento 2?

I need to create a custom module that allows excluding/skipping the Products, Categories and CMS Pages URLs from generating in sitemap.xml. I had tried this solution for Magento 1, How could I do it ...
1
vote
0answers
22 views

How to shown all the category on home page in magento2

public function getShopCategories() { $objectManagerr = \Magento\Framework\App\ObjectManager::getInstance(); $categoryFactory = $objectManagerr->create('Magento\Catalog\Model\ResourceModel\...
3
votes
6answers
5k views

Magento2: Could not save product “330664” with position 0 to category 3567

When i save product after unassigned all category from product. I am getting error Could not save product "330664" with position 0 to category 3567 I have checked log and i can see same thing in ...
0
votes
2answers
676 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-...
3
votes
2answers
716 views

Add categories automatically - Unique constraint violation found

I added two categories with sub-categories from my ERP with an integration. When I want to edit a category, I have an error "Unique constraint violation found". Do you know how I can resolve this ...
1
vote
0answers
20 views

Magento 2 Mobile view menu links redirect to undefined page

I have an instance Magento 2.3.3 In that I have installed the Weltpixel mega menu module and configure it. In sub-menu I have added custom HTML with ul > li tags. The sub-menus are working perfectly ...
1
vote
0answers
17 views

Magento 2.3: How to create a custom filter?

I'm having a requirement that is related to filtering the products. By default, when the user clicks on the category, it will be redirected to the corresponding product listing page. But my ...
0
votes
0answers
10 views

How to change start time for Magento 2 Shared catalog

I am Using Magento 2 EE.I created shared catalog and assigned some product to and custom price for products.but frontend not effecting those prices How to change start time i don't want wait till ...
1
vote
1answer
31 views

Magento 2.3 After changing product all categories are unassigned

I have a problem with Magento 2.3.3. We have a lot of normal products and also use Group and Bundle products. All products are assign to a category (or multiply categories) and also displayed in ...
1
vote
2answers
33 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 ...
1
vote
1answer
35 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?
8
votes
4answers
12k views

Magento 2 : How to check if we are on a category page or product page?

Is there a way I can check that If a user on a category page,or an individual product page in Magento 2? Any help would be greatly appreciated!
1
vote
2answers
4k views

Magento2 category images not showing and not changing

I have a strange problem with Magento 2.2.3. A few month ago we added some category images and they were shown correctly. Today we added some new category images and changes some of the old ones. But ...
0
votes
1answer
32 views

Categories not appearing in Top-horizantal menu

I've created a couple of categories for my products but none of the category is appearing on the homepage. It should appear as a Top-horizantal bar but I couldn't see any trace of it. Any idea about ...
2
votes
2answers
5k views

Magento 2 REST API returns only default category and its children

I am using "rest/V1/categories/" (Magento 2 Rest API). In documentation(devdocs.magento.com/swagger/#) it says "Retrieve list of categories" but it only returns default category(and its all children) ...
1
vote
2answers
661 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 ...
3
votes
1answer
1k views

Get frontend category URL in admin area with correct base URL

I try to load categories in the admin area with store specific values. $this->categoryCollectionFactory->create() ->setStoreId($storeId) ->addAttributeToSelect(['name', 'url_key'])...
0
votes
0answers
19 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 => ...
3
votes
1answer
805 views

Magento 1.9: Custom category field for an image not showing on front end

I want to add a picture on top of category name in frontend. I tried creating a custom field for the category and adding a picture that way. I can see the custom field from admin, but I can't see ...
0
votes
2answers
783 views

data scraping for categories and products

I want to scrape a data from one of ecommerce website. Where i want to pull all categories and products details. What will be the best method to do it?
2
votes
2answers
677 views

How to restore 'sort by position' option for category sorting

In our store the sort by position (ie 'Best Value') option is not being shown when viewing categories. I believe this was removed/hidden by someone in the past but now we want to show it again. I ...
0
votes
1answer
667 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
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 ...
2
votes
1answer
772 views

Assign a separate theme to product pages and categories

I have magento 2 and a requirement to show a certain category, subcategories and product pages in those categories using a different layout then other product pages on my store. So just to be clear: ...
3
votes
1answer
654 views

Filter magento product collection by category id but NOT category children

I am retrieving a product collection and filtering the list by category. I have just had to add some sub categories to one of them and now the products in the sub-categories are appearing in the ...
8
votes
5answers
11k views

Assign products to category programatically in magento2

How can I assign 'New products' to 'NEW PRODUCTS category' programatically in magento 2.
1
vote
2answers
1k views

How to change category page layout 4 columns to 3 columns - Magento 2

How to change the Category page's layout from 4 columns to 3 columns?
0
votes
0answers
19 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
1answer
954 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
0answers
19 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
1answer
633 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 ...
0
votes
3answers
53 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 ...
6
votes
1answer
5k views

How do I sort Magento products in a specific category according to my order

I want to sort Magento products on a list page for a specific category according to my given order. Can I have a text field in each product and give any number and my products in that specific ...