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

0
votes
0answers
25 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
1answer
19 views

Apply catalog price rule on all products of one category

i have different cataloge price rules for different products of different categories. Now i want to add a new minus discount to a category with 60 products (-5%), which i implemented successfully. ...
1
vote
2answers
30 views

How to make a Category parent link not cliquable and just the subcatgories cliquables M2

I have a category with id =41 and have 2 child i want to see the parent category and her child but just make the parent category link not cliquable any idea please and thanks in advance
1
vote
0answers
14 views

Magento 2 move page main title into div with product_list_toolbar

I want to move the page main title on the category list page into custom div and also include the product_list_toolbar into that div. The problem I face is that I can not simply move the ...
0
votes
0answers
7 views

How to Apply shopping cart rule for group products if there child products are not in same category in magento 1.9

I want to apply shopping cart price rule on category but that category have group products and there child products are not in same category. when i apply rule on group products then after i add ...
3
votes
0answers
24 views

Magento 2: How to add quantity field in category page [duplicate]

I need to add quantity box in category page. your help will be greatly appreciated
0
votes
1answer
27 views

Blocked mixed content error in console when I try to edit a product in my magento

When I try to click next product page in my magento admin panel, The loading never stop and when I go to console, it says like this.: I tried using, firefox,chrome,safari but same problem occurs. I ...
0
votes
0answers
19 views

Magento 2 - Dynamically hide empty categories based on attribute selected in a cookie

I'm trying to hide empty categories based on an attribute selected previously. Basically I have a vehicle parts website and a customer can choose a vehicle model and I've changed the products ...
0
votes
1answer
28 views

Mass Activating Magento Categories

Thanks guys for the help in getting the cat ids in magento. Found this script to mass enable categories based on IDs <?php setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $file = fopen(...
2
votes
3answers
41 views

Export Category IDs

Used this script for ages but now need the actual category Ids to be exported. public function getAttributes() { $data = array(); $data[] = array (‘field’ => ‘id’, ‘label’ => ‘ID’,’...
2
votes
1answer
38 views

Sort collection by discount

I want to sort my collection by discount percentage for my sale category, I don't know if it is possible in Magento
0
votes
1answer
21 views

removing categorty in product page is giving error

We are facing issues - https://prnt.sc/mgdybf why we are not able to remove the Deal and Pre Owned category. Could not save product "26652" with position 0 to category 435 What is this error ...
0
votes
3answers
35 views

Magento 1 Redirect only works once, works again after refreshing cache

I want to add a simple redirect if a customer is not logged in when trying to access one of my categories. Now, I have created a test.phtml file and added it in my theme page/test.phtml with ...
1
vote
1answer
39 views

Multiselect category dropdown on admin form

I have created custom CRUD on new database table. I just wanted to save comma separated categories in a field. I have this code for multiselect categories: $fieldset->addField( 'categories', ...
0
votes
2answers
46 views

Magento 2 Remove paypal icon from category pages side bar

want to remove paypal icon from category pages:
0
votes
0answers
11 views

Config product options not appearing as select on category page

I've set up a config product with an attribute for colour. If I set this attribute to appear as a text or visual swatch and also set the attribute to be visible on catalog pages the swatches will ...
0
votes
2answers
26 views

M1.9.x - Trying to get custom attribute in Navigation.php / Menu Creation

I am trying to get the page_title (custom category attribute) in Navigation.php (menu build up) to use as the html title attribute. For example this is were we would use the extra attribute in an ...
0
votes
0answers
22 views

Do I need to select the root category when adding a new product?

Root category: Root Sub categories: Sub1, Sub2 When I add a new product for one of the sub categories, should I select also the root one?
0
votes
1answer
21 views

Specific view page for products (product info) from specific category in Magento 1.9

We devided all the products into two categories: "Main products" "Accessories" All listed products from the category "Main products" are opened with our custom template: catalog/product/...
1
vote
1answer
22 views

How to duplicate category title and move description below product grid

I'm just diving into template/block/layout customization in Magento 2.2 and I'd like to move my category title from being left aligned to being aligned above the description. Currently it's like this:...
0
votes
1answer
12 views

Magento 2. How to get All Parent Categories Ids from current category ID

I'm getting the current category Id using Registry like $categoryId = $this->_registry->registry('current_category')->getId(); and to get the parent categories I tried this $objectManager =...
0
votes
2answers
24 views

import categories from magento 1 to 2

I need to import categories on magento 2 that I exported from magento 1, Is it without issue, I mean is it risky for magento 2 store. Help me please if you have any proposition?
2
votes
1answer
24 views

In Magento 2,I can't Open Categories With New URL

If I add new URL then it's showing 404 error when it open frontend side.If it open with old URL it's working. For Ex. I have added new URL "business-card-gift-card-holders123" for category.It's ...
0
votes
1answer
27 views

how to hide child of configurable product in Category page magento 2

I want to display configrable product without child product in Category page and when i access the product page of the configurable product i get the child according to my choice So how to do that ...
0
votes
1answer
22 views

Subcategories of disabled Categories are still accessible

I have the following scenario: + Primary Category <---- DISABLED | +-- Secondary Category <---- ENABLED | +---- Tertiary Category <---- ENABLED So the primary category is not web-...
0
votes
0answers
10 views

How to import categories/work with category ID's when doing a Dataflow - Profiles import from 1.9.1 to 1.9.4

Magento 1.9.1 to 1.9.4 We setup a bit newer version of Magento on a new server. The old install still currently running is Magento 1.9.1. I am getting ready to do a Dataflow - Profiles export/import ...
0
votes
1answer
22 views

Migration tool causing url_rewrite duplicates in Magento 2 leading to missing categories in Navigation

I am currently attempting to Migrate data from Magento 1 to Magento 2. I ran the Ubertheme Magento "Data Migration Pro" tool several times in the course of trying to Migrate our information over from ...
0
votes
0answers
18 views

Category Date component showing wrong value

I have created a DateTime category attribute schedule_start, I have also created a bakend model for this attribute and before saving attribute value I am formatting the date time value as per the ...
0
votes
1answer
18 views

How to get all current category products in magento 2

I want to get all the products available on the current category page I tried this code public function getProduct() { $check = $this->_registry->registry('current_category')->...
0
votes
0answers
15 views

The value of attribute “Is Active” must be set -error always when trying to create category via SOAP

I'm trying to create a category via SOAP $category_data = [ 'parentId' => 2, 'name' => 'NIMI', 'is_active' => 1, // also tried 'isActive' => 1 'position' => 1, '...
0
votes
0answers
21 views

Category in admin side not loading

After clicking in any category the page is not loading .Please find the below screenshot of the page. Any body know why it is like this?
0
votes
1answer
34 views

How get Category Id and Category Label

I get product like this way, but how can I get sub category now and ids and label? $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $categoryFactory = $objectManager::...
0
votes
0answers
17 views

Error on system log

I having a numerous errors like below on /var/system.log, Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "1484" already exists. [] [] Item (Magento\Catalog\Model\Category\...
0
votes
0answers
14 views

The bundle products are not shown in the categories

I have created a bundle product, but when searching for it in the category where it is assigned, it does not appear. I'm sure of the next points. -The product is Enabled -I refresh Cache / Indexers -...
0
votes
1answer
20 views

Magento 2 Products missing in category pages post Migration

I've recenty attempted to Migrate my products and categories from Magento 1 to Magento 2 via Ubertheme and run across a strange issue. I have two categories, "Brands" and "Type", which have a number ...
0
votes
0answers
14 views

Navigation Bar Dropdown Issue

I've currently made me Magento site (v1.9) on to a live site and after this being uploaded I now have an issue of my categories in my nav bar are constantly dropped down (they don't go up or down, ...
0
votes
0answers
13 views

Magento security patch supee-10752 on magento 1.9 and mirasvit full pgae cache conflict

After installing security patch supee 10752 on magento 1.9 site. site is showing error 500 for logged in customer on category ,sub category pages and home page. After some debugging we come to ...
0
votes
0answers
14 views

Magento 1.9.2. - Update breadcrumb with ajax filter category

I created a filter in my layered navigation that covers all the categories of my site. The effect with ajax seems to work correctly and the contents update just like other normal filters. The problem ...
0
votes
1answer
21 views

Magento 2 : custom template file for different categories

I want to set custom template file for different categories. How to set custom phtml file for different categories using XML file? Any help would be appreciated.
2
votes
2answers
38 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
21 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
13 views

Megamenu using same category URL for all categories on front-end

I'm using the Magedelight Megamenu for Magento 2.2.7 I have a range of product categories listed under the "Default Category", about 8 or 9. The Megamenu is using the URL of the first category in the ...
0
votes
0answers
21 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
10 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
30 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
12 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
18 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
17 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 ...