Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Remove single category in sidebar in category list page in magento2

Remove single category in sidebar in category list page in magento2
0
votes
0answers
8 views

301 Redirect For Category with forward slash

We recently deployed a Magento 2 site. Fresh install on a new https:// domain Set category suffix to blank Not .html or / What is occurring is, I am getting a 301 redirect after some categories: ...
1
vote
1answer
13 views

Magento 2 add parent category class to body for product listing page

I have number of subcategories under a main category called 'services'. I want to add a custom class 'service-listing' to body on all the subcategory pages under this category.
1
vote
0answers
8 views

magento 2 How to customize product list pages of all subcategories under specific category?

I want to customize all subcategory pages whose parent category is 'Services'. The customization includes following: Remove Toolbar Add filter for gender (gender is product attribute) Add custom ...
0
votes
0answers
13 views

Magento 2: Display category description at the top or bottom, depends on category attribute

I am facing the issue. I have 4 levels of categories in my store. For first three levels i display only static block and for last level i display product and static block. Now, when i am on last ...
0
votes
0answers
12 views

How to Filter Current Category Layer's products colletions by instock and qty greater that zero(0) condition in List Page Magento 2

Please check below Code: di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
1
vote
0answers
15 views

Custom Canonical Tag in Magento 2 Category with Magework seosuite

I try to show custom canonical for category with Magework seosuite, but this function I think that not is possible. Is there a way to do this, maybe with an extension or plugin of this module ? Thank ...
1
vote
0answers
14 views

Magento 2 exclude products from catalog price rules

I'm facing this problem. I have around 70 products in different categories and different attributes sets, but with the same common attribute (SKU). I have 3 catalog price rules which applies ...
0
votes
1answer
23 views

Magento 2 category image 404 with store code in url

I have a phtml file in my theme that is added to category page via XML updates tab. I read image in phtml like so: $this->getUrl('media/catalog/category/').$_category->getImageUrl() My theme ...
0
votes
0answers
18 views

Magento 2: How to redirect the category url path to custom url (to hit search page url)path

My Requirement: I need to redirect the URL while clicking the main category in the menu For example : From https://penqueen.com/test.html To https://penqueen.com/?q=item_class_pink=Ballasts ...
0
votes
3answers
25 views

Magento 2.2.8 - Add Custom Attribute To Category

I need to add a wysiwyg attribute to the Magento categories, this needs to sit within the 'General Information' tab. I can't seem to get it to work and I've had a look around on StackOverflow and I ...
0
votes
0answers
17 views

How to create a category in Magento using SQL

My attempts at creating a category with PHP fails while flat_categories are enabled in the system. Reference here. So, I want to create a new category in Magento 2 using SQL. How would I do that?
1
vote
0answers
25 views

Layered navigation and categories filter

I'm using multiple layered navigation filter (https://github.com/SlavaYurthev/MultipleLayeredNavigation-M2) is allows to select multiple categories at once. But categories filter is not working, I ...
0
votes
1answer
17 views

magento 2 get first level category from current catgeory ID in controller

I am trying to get first level category from current category ID in my controller . For example- I have Maincategory SubCategory1 SubCategory2 SubChild1 SubChild2. ...
0
votes
1answer
38 views

How to load Category image in top menu?

I have loaded the category and sub-category, now I need to load image as well but I'm not sure how to do that. Below is the code I have used: In block file: public function getStoreCategories($...
0
votes
0answers
4 views

Import category url key and meta tag programmatically

I want to import my magento2.1 categories url_key and meta title programmatically. how can i do?
1
vote
1answer
19 views

Delete or Save category works in bootstrap file but not in my custom API controller when flat categories are enabled

I am trying to create and delete categories in Magento 2 but am facing some issues while doing it when Flat Categories option is enabled. The weird thing is, my code works fine when called from a ...
0
votes
1answer
28 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
23 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 --> &...
0
votes
2answers
74 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 ...
3
votes
1answer
43 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
56 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
32 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
35 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
38 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
13 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
53 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
11 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
21 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
24 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
128 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
15 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
32 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
40 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
32 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
39 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
15 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
29 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
68 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
33 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
64 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
13 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
46 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?
0
votes
0answers
19 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
38 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
21 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
20 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
26 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
16 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://...