Stack Exchange Network

Stack Exchange network consists of 174 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

2
votes
2answers
26 views

Getting error while adding category Magento2

I am getting below error while saving category. This error are from log file. [2019-01-18 12:03:51] main.CRITICAL: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'a76e6b4a_demo....
0
votes
2answers
20 views

Change a Category Name without affecting the existing products within that category

I just realized that I incorrectly named a sub category and its url on a Magento 2.2.7 site. This category currently has approximately 150 products in it. Can I just simply edit the Category Name or ...
0
votes
0answers
14 views

how to use product watermark image in category image in magento 2

i need to display watermark on category image like product image.i want to use default watermark image of admin which are used in product image it should be added in category image too can anyone help ...
1
vote
0answers
16 views

How to skip any category in seo meta title template?

We have magento 2 on website we have 4 categories, we sell photocopier parts, let me give an example what issue we are facing and what we want. Konica Minolta - Bizhub Color Series- Bizhub 203 - ...
1
vote
0answers
8 views

Sub Category - Load By Attribute (name) URL issue, how to resolve?

Mage::getModel('catalog/category')->loadByAttribute('name', $val)->getUrl(); The above code won't work correctly in my PHP code when I have multiple categories & sub-categories with the same ...
0
votes
1answer
15 views

Category Custom Attribute in rest API in Magento 2

I am using magento 2.2.7 and I am creating rest API for Category. From swagger I am getting value like: { "id": 28, "parent_id": 2, "name": "Smart Phones", "is_active": true, "position": 1, "level": ...
0
votes
0answers
11 views

How to add product with category name instead of category id in Magento using Rest API

I want to add product with category name instead of category id in Magento using Rest API.
0
votes
0answers
16 views

Magento 2: Get category in product list

In my product list template I need the current category. I was searching around and the recommended way is to inject the registry into the current block's constructor. Example: https://magento....
0
votes
0answers
15 views

Add Custom Link Under Existing Categories

I would like to add some links under a specific categories, not subcategories ! Normally you would create a subcategory under a category and so on but, I need to add some filter link which in turn it ...
0
votes
1answer
20 views

Subcategory product image and link not showing on display block

I have created a subcategory called Housekeeping Uniforms and divided into two more subcategories - Stock Housekeeping Uniforms and Custom Housekeeping Uniforms. Both subcategories show on the ...
0
votes
1answer
19 views

My category navigation layered navigation is showing no products

I am newbie in Magento 2, I configured the Magento 2 layered Navigation and did everything to set layered navigation for categories and size and color. Layered Navigation is working perfect for ...
0
votes
1answer
39 views

Magento2: how can i override protected function

i want to override CategoryProcessor.php namespace Magento\CatalogImportExport\Model\Import\Product; I have created my custom module but not override. my registration file <?php \Magento\...
0
votes
1answer
19 views

Magento2:importing csv category include in menu enable

when i import product's csv. All products and category created successfully also all categories include in menu. I want when i import csv , all thing will be done , but not include in menu categories. ...
0
votes
2answers
66 views

Magento 2: How to Create “home” link in category

My Magento version is 2.3, I want to create "home" and "about" link in the category, I search few articles but it is for Magento 2.0 version, I was not able to find for Magento 2.3 version. I want ...
0
votes
1answer
21 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
34 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
22 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
40 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. ...
0
votes
0answers
27 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
38 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
1answer
23 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
35 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
36 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
17 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
25 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
11 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
17 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
10 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 ...
0
votes
1answer
15 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
85 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
75 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
37 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
54 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
20 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
234 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
27 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
28 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
37 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
0answers
25 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
34 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
55 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
21 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
63 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
38 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
31 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 ( ...
2
votes
0answers
113 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
24 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
0answers
119 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
52 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 ...