Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

Magento 2: load disabled category childrens

I need to get all category children of a specific category but disabled categories too. I have this category tree: + Root (ID: 2) // enabled | + Main 1 (ID: 3) // enabled | | + Sub 1 (ID: 4) // ...
0
votes
1answer
25 views

it is possible to remove sidebar for specific category product listing?

my file : Vendor/theme/Magento_Catalog/templates/category/products.phtml i made this changes ` if($category_name == 'Featured Product'){?> <!-- when Featured Products --> &...
1
vote
2answers
83 views

Magento2.3: How to get sub category for parent category?

I have installed Magento2.3.2 EE on local. I have seen that the default category menu is not working correctly so that we want to load category and subcategory collection at top menu position with our ...
4
votes
1answer
53 views

Product to category redirect

Is there a way to link/redirect a product page to a category? Scenario: I have 70-80 new products that all go into the same category. I can either chose to put one of the products in the "News" ...
0
votes
1answer
61 views

Magento2: How to load category collection?

I have to load the category collection and show it on top menu position on my Magento site. I have tried object manager concept but it's not correct method to follow so that I have to load it using ...
0
votes
1answer
43 views

Magento 2 : How to fix “Class Magento\ConfigurableProduct\Model\Product\Type\Configurable\Interceptor does not exist”

Please help, I can't create Products or Categories. How to fix it?
0
votes
1answer
37 views

How to get Category and sub category from backend?

We have faced design collapse issue on the category menu part at the frontend of the website. So, we have created the mega menu using html and css, and included that code in topmenu.phtml. Now, we ...
1
vote
2answers
73 views

Magento 2 : Getting error while saving category from admin

When I try to save category from admin panel it showing error like something went wrong and when I checked the exception log it showing me below error. main.CRITICAL: SQLSTATE[HY000]: General error:...
0
votes
0answers
14 views

How to expand / unfold category list by default (magento CE 1.8.1)

currently , my theme looks like this on a -mobile- device: But I want it to look like this: Meaning: I want the category list to be unfolded by dedault; without the user having to select it. I ...
0
votes
2answers
83 views

Magento 2 how to get all categories of a product in controller

I am trying to get all categories with their levels of a product through it's ID in my controller which is overriding default magento controller. Can I get product's category path url through it's id ...
0
votes
0answers
22 views

Get current product categories of current store only in Magento 2

I made the following in Magento 1 for a multi-store website: $rootCategory = Mage::getModel('catalog/category')->load( Mage::app()->getStore()->getRootCategoryId() ); $sameStoreCategories = ...
0
votes
1answer
24 views

Magento 1 sub domain Redirect issue

Just copy original domain files and DATABASE to Sub-domain and change Base-URL every links is working prefect but only few products, category, and images slide show links redirect to original main ...
0
votes
1answer
36 views

Magento 2 : Get current_category is cached and shows wrong IDs on category submenu

I have created a module to avoid an objectManager. In this I have public function getCurrentCategory() { return $this->_registry->registry('current_category'); } On my phtml file I ...
2
votes
4answers
139 views

Magento2 Copy data from one to another magento installation

I want to copy all data from one to another magento installation. Wants to copy products,product-attributes,category,category-attributes,customers,cms-block,pages,rules everything except orders. I ...
0
votes
0answers
17 views

Magento 2 URL - Category Hierarchy

Currently working on a site with several categories and thousands of products. We want to structure the categories into parent/sub or parent/sub/sub if necessary. I've looked at url rewrites inside ...
0
votes
1answer
37 views

URL rewrite magento 2 admin-side issue

Magento2 - facing issue with below error in admin panel error in console category:1 Uncaught SyntaxError: Unexpected token C in JSON at position 473 at JSON.parse (<anonymous>) at getData (...
0
votes
2answers
80 views

Magento 1.9: Copy all products of a category to another category

I want to copy all products from one category to another category in Magento 1.9.2.2?
0
votes
0answers
36 views

Magento2: Create Multi Select UI Field on Frontend as Admin

How to create a multi-selector dropdown with Category on frontend side as Admin Add Product Page. Shown as here screenshot I am trying this Tutorial Multi-selector on Frontend as admin side But is ...
0
votes
2answers
38 views

Magento 2: Moving Category Description

I'm currently trying to move the category description to below the product grid. Below is the catalog_category_view.xml layout: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
79 views

Magento 2.3.2 - Saving categories after data migration causes empty records

I have imported my cats and products from Magento 1 into Magento 2. The categories show in the front end but it states that no products can be found. In the admin, the cats show, with their products....
0
votes
0answers
16 views

Magento 2: Multi-Store Functionality Achievements

Store Requirements Admin Panel Restriction Admin Panel Store Wise Admin Dashboard Store Wise User Permissions and Resources control Different Admin panel views store wise Customers: Customers ...
0
votes
0answers
59 views

Magento 2.3 Invalid URL when updating category name in a store view

I am working on magneto 2.3. It has two store views: English and Chinese. I type a category name in Chinese store view, So I want to change it. But when I tried to save the new name in Chinese store ...
0
votes
2answers
112 views

Magento 2: Load multiple categories by category ids

Hi i want to load multiple categories in Magento 2.3. but it only fetch 1st category of a subcategory, not rest of category. $categories = $_objectManager->create('Magento\Catalog\Model\Category')...
0
votes
0answers
36 views

Magento 1.9 SOAP v2: Specify a store view on category update

I would like to update categories in a specific store view via the SOAP API. Below is the code I'm using: $catu = '628'; $store = '9'; $cat = "name2"; $proxy = new SoapClient('http://example.com/api/...
1
vote
1answer
68 views

GET Products by brand and category

I'm trying to create some type of search method for customers where they select the product's brand they want to search and then, if they want, they can also select the category they want (if there ...
0
votes
0answers
19 views

Magento 2.X: How change Category name to not necessary

i have this question, how can add category but without category name in magento 2.3? so i need this category name print in navbar but not in container theme.
0
votes
3answers
61 views

Fetch category id's through sql in magento 2.3

I want to get the list of category id's with category name through sql. how can i do that?
1
vote
0answers
30 views

Parent category products set as anchor do not show on front-end - Magento 2.3.1

We are facing a very strange problem and hope someone has maybe an idea to help. We are using Magento version 2.3.1 No products of the main category, set as anchor are showing up in the front-end. ...
0
votes
1answer
48 views

Magento2 - How to implement slow loading

I want to implement slow loading for my homepage. My homepage consist of category image then 9 products related to that category.This continues for all categories. For that, I want to implement lazy ...
0
votes
1answer
24 views

Magento 2.3: Is it possible import/create a category tree with category_id assigned

I have to import a 3rd party catalog into Magento 2.3. I need to recreate in Magento the category tree with the same category_id in the original tree because I need it when I update inventory. How can ...
0
votes
0answers
21 views

Magento 2.3: Change the store view when a certain category is clicked

How do I set up store views to be switched as soon as a category is clicked? We do run a Magento store that offers products for various customers. Let's set three categories in order to simplify the ...
0
votes
1answer
30 views

Magento 2 - Get only categories Names and Id in REST API Programmatically

I am trying to get only the category name and category id with the parent and child segregation programmatically using REST API. Can anyone please suggest some solution or provide some sample code ...
0
votes
0answers
17 views

Magento2.1 category URL structure

Want to set my category pages URL like this: https://domain.com/categories/{category name} Also is it possible to set https://domain.com/category/{category name} for main categories and https://...
0
votes
0answers
20 views

Unable to modify categories in magento due to error

Fatal error: Uncaught Error: Call to a member function toHtml() on boolean in /var/www/vhosts/Site/httpdocs/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php:153 Stack trace: #0 /var/www/...
0
votes
0answers
21 views

What class is responsible for adding the category url suffix to the URL?

I need to prevent the category URL suffix from being added to a select few pages. The suffix is set to .html, and I need it to be that for 99% of category pages, but the issue arises when trying to ...
0
votes
0answers
35 views

Magento 2 Mobile menu, make all the categories collapsible and collapsed by default

I am having a hard time finding anything related to the mobile menu. My problem is that in the Magento 2 default (blank) theme it's not possible to toggle categories collapsible in the mobile menu. ...
0
votes
1answer
25 views

How can I add brands and flavors in navigation menu with categories?

I want to show categories of items also want to show the brands and flavors of item according to the parent it has.
0
votes
1answer
14 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
0
votes
0answers
76 views

Magento 2: Category page empty after re-index (E.E 2.2.9)

I am working on Magento E.E 2.2.9 Category page is not able to display product once I ran re-index. I ran re-index using crontab. Category pages are empty until I flush cache manually. Any idea ...
0
votes
0answers
28 views

Category SQL error

I recently found the following error in Magento2 log. Reading the query is missing there's an error in where condition --> WHERE (()) How I can debug? Tryed a crude "grep" in my filesystem but I ...
0
votes
0answers
43 views

Magento 2: Categories import via CSV not updated same name child category as assign in different parent categories

I am importing categories via CSV and it is working. After updating categories data like description, is_active, etc. But same name categories are not updating in different parent. I want to update ...
0
votes
0answers
74 views

Magento 2: Set product position in category via REST API

I'm trying to set the position of an existing product inside a category via REST API. Currently all products have a position of 0. The endpoint I'm using is POST /V1​/products. The json body: { "...
0
votes
0answers
23 views

Categories not showing in Admin Product Edit Page in magento 2

I deleted all the products and categories via SQL queries (i used this answer https://magento.stackexchange.com/a/283404/73525 ) after i have recreated all i have categories in the ...
0
votes
2answers
45 views

How I can solve unable to save stock item in magento 2 while saving product

I deleted all the products and categories via SQL queries (i used this answer https://magento.stackexchange.com/a/283404/73525 ) while saving new product I got the error Unable to save Stock ...
0
votes
0answers
32 views

Fatal error when access to categories grid on admin Magento 2

I have a Magento store in 2.2.9, clients need this version to work with some module, at this moment when I access to the categories admin grid I get this error Fatal error: Uncaught TypeError: ...
0
votes
0answers
37 views

How to migrate only categories data to Magento 2?

After migration, I notice that I can't save categories in the backend. After all the diagnosis I found no solution. I want to migrate only the categories data, Is it possible? ( Without clear all ...
0
votes
2answers
45 views

Get Categories collection in Helper file give 'Mage' not found error

I am trying to get categories in helper file I am using Mage::() to get categories in my helper file but it is throwing error. Here is the code to my helper file. <?php namespace Pulsestorm\...
0
votes
0answers
21 views

URL key for specified store already exists for category export via akeneo?

when i export categories via akeneo to magento 2. URL key for specified store already exists for categories in magento 2 export via akeneo pim any one how to fix this issue magento ver 2.2....
0
votes
1answer
53 views

Magento 2 - Products not showing in front end

I have an issue with my development store (Magento 2.2.7), I have cleaned all data from the database with this tutorial (https://www.titechglobal.com/magento-2-x-how-to-clear-test-data-before-...
0
votes
2answers
102 views

Magento 2 How to get disable/enable child categories?

I am working with display all categories on a custom page, either it is enabled or disabled. When I try to get child categories with "getChildrenCategories()", but it is returning only enabled child ...