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
43 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
38 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
61 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
70 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
-1
votes
1answer
182 views

removing categorty in product page is giving error [duplicate]

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
47 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
875 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
210 views

Magento 2 Remove paypal icon from category pages side bar

want to remove paypal icon from category pages:
0
votes
0answers
26 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 ...
-1
votes
1answer
35 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
30 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
23 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
49 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
110 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
1answer
31 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
2answers
97 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
50 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
34 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
41 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
142 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
35 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
27 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
30 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
33 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
75 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
19 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
18 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
69 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
19 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
30 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
39 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
27 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
54 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
25 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
19 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
58 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
18 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
18 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
97 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
19 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
21 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
21 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
162 views

Mageplaza Magento 2 Products Slider Category ID not working?

https://github.com/mageplaza/magento-2-product-slider When using the CMS shortcode for selecting a category: {{block class="Mageplaza\Productslider\Block\CategoryId" template="...
0
votes
2answers
45 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
0answers
14 views

Update links in CMS pages to point to sub-domain

My Magento 2 website is set up such that it has a main store and several sub-domains. I have created a page with links to different categories and I want this page to be available for each sub-domain ...
1
vote
1answer
240 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
32 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
3answers
117 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
0answers
52 views

Magento 1.9 Home page ok but categories are very slow ( no products)

What maybe an issue of slow categories and sub categories without any products at all? My home page is not too fast but at least I understand what can be done (banners compression, less requests and ...