Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
1
vote
2answers
4k views

Search Results: List categories and products

In magento, it is not possible to search for categories. Currently it shows only the products in the list. I need Categories and products in the search result. Search results for categories should ...
1
vote
2answers
1k views

Magento Category Pages are too slow

Time to first byte is almost 6 seconds and full page load time is 8.60 second I try to run profiler and here is the results Memory usage: real: 45350912, emalloc: 44510384 I can't figure out why ...
3
votes
1answer
2k views

Magento 2.2 - Breadcrumbs issue

Currently i've got products in a category sub of default for example: Root -> Sub cat -> product I've noticed that on the product page itself the breadcrumbs are working fine for some products and ...
0
votes
1answer
209 views

Magento 2, category disappeared on “Catalog > Category” tree, does show everywhere else

I have a Magento 2.2.2 build, I imported my products, categories and orders from a Magento 1.6.2 (don't blame me, I just got this) build using cart2cart Everything looks to be fine, until I tried to ...
0
votes
3answers
3k views

How to get all active categories and subcategories in product listing page?

My categories and subcategories hierarchy to a product listing page : Products Refrigerator back-bar fridges Product listing(here) Now, what i'm trying to get is while i'm in product listing ...
2
votes
1answer
1k views

Cannot sort by position in Magento 1.9.2.4

I am trying to force a category of products to sort by position in Magento 1.9.2.4. I have assigned the position to each product in the category but I notice there is no position option - only by Best ...
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('*') ...
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 ...
0
votes
0answers
17 views

What class is responsible for adding the category url suffix to the URL?

I need to prevent the category URL suffix from being added to a select few pages. The suffix is set to .html, and I need it to be that for 99% of category pages, but the issue arises when trying to ...
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('...
7
votes
5answers
20k 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, ...
0
votes
0answers
14 views

Magento 2 Mobile menu, make all the categories collapsible and collapsed by default

I am having a hard time finding anything related to the mobile menu. My problem is that in the Magento 2 default (blank) theme it's not possible to toggle categories collapsible in the mobile menu. ...
2
votes
2answers
467 views

Automatically use Default Value for category/product Changes (always inherit “All Store Views” scope)

Working on a pretty complex multi-store setup now, and I'm trying to find a way to set all fields as being checked to "Use Default" by default so that a product name change (or etc) wouldn't have to ...
0
votes
2answers
889 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.
2
votes
1answer
5k views

How to add attributes set column to category products grid?

How to add attributes set column to category products grid under Catalog -> Manage Categories -> Category_to_be_edited I've added a special price since it was already available in the collection. ...
1
vote
1answer
158 views

Is it possible to access categories from an outside root category?

I have a root category set up for all the products. What I am trying to do is set up what I call a meta category. This category would be used for things like holiday themes, gifts for him, etc. What ...
6
votes
1answer
7k views

Is it possible to delete root category?

Is it possible to delete an empty root category once accidentally created or not required anymore? It looks like there's no "Delete" button.
0
votes
2answers
609 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 ...
1
vote
1answer
578 views

Sort products in category by stock quatity or stock availabilty

I show out of stock items on my website and they are all over the place but I dont want to get rid of them. I want to sort the category so that products that are out of stock appear last, is this ...
0
votes
1answer
22 views

How can I add brands and flavors in navigation menu with categories?

I want to show categories of items also want to show the brands and flavors of item according to the parent it has.
0
votes
0answers
36 views

Magento 2: Categories import via CSV not updated same name child category as assign in different parent categories

I am importing categories via CSV and it is working. After updating categories data like description, is_active, etc. But same name categories are not updating in different parent. I want to update ...
0
votes
2answers
574 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
2k views

How can I change H1 title in categories?

I need to change the h1 title using Custom Layout Update field in the category edit view How can I do this? Change many categories h1 titles without change the category name?
0
votes
1answer
13 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
0
votes
0answers
44 views

Get Data from Controller

I'm trying to create some type of search method for customers where they select the product's brand they want to search and then, if they want, they can also select the category they want (if there ...
0
votes
0answers
26 views

Magento 2: Category page empty after re-index (E.E 2.2.9)

I am working on Magento E.E 2.2.9 Category page is not able to display product once I ran re-index. I ran re-index using crontab. Category pages are empty until I flush cache manually. Any idea ...
4
votes
1answer
33 views

Magento 2 - All Products Page with filters and Pagination

I need to create a page where product collection from all categories or you can say from root level category (Default Category) generally it has id 2. I need to make sure that the page is look like ...
0
votes
0answers
15 views

Category SQL error

I recently found the following error in Magento2 log. Reading the query is missing there's an error in where condition --> WHERE (()) How I can debug? Tryed a crude "grep" in my filesystem but I ...
6
votes
3answers
518 views

why magento doesn't enable flat model by default?

we can see that the following two options at system > configuration > system > catalog 1.Use Flat Catalog Category 2.Use Flat Catalog Product it is clear that the flat model reduces the ...
1
vote
2answers
632 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 ...
1
vote
2answers
452 views

Magento 2 Fatal error: Method Magento\Ui\TemplateEngine\Xhtml\Result::__toString()

Please check below error: Fatal error: Method Magento\Ui\TemplateEngine\Xhtml\Result::__toString() must not throw an exception, caught Error: Cannot use string offset as an array in /vendor/...
1
vote
0answers
28 views

Magento 2 : Need to set custom category collection using plugin

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

How to migrate only categories data to Magento 2?

After migration, I notice that I can't save categories in the backend. After all the diagnosis I found no solution. I want to migrate only the categories data, Is it possible? ( Without clear all ...
0
votes
2answers
33 views

Get Categories collection in Helper file give 'Mage' not found error

I am trying to get categories in helper file I am using Mage::() to get categories in my helper file but it is throwing error. Here is the code to my helper file. <?php namespace Pulsestorm\...
0
votes
0answers
22 views

Magento 2: Set product position in category via REST API

I'm trying to set the position of an existing product inside a category via REST API. Currently all products have a position of 0. The endpoint I'm using is POST /V1​/products. The json body: { "...
0
votes
1answer
633 views

Display child categories in the top menu in magento 1.9

I need to display all the subcategories in the top menu navigation in my custom module. From the below code i m getting only the categories in the menu. public function getMenu2($_cats, &$menu, $...
0
votes
1answer
629 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":...
1
vote
1answer
43 views

Magento 2 - Passing argument from backoffice in Category Layout Update XML field to frontend module or phtml

In Magento 1 I sometimes used this way to pass an argument to a category, directly from the back office Category > Custom Design tab > XML Design Update <reference name="product_list"> &...
1
vote
1answer
350 views

Can I remove products in a batch from category?

I want to remove ~300 skus, a solution might be to remove everything and then add the skus I want, but I was thinking it might be an easier way... Can anyone help?
0
votes
0answers
16 views

Categories not showing in Admin Product Edit Page in magento 2

I deleted all the products and categories via SQL queries (i used this answer https://magento.stackexchange.com/a/283404/73525 ) after i have recreated all i have categories in the ...
0
votes
1answer
22 views

how i can solve unable to save stock item in magento 2 while saving product

I deleted all the products and categories via SQL queries (i used this answer https://magento.stackexchange.com/a/283404/73525 ) while saving new product i got error Unable to save Stock Item ...
0
votes
0answers
23 views

Fatal error when access to categories grid on admin Magento 2

I have a Magento store in 2.2.9, clients need this version to work with some module, at this moment when I access to the categories admin grid I get this error Fatal error: Uncaught TypeError: ...
0
votes
1answer
632 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
1answer
27 views

Custom Canonical Tag in Magento 2 Category

I am using Mageworx extension for canonical tags, but want to add a custom canonical tag/url in a category, and remove the canonical url generated by the extension. I am using Magento 2.2.5. I used ...
1
vote
1answer
326 views

How do I make my category sort orders keep from reverting to different order in admin view?

I am using Magento 1.9.2.1. When I am in Catalog/Manage Categories I am finding that the sort order that I am dragging my categories into is not staying the same. I have caching disabled as this is a ...
3
votes
3answers
652 views

magento 2 Cant show products on categories

I have Added some products in one category. All products Are enabled, with qty and catalog, search option, also I have disabled cache and reindex a lot of times but on the frontend the product will ...
3
votes
3answers
162 views

How to get category URL in multiple stores

I'm trying to generate the hreflang links for our multilingual Magento 2 site, and as the category slug changes, I cannot simply replace the store code in the URL. I've come up with this: $...
0
votes
0answers
17 views

URL key for specified store already exists for category export via akeneo?

when i export categories via akeneo to magento 2. URL key for specified store already exists for categories in magento 2 export via akeneo pim any one how to fix this issue magento ver 2.2....
2
votes
1answer
666 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: ...