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 about product categories in the Magento catalog

0
votes
0answers
11 views

Preselect a category for a new product

I'm trying to preselect a category for a new product. I tried many things - with PHP, XML, but without success. I would be happy to get some help.
0
votes
1answer
11 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
0answers
11 views

Sorting does not work in customized Zenon category view after upgrade of Magento 2.2.1 to 2.2.6

I have customized category and subcategory view by extension Zenon on Magento 2.2. store. After update from 2.2.1 to 2.2.6 the sorting in this category view has stopped working. I can change position ...
-1
votes
1answer
19 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
0answers
7 views

Add Cron to Assign Products in Categories when using VM rules in M2

We are using "Match products by rule" in Categories and whenever we add any new products it is not assigned to categories in which we are using "Match products by rule". When we manually go and save ...
0
votes
1answer
22 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
17 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
24 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
32 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
13 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 ...
0
votes
1answer
15 views

How to display categories and subcategories in layered navigation magento2?

These are Categories List in admin: If I click Shop then I want to display categories and sub-categories in layered navigation filter. How can I achieve this functionality?
0
votes
0answers
11 views

Edit the category page in html source (1.8)

The category page of my Magento 1.8 webshop. There is a display: none in the source on the category title in this div: <div class="page-title category-title"> It's ok for me that this is ...
0
votes
0answers
30 views

Magento 2: Url issue

I have category shop > level2 > level 3 category When i check level3 category. The url of level 3 category is https://127.0.0.1/project/leve3.html Now i want to change https://127.0.0.1/project/...
0
votes
2answers
52 views

Create Custom category Yes/No attribute magento2

Is it possible to create the custom attribute for a category called is_featuted category as 'Yes/No' attribute? I am looking for code how to create the custom attribute for category and get all the ...
0
votes
0answers
19 views

how to add another product grid tab same as “Products in Category” in admin category?

I want to add custom product grid same as "Products in Category" in admin category tab. Is there any free module or any other way ?
0
votes
0answers
12 views

Magento 2: Product Category pages with 1 column hide the sort and List/Grid selection menu

I have discovered an issue in Magento 2.2.5 that I cannot figure out how to resolve. When I change the product category custom design to be only 1 column then the products cover up the sort menu and ...
1
vote
0answers
22 views

Duplicating Categories

I am trying to set up a new website which has been migrated from an older site. This migration carried over the old category structure. Within the new structure i want to build, I am creating new ...
0
votes
0answers
27 views

How to Show Category Filter In Layered Navigation?

I am using Magento 2.1 I want to show Category Filter in Left Sidebar. please see attached image: After Size I want to display category filter.
0
votes
0answers
32 views

How to get filter options on category page using REST APIs Magento 2

I need to get all applicable filters on a category page. I am using below API to fetch all filters. http://localhost/magento/rest/default/V1/products/attributes?searchCriteria[filterGroups][0][...
0
votes
0answers
22 views

How to add sidebar on product category page in Magento2.2.6?

How to add sidebar on product category page in magento2.2.6? I selected "2columns-left.xml" layout template in category. http://www.gsmalhi.com/wedding/shop.html I want to add sidebar on this ...
0
votes
0answers
33 views

Magento 2 category updated programmatically not working

from upload the CSV file trying to created&update the category, while I create the category from the below script it's working, but while I update the category with the same script does not work. ...
0
votes
0answers
22 views

Magento 2: How to change the pagination pattern

How can I change the URL pattern for Magento 2 pagination? Currently, it uses something similar to myproductpage?p=1, myproductpage?p=2 But I want to have it like myproductpage/1/, myproductpage/2/ ...
0
votes
0answers
20 views

I need to enable foreign key checks on table

I manually import category table but after impport there is no connection between table entries thats why categories in admin does not show whole data.how can i enable or make these checks or links.
0
votes
1answer
26 views

Elasticsearch Error - call_user_func_array() expects parameter 1 to be a valid callback

I have an M2 with Elasticsearch installed, with the Smile/Elasticsuite module. These are my versions in composer.json: "smile/elasticsuite": "2.5.15", "elasticsearch/elasticsearch": "^2.2.3" And ...
0
votes
0answers
13 views

Change in the Category Page the Title of the Category by the Meta Tittle

In the template I am using at the top of each category, it is shown as <h1> the title of the category but I would like to show as H1 the Meta title of that category. This is the code where get ...
0
votes
0answers
17 views

Magento 2 Can't Save Category

I am receiving the following error when trying to save category: The value of attribute "name" must be set I've no idea what could have happened I've got no Layout Update XML Exception.log: [...
0
votes
0answers
29 views

Issue with Magento 2 generated sitemap.xml

I'm using Magento's built in sitemap generation tool and have it set to generated nightly. The issue I'm facing with it is that the urls in the sitemap do not match the ones found on the site. To ...
0
votes
1answer
32 views

How to get product root category name or ID using product ID in magento 2.2.6?

I am working on magento 2.2.6 I am using file vendor/magento/module-catalog/Helper/Product/View.php In this, I am trying to get root category name or ID of product using product id in function ...
-1
votes
2answers
35 views

Magento 1 Update/append product categories in database

I want mysql query for append or add new category ID to exsting product categories.
1
vote
1answer
50 views

Categories not displaying in responsive side menu

I'm making a custom navbar, and I've moved the 'catalog.topnav' block into my custom navigation. The problem is, is that some of the sections and categories on the responsive side menu are not ...
0
votes
1answer
31 views

magento2 remove the category id from url?

In magento2 click on category, that category url look like this www.example.com/catalog/category/view/s/hook-and-loop-brands/id/71/ how can i remove the category id and category path in url?
0
votes
0answers
21 views

MAgento 2 with infortis ultimo theme - display categories on the left

I am new to magento I inherited a project with magento2 and the infortis Ultimo theme. Initially the categories were very few but are now too many to show on the top menu. I would like to show the ...
1
vote
1answer
21 views

What is the meaning of the is_autogenerated field for category url_rewrites?

I am investigating an issue where a category has more than one url rewrites. It looks like this: mysql> select * from url_rewrite where entity_id = 8597 and entity_type = 'category'; +-------------...
2
votes
0answers
37 views

Magento 2 category not work properly

Most of category issued are about product not showing. But I got a different issue here. After I'm trying to solve some problem with the Porto theme. Every category in my site start showing all the ...
1
vote
1answer
22 views

Configurable products showing below out of stock products

I've just added some new configurable products to a category. They do show up but the problem is that they show up after the out of stock items. Everything in the category is sorted by best value ...
2
votes
0answers
88 views
+50

Magento 2.2.5 - Categories are not getting saved in the database

In my Magento 2.2.5 Store, When I try to edit the existing categories content and press the save button, the categories content stays the same, there is no change being reflected in the admin panel,...
0
votes
0answers
28 views

Categories list on home page Magento 2

Is there any way to display all of my categories and sub-categories in Magento 2, without creating my own module for that? Thanks for advance.
0
votes
0answers
20 views

How change category page layout in phone view?

please someone guide me how can i change the phone view layout of category page. I want to show only bigger image in phone view.
0
votes
0answers
15 views

Magento 2 Search by category

I am using Magento 2.2.6 I have drop down of all categories in the left side of search field(on home page). If I select any category and then type something in search field then it will search that ...
0
votes
1answer
17 views

Magento 2 Products assigned to category issue

For some reason we are experiencing a issue with our Magento site with products randomly being added to a certain category. We have removed them several times but they randomly appear in that ...
0
votes
1answer
44 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/...
0
votes
1answer
16 views

Category shows as blur

Actually, I forgot to create a category in magento 2. But the products are available when I searching. The category shows like the image below I have attached. And it is not in the frontend navigation ...
1
vote
2answers
40 views

Some Category pages taking exactly 10 seconds to load

Magento V. 1.7x On the menu bar there are multiple categories like boats, cars, trucks etc. Some of these categories, whatever is in Cars & Trucks are taking exactly 10 seconds to load. I am not ...
0
votes
2answers
48 views

How can I add block to a form element?

I want to customize category_form.xml in such a way so that, I can add custom block to the form element [say: Category Name]. Is there a way to add custom block to the Element?
0
votes
0answers
67 views

Change the category, image src, into the choosen svg file

What i did is, I have added svg file in my category, that have links on it, link are not working, reason is, on how magento call the svg file. What I want is to create a module, that will directly ...
0
votes
0answers
14 views

How to remove all product from category by CSV bulk sheet?

In Magento1 just I was uploading csv sheet sku , Category_id empty was remove all the products from the assigned category, why Magento 2 is not working ??
0
votes
0answers
17 views

Magento 1.9 - Category Tree in Frontend not showing correct product count

It looks like this: Category Subcategory A (0) SubSubcategory 1 (0) SubSubcategory 2 (0) Subcategory B (19) If a category is selected all products are shown correctly on the category page. It's ...
0
votes
2answers
32 views

Magento 2 - Categories not display when Page Cache is on

I have a very strange issue on Magento 2.2.2, if I enable the Page Cache (Full page caching - FPC) the top navigation is not display anymore. What I can do? Thank you
2
votes
0answers
20 views

When To Use MultiStore Vs. Categories

I'm attempting to hide the "Add To Cart" button for specific stores currently and am having some issues with my lack of experience. It works in each individual store but not when using the search ...
2
votes
3answers
61 views

Category product count not showing properly in magento2

I have assigned more than 30k products to one category in my website, but when i visit that category on frontend it is shwoing only 10000 products on the category list page. In admin panel the count ...