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

5
votes
0answers
899 views

Magento 2 - Move Category Page Toolbar/Sorting Options Above Both Columns

What I'm trying to do is move the toolbar/sorting options on the category page above the left column and right column so it spans the full width of my content area. I'm trying everything and nothing ...
5
votes
0answers
1k views

Displaying Subcategory Blocks Magento 1.9.2

I'm having trouble displaying subcategory blocks in Magento. I have followed several solutions posted on here and this tutorial. I created a static block with this code: {{block type="catalog/...
4
votes
0answers
299 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 ...
4
votes
0answers
244 views

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,...
3
votes
0answers
25 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 ...
3
votes
0answers
835 views

Magento 2 show price range for configurable product on category page

I have configurable products with different prices for each product. For example I have a configurable product with three package sizes: Small = 50$ Medium = 60$ Large = 70$ On the category page, ...
3
votes
0answers
187 views

How to include category id in url on category list page?

i want to include category id included in url on category list page. My default category url is listed below:: http://magento2.shelltag.com/women/bags/backpacks I want to show it like this : http://...
3
votes
0answers
78 views

Category URL rewrite generating with categoryname (hypen + increment) for n store views

My website has 10+ store views, I observed that while creating new categories the default URL rewrite functionality of Magento is adding hyphen + increment id based on the store views count. like ...
3
votes
0answers
593 views

Widget is not working in Magento 2

I am trying to insert a Catalog Category Link widget in my Home Page. But it is not working. I am sharing the code below. {{widget type="Magento\Catalog\Block\Category\Widget\Link" template="...
3
votes
0answers
462 views

Magento 2: How to add fontawesome icons for each category top-menu item?

I'm using Magento v2 and want to have icons added to the left side of each category menu item. How can I accomplish this? I'm using a custom premium theme. When I try to see the template path by ...
3
votes
0answers
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'])...
3
votes
0answers
575 views

Magento 2 - Display subcategories above product listing

I'm trying to display the first 8 subcategories above the product listing on a select few category pages. I know that I can easily do this using static blocks, but I'd rather use a custom template ...
3
votes
0answers
271 views

Need to create Ajax Category filter

Need to create ajax filter for category. Please help me to create AJAX category filter. I don't want any use extension. My Magento version : 1.9
3
votes
0answers
84 views

Magento 2.0 rollback to Magento 1.9x - question about attributes

Being a new magento "developer" (use quotes because honestly, I can barely navigate the admin let alone build this site properly!) I still have tons to learn. Recently tried to procure cheap hosting ...
2
votes
0answers
21 views
2
votes
0answers
20 views

Error: getParentCategories() on null

I am working on my custom module where I added a button on Configurable products. The Content I was showing through button was by getting the Parent Category ID. The main issue I am facing is that ...
2
votes
0answers
26 views

Can't save value in custom field /admin/catalog/category

I have added a custom field in admin category. I need to save and get value of my field using observer. My Xml file is "category_form.xml" <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
0answers
39 views

How to change the canonical function for category page in Magento 2?

How to add custom url Using canonical function Code: if ($this->_categoryHelper->canUseCanonicalTag()) { $this->pageConfig->addRemotePageAsset( $category->getUrl(), '...
2
votes
0answers
19 views

Position not showing in category sorting dropdown

I have a problem with the sort order of products in the categories: The Position option is not showing in the dropdown as you can see in the screenshot. In the Magento backend the position is ...
2
votes
0answers
26 views

Solved: Layered Navigation of Parent Categories

The layered navigation of the Child Categories it's working okay. The problem is with Parent Categories. I'm trying to have the same filters on Parent Categories but i still can't solve it. What I ...
2
votes
0answers
41 views

Magento2: Class not found error

Product category page is not working. My Magento v2.0 Got the error below. use Magento\Framework\EntityManager\MetadataPool How can I solve the issue. ?
2
votes
0answers
189 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.
2
votes
0answers
139 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 ...
2
votes
0answers
702 views

Magento 2 : Invalid Form Key. Please refresh the page

I get this error when I try to save a category, Invalid Form Key. Please refresh the page. I tried the following solutions from various other posts Increase php_value max_input_vars 75000 Try to ...
2
votes
0answers
21 views

Magento 1: Custom layer block not showing categories

I want to create a custom block to display the subcategories with a certain filter from a category. So I created a block that extends Mage_Catalog_Block_Layer_View: class My_Module_Block_Layer ...
2
votes
0answers
33 views

Enterprise 1.14.2.0: Problem with understanding getProductsReadonly function

My Task was enabling Position field on category product selection grid some how position box was hidden category product selection grid. In the debug process i find out there is a function $this-&...
2
votes
0answers
106 views

Adding scrollbar in category dropdown

I add 1 category name Category, and add sub categories to it. But, because there's too much sub categories, i need to scroll down the page first to see the full list of the sub categories. So my plan ...
2
votes
0answers
161 views

Read csv and add image in category Magento 2

I tried this code but i could not upload image <?php use \Magento\Framework\App\Bootstrap; include('app/bootstrap.php'); ini_set('max_execution_time', 36000); ini_set('post_max_size', '5000M'); ...
2
votes
0answers
355 views

Programmatically create a category in Magento 2

I am not able to create a category using below code, Also I can't get website id, Anyone knows explain me use \Magento\Framework\App\Bootstrap; include('../app/bootstrap.php'); $bootstrap = ...
2
votes
0answers
89 views

How to Add No Index tag to category path product urls in magento?

We want to add no index robots meta tag for all those category path product pages: www.example.com/Category/productpage Actual product page: www.example.com/productpage category path product ...
2
votes
0answers
457 views

Magento 2 - Cant save categories with too much products after migration

When I try to save categories in Magento 2 Administration in Products > Inventory Categories the following Message appears: Something went wrong while saving the category The exception.log ...
2
votes
0answers
50 views

Magento 2.1.5 products filter problem

I'm currently working on setting up a e-commerce website. Of course we want to use a filter for the products but I'm facing a problem at the moment. I have a category with 5 products. All of them are ...
2
votes
0answers
188 views

Calculate total price of cart depending on quantity

I am trying to setup 3 different tier prices (all of which are in the same category): 0-5 products - £2.50 6-10 products - £5 11-20 products - £10 Note: Creating Tier pricing will not work, as I ...
2
votes
0answers
46 views

Replace index.php from subcategory url in cms page

I have created a cms page for categories which list all the subcategories of that current category. My issue is i am getting index.php appended when i click on subcategory links from that cms page. ...
2
votes
0answers
206 views

Magento 2 Category Page Error

Did a upgrade to 2.1.4 and now my Category Page is giving my an error. I was hoping maybe someone here could point me in the right direction to fix this issue. Below is the error log: a:4:{i:0;s:73:"...
2
votes
0answers
43 views

Magento 2 ,category and flush magento cache error

magento 2.0.2 there are an error when doing flush magento cache and we found out when the products in one of the category ,all operation around the product will error, we cant deselect that cateogry ...
2
votes
0answers
57 views

Magento 2.0 - Multiple Simple Products redirecting to the same Configurable product in different Categories

I am not sure the best and cleanest way to do this, preferable from the admin panel. However, I sell different sports products with different teams. Right now, each team has it's own product page. ...
2
votes
0answers
25 views

Category Url's ended with numbers like car.html -> car-1.html

We have multiple stores in our magento website, few of the category Url's are ended with car-1.html and car-2.html. From basic observation Admin category config - car.html store one - car-1....
2
votes
0answers
969 views

Show subcategories in a parent category Magento2.1

Does anyone have an idea how to show a list of subcategories with a link and image on a parent category. So when I click a parent category to show all subcategories including the one in the third ...
2
votes
0answers
81 views

How can I link a category to a newly created CMS page

I created a CMS page and I would like to link the page to one of the categories on my nav. How can I do this?
2
votes
0answers
24 views

Magento 1.7 using category as Top Navigation at the same time sub-navigation to other menu

How do I add the category as Top Navigation and at the same time it's a sub-navigation under different Top Menu. I'm using Magento 1.7. I'm not losing hope for this. I know someone here can help. ...
2
votes
0answers
545 views

bundle products are not showing in magento 2

I have created products through API from c#.net and products also created successfully with category ids. But the products are not showing from frontend even though I have cleared cache. try ...
2
votes
0answers
445 views

Magento related products get category

I want to edit my /catalog/product/list/related.phtml file. I want to define all related products based on their main category. So for example that all mices are displayed in their category "Mices" ...
2
votes
0answers
2k views

Problematic Category ID? “No such entity with id = 0”

I've come across a problem I'm not able to handle by myself. I have recently started the process of moving my M1 store over to M2. All in all, a solution like Store Manager from eMagicone makes the ...
2
votes
0answers
2k views

How to show sub categories in category page in magento?

How to show sub categories in category page in magento 2.0?
2
votes
0answers
2k views

Magento 2: Hook into price display on category page

I want to add custom notices directly behind every price on product detail and category pages. On product detail page this works fine with layout.xml: <referenceContainer name="product.info.price"&...
2
votes
0answers
426 views

M2 Category Permissions

Maybe it's just me, but I can't for the life of me find where category permissions exist on 2.0 EE Even in the new user guide- the only time category permissions is mentioned is in the private sales/...
2
votes
0answers
361 views

How to link product in parent category to same product in sub category

I've got a parent category (clothing) and a subcategory (jeans). There's a product called "hip blue jeans", which is assigned ONLY to the subcategory "jeans" and NOT to it's parent category "clothing"....
2
votes
0answers
2k views

Call to undefined method Mage_Catalog_Model_Resource_Product_Flat::loadAllAttributes()

I have trouble with some API calls, which results in this error in the log. Call to undefined method Mage_Catalog_Model_Resource_Product_Flat::loadAllAttributes() As far as I can see the mentioned ...
2
votes
0answers
58 views

getting all products instead of getting the products from current category in Layer.php

I looked around, and i found something similar but still can solved my problem. So i decided to ask here. sorry if there is a duplicate question already asked. I want to override the ...