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
22 views

magento 2 getting product grid on passing category id in frontend

Is there a way i can get ajax response of product grid on passing category id. On a custom page i want to pass category id as ajax so that it can return product collection with image,title etc how it ...
0
votes
1answer
35 views

Can't choose any category in admin

I can't choose any category in the admin panel for editing. You will always see the creation of a new category. Magento 1.9.4.0 clean setup, mariaDB 10.3, php 7.1.25, CentOS.
0
votes
2answers
172 views

How to Override catalog_category_view.xml file in our theme?

I have tried, it is working in base folder. but doesn't work in my custom theme fronted folder.
0
votes
1answer
59 views

Add a CMS Block to the main column for a Category in Magento 2

I want my cms block in the column.main area of a category page in Magento 2. This is a 2 column left page. I want my left menu to still show up on the left and my cms to show up in the main area to ...
0
votes
2answers
229 views

Get Product Collecton by category with filters in magento 2

I need to filter category product collection with Instock items and only simple products. I have used below code to implement it.But the out of stock products also fetching with the collection. ...
1
vote
2answers
149 views

Magento 2: Category URL for frontend

I have created a root category with name colors in Magento 2. I am trying to access this category by URL http://domain.com/category/colors.html in front end. But its not working for me. What will the ...
0
votes
0answers
30 views

Magento 2 backoffice - crash category page

I have never worked for the moment on a magento 2 project and I decided to do some testing on my side. My configuration : Ubuntu 18.04 - Apache/2.4.29 - PHP 7.2.13 - Magento 2.3.0 I had no problem ...
0
votes
2answers
116 views

Magento 2.2.6 - New categories not showing products

After created new category products not showing, it shows blank page with no error. But for other categories products shows. Any help should be appreciated.
0
votes
0answers
27 views

Magento 2.2 missing full url key from google results

I noticed that Google doesn't crawl my full URL path in the results, for my subcategories pages, eg: www.domain.com/category-level-1/category-level-2/ it only goes until 1st level www.domain.com/...
0
votes
1answer
44 views

Magento 2: get sub categories with limit

I have number of sub categories under main category. I have to get only four sub categories of main category. Any solution for this? Here is the code for get sub categories: $catId = 3; // Parent ...
2
votes
1answer
51 views

How to add class in body or in category-view div if current category don't have image

How to add any class in body or category-view div on category page if current category don't have image assigned. Having following top container part in the catalog_category_view.xml file. <...
0
votes
0answers
49 views

XML product feed category problem

I have written a php script so I can produce for my Magento 1.9.3.8 an xml product feed to send my products to another price comparison site. I have a problem with the category path of my products ...
1
vote
0answers
57 views

How can I sort a category product loop by position with elastic search outside of category page?

I am creating a product loop on the homepage of our site. The site has smile elastic search running. I have set up the manual sort for products in the category admin and can loop thru the products, ...
1
vote
0answers
113 views

Categories not showing products listed

On the magento back end under catalog>manage categories it will not show me the items in the categories. However when I go to catalog>manage products it does show me the products. I have flushed and ...
0
votes
0answers
12 views

the category buttons are redirecting me to the home screen on the front end

On the front end, I have categories that people can click to redirect them to a specific item category. However, whenever I click on the button it redirects me to the home screen, not the item ...
0
votes
0answers
17 views

Blank page for subcategory on the storefront

One of the subcategories in my store gives a blank page. What are the possible reasons for this to happen in Magento?
0
votes
0answers
52 views

Magento 2 URL Rewrite not taking to correct category

Ever since the Magento 2.2.7 update one particularly category tree has been messing up for me. Take the following category structure (this just lists URLs) category-example-one subcatone sub-sub-...
0
votes
0answers
14 views

Catalog Category Changes are Not reflected in Overidden File

I am using the barbour theme and i have created a child theme for the same.The issue i am having is that by default for category pages,the products are shown with a sidebar so i have removed that and ...
1
vote
1answer
29 views

Remove category name from product page

please advise. I have 4-5 types of categories: by type, by season, by purpose, recommended, etc. Some products are located in few categories at the same time, for example masala tea can be in "black ...
3
votes
1answer
664 views

Magento 2 Import categories using csv

I have around 500+ categories in my csv. I'm trying to import only categories using csv. Can anyone knows how to import only categories in magento 2 using csv?
1
vote
1answer
303 views

“Could not save product ”5648“ with position 1 to category 6”

When I tried to remove the category from the product edit page the following error is getting displayed. I am saving the product manually via admin end.....
1
vote
1answer
96 views

Removing “category.description” block

I'm trying to remove the description block via: app/design/vendor/module/Magento_Catalog/layout/catalog_category_view.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
173 views

Add a custom block after category products price section in magento2

I would like to add a custom block in category landing page, after the product price section, Iam using the below code but it is adding after the add to cart but i wants to add after price section, ...
1
vote
2answers
30 views

Magento 2.1.12 - all products not showing up categories and search results frontend

Since this weekend one of our Magento stores stopped displaying products on all category pages and the search results page. We have tried everything from reindexing all products, deleting the var ...
7
votes
3answers
669 views

Set Use Default Value for all categories attributes Magento 2

I have around 1260 categories.If i switch the store view , the all attributes have own value.But i want to set the all attribute values as parent main store view value. I can not open each category ...
0
votes
1answer
33 views

Add a custom section to Category products section in using Custom module magento2

Can anyone help me, how to add a custom section for category products section using custom module in magento2. Please find the screenshot below. Thanks
1
vote
0answers
32 views

Magento 2: Sub category showing product from other sub category

I have a block class that extends \Magento\Catalog\Block\Product\ListProduct and tried to override the list.phtml with exactly the same file (say mylist.phtml), except it is located under my module. ...
3
votes
1answer
74 views

Get all 3rd level categories

is there any chance how to get ALL third level categories available? I have searched whole internet and found only getting categories based on parent category but it doesnt return whole store 3rd ...
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 ...
0
votes
1answer
157 views

Category image for each subcategory in megamenu

How can I add an image, like a thumbnail, for each subcategory in the mega menu. i have tried to upload an image in the content section of the category, but it shows in the category view page, and i ...
0
votes
1answer
261 views

Magento2: Category custom textarea with wysiwyg editor attribute value blank issue

I have created two custom category attribute with wysiwyg editor and my attributes also shows in categories. But my issue is if i'm adding content in one attribute using wysiwyg editor then another ...
1
vote
0answers
27 views

How to list Parent & Child Category BY Knockoutjs

I want to list category block By knockoutjs. Currently I Implemented By Direct PHP Code But I want to do by Knockout js. My Block code ---------- namespace QuickLearn\Knockout\Block; class ...
0
votes
0answers
198 views

Magento 2 Layered Navigation Not Displaying Price

I have enabled Layered Navigation in my admin, as well as enabling some product attributes to be used within it. However, it's not displaying on my category page. I have the category anchored and ...
0
votes
1answer
89 views

Change sorter in category select box to <ul> <li>

I want to change sort by select box into <ul> <li> type by using javascript so I can change style css for it. How can i do this?
0
votes
1answer
97 views

Magento 2.2.5: Error when trying to update any category

Whenever i try to update anything in a category being: description, design, seo etc. i get greeted with this nice error: Element 'referenceBlock': This element is not expected. Expected is one of ( ...
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 ...
0
votes
0answers
47 views

The value of attribute “Ratio” must be set

I am using magento 2.2.6, and when i am trying to create new category, i am getting this error "The value of attribute "Ratio" must be set" Where is this attribute, i am not able to find in database. ...
0
votes
1answer
514 views

Product category update issue in magento2

I am updating product category from admin.. getting below error. "Could not save product \"41859\" with position 0 to category 8", Referred this link as mentioned it is fixed in 2.2.4, How to solve ...
0
votes
2answers
145 views

Magento 2.2.6 : Add custom phtml file after product price in catalog search result page

I want to add custom code in my catalog search page. I don't want to override product/list.phml file . But, Just display my custom code in catalog search result page after product price. How to add ...
1
vote
1answer
37 views

which one is the main category of product

I need to take the main category . i try the following code $product = $objectManager->create('Magento\Catalog\Model\Product')->load($itemid); $cats = $product->getCategoryIds(); print_r($...
2
votes
0answers
198 views

Show all categories and sub category name in sidebar on product listing page

I'm using a custom theme in Magento 2. How can I display listing of categories and sub categories in the side bar of a product listing page.
1
vote
0answers
58 views

Using layered navigation without is_anchor category attribute

Is it possible to use and display the layered navigation filtering when setting the anchor attribute to false? I don't want to set anchor to true, because I don't want products of child categories to ...
0
votes
1answer
68 views

How to define a category path of a product while importing csv sheet?

I am trying to add products to my website and the category path I am defining is in this format (Default Category,Default Category/Subjects,Default Category/Subjects/Business Management) instead of ...
0
votes
1answer
256 views

Showing Review Summary on Category Page

I want to show customer reviews of product on category page.How can i do? please help
0
votes
1answer
69 views

How to get category only product assign in magento1.9?

How to get category only product assign? Code:- <?php $_helper = Mage::helper('catalog/category') ?> <?php $categoryId = 4;?> <?php $category = Mage::getModel('catalog/category')->...
0
votes
1answer
115 views

Is it possible to change category names or create new category if category is available programmatically magento 2?

Actually i am trying to change category names with a bunch of data(csv data) or create a new category if the category is not available programmatically Magento 2
0
votes
1answer
171 views

Magento ver. 2.2.3 Catalog Category URL rewrite

Some of the catalog category URL are not been generated and are showing URLs as http://xxx.xxx.xxx.xxx/magento223/catalog/category/view/id/111/ this is an issue in only 20 categories and while I have ...
0
votes
0answers
44 views

Unable to export categories

I am having trouble exporting categories into a csv file when I go to system>import/export>dataflow-profile>entity type. The only options I get is products and customers. Is there a way to enable the ...
0
votes
0answers
114 views

Magento 2 how to hide attribute at Layered navigation?

I would like to hide some attributes at left layered navigation based on the category & category's filters ? Can any one suggest how to achieve this in Magento 2? For Example: Travel is an ...
0
votes
1answer
17 views

Load category, but only with limited data to build a Breadcrumb

Based on the helper catalog there is a function that returns a path for the breadcrumb to be displayed in Magento when viewing a Product. I want to enhance this method to return the full path of the ...