Questions tagged [category]

Questions about product categories in the Magento catalog

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

product name with brand, first level, second level and third level catagory list

Hi I want to get list of all the sku along with its brand and its first level ,second and third level category... eg fashion, topwear, jacket, denim, blue jacket(name), levis.
0
votes
0answers
15 views

Magento2 - After upgrade 2.2.4 to 2.3.4 facing issue with url key

In Magento2.3.4, I upgrade magento2.2.4 to 2.3.4 facing issue with category url key showing blank in category edit page in admin. Please check screenshot
0
votes
1answer
36 views

Magento 2.3 - Get category of item related foreach

I want to load the category name and category url of the item that is displayed as a related item on the productpage. So inside the foreach element, I want to load the category name and url of the ...
0
votes
1answer
12 views

Fetch Category Image from collection object without loading category object

I am trying to get the category image from the below code $collection = $this->_categoryCollectionFactory->create(); $collection->addAttributeToSelect('name','image') ...
0
votes
0answers
12 views

How can I check if a category is in the sitemap?

Magento v1.9 I load a category object by querying against that categories particular id. Once I've loaded it, is there a way I can check whether or not that particular category exists within the ...
0
votes
0answers
7 views

A layout for Grid View and a layout for List View on Category pages

Is there a way to have a catalog_category_view.xml for a grid view and then another for the list view? Currently, I am using the phtml file to manipulate the columns however, I need a completely new ...
0
votes
0answers
10 views

Show disabled subcategory's products in Parent Category page Magento 2

I'm using Magento 2.3.4 and I have an anchor parent category that has some disabled subcategories. When i disabled these subcategories, all the subcategories products are not showing in the parent ...
0
votes
0answers
15 views

How to remove Specific Category name from URL when product is load

Can it possible to Remove Specific Category from URL when Product is Load. For Example, if Category Name Like this Product Subject Presenters 1) when we click in Product Category Load all ...
1
vote
1answer
18 views

How to change category page block after opening shop by filter

I'm new Magento2 User and I got an issue. You can see the picture it shows before I open Shop By filter. After opening that,I add new Category and the page goes left-right bolck style . How can I ...
0
votes
0answers
10 views

Unable to upload Category Thumbnail and Category Hover thumnail image

I am uploading the Category thumbnail image and category hover thumbnail image, but after saving the configuration both image links seems broken. when i am clicking on the link, its not correct, it ...
0
votes
0answers
12 views

Getting the parent category of a given product

So, this is how I get the category of the current product: $categories = $item->getProduct()->getCategoryIds(); Since I set only one category to each product, this is how I get its parent ...
0
votes
0answers
24 views

Magento 2 - Unable to change category products position

In Magento 2.3.0, I try to change position for category products. In admin, each position is set but in the frontend, nothing changes. Even after clear/flush cache and reindexing. Do you know how ...
0
votes
1answer
10 views

How to exclude a specific categories from tax calculation?

In my country there's a specific items that doesn't have Tax on it. How to exclude these products categories from calculating tax on them in Magento 2.3.2 Regards.
0
votes
0answers
11 views

Can we show lowest 'advanced pricing' price instead of basic price?

Using Magento 2.3.2. I sell plants on my website and we have set up advanced pricing on items for 'Multibuy' discounts. Buy 2, get 5% off, buy 3 get 10% off, buy 4 or more get 20% off. So far, so good....
0
votes
1answer
48 views

Magento 2.3: Parent Category page does not show any subcategory products after data migration

I just migrated from Magento 1.9 to Magento 2.3.4 and I have an anchor category that should be showing all the subcategories products, but somehow it does not show any of the subcategory products. ...
0
votes
0answers
7 views

Counting Child Items Without Using Associated Products function

I am counting associated products to show the the number of child items on grouped product in the category page. This is however very resource intensive. Is there a better way to show the count of the ...
0
votes
1answer
25 views

need a category url in product view page

I have a product bag in home->products->men->handbag category path .I want hangbag category url in product detail page
0
votes
0answers
17 views

MySQL - Magento categories export the right way - bottom level category path split and category ID value lookup

After some research I found that it's best to approach it like this: find the bottom level category for each product and return its path delimit the path into individual categories. That gives you ...
0
votes
0answers
24 views

Is there any solution to transfer a partitular category and there sub category from magento 2 to another magento 2

I need to transfer a particular categories of products to another Magento 2 site with all the attributes image and all
0
votes
1answer
28 views

Cannot save any category on Magento 2.3.2

When I try to save any categories, I am receiving the following error: PHP Fatal error: Uncaught Error: Call to a member function getBackend() on boolean in /var/domains/../vendor/magento/module-eav/...
0
votes
1answer
27 views

What does Category's attribute is_anchor do?

I'm doing some sample tests from Magento 2 certification. There's this question (screenshot) I don't understand. The correct answer for this question is A "This is the default category for a website",...
0
votes
0answers
19 views

Categories don't work after migration, shows “Class do not exits”'

I am running Magneto 2.3.4 version I migrate the database successfully, but my false I don't check categories after migration and I start working. So now I have an error that I can't resolve "...
1
vote
1answer
21 views

Magento 2: Filter Product Collection using Category Id always return empty set

I have a parent category with subcateogry that contains a lot of product in it, when i tried to filter the product collection using this parent category id, it always return an empty collection: ...
0
votes
1answer
27 views

Magento 2 : Add product category filter in order grid

In admin I want to add product category filter in order grid so that admin can filter by category and processed the order. Please help me guys. Thanks
0
votes
0answers
24 views

Magento2 - Widget not showing up on frontend category page

We have a dozen or so category pages. Each category page has a subcategories widget and a bestsellers widget that shows the 4 bestselling products for that category. I created a new category, "...
0
votes
1answer
24 views

Magento2 How to get all store specific category if category is not include in menu?

I am using the below code to find store specific categories but here I am not getting the categories that are not included in the menu. How can I get those categories also? protected $...
0
votes
0answers
15 views

Need to display Sub category list on custom page

I need to display Sub categories of current clicked category on custom page. How can I achieve this? In short, If I explain my main category is displayed in menu, when I click on main category menu a ...
0
votes
0answers
13 views

Magento2 how to get upsell product on category listing page using object manager

Note : First of all it is not good practice to use object manager directly on any file.use magento standard only Below code is just to show that how we can easily get the upsell product on category ...
0
votes
1answer
22 views

How do I correctly move products and categories between stores in magento1?

I currently have a magento 1.9 installation which uses two stores. I'm at the moment trying to move a category (as well as the subcategories and products) from one store to the other but I'm running ...
0
votes
1answer
13 views

Widget Display Options in Magento2 - select all subcategories of category in one click

Is it possible to select all subcategories of category with one click only ? I want to display my widget on category and all subcategories of this category. At this moment I must select every ...
0
votes
0answers
13 views

M2: How to get category path

In feed generation I try get full category path. Our category tree. Example: Women -Shoes == Sneakers We assign products directly to a child category == Sneakers During feed generation in ...
1
vote
2answers
48 views

Magento 1.9 How to sort product in category page by stocks product

I want the products to be displayed on the category page, if available That is, first those that are stocks , then those that are not stocks I didn't find anything with the title in the attribute Is ...
0
votes
1answer
49 views

SQL code to get the Product details with category tree heirarchy

I'm using Magento 1.9, We have a requirement to show the product details with category tree heirarchy. Have searched this in google and haven't find any answers. I have to create a report(using a BI ...
0
votes
0answers
12 views

Change url key of categories from global to store

is it possible change the url key attribute of categories from global to store ? check the image for more reference
0
votes
0answers
13 views

sort order as newest product first option in products in category in category edit does not showing in magento 2.3.2

I want to sort category default sort as newly added SKU at top and oldest at last , this means new to old (SKU) default sorting in frontend of magento 2. But i am not able to see option => sorting ...
0
votes
1answer
13 views

Get quantity of simple products in configurable products on list.phtml

I'm trying to get the qty of simple products in configurable products in the list page and it works with this code inside the product collection foreach: $objectManager = \Magento\Framework\App\...
0
votes
2answers
81 views

How to get category id by category path in Magento 2?

I have complete category path like Default Category/Men/Sale. How to get category id using it?
0
votes
2answers
17 views

Category Controller overriding to allow multiple Categories in URL

My custom module (AKA AraujoPhillips/SpecialCategories) should allow URLs with multiple categories, like: example.com/category1/category2.html example.com/sales/phones.html The following custom ...
0
votes
0answers
12 views

Products are only shown when logged in

Suddenly all my products disappeared from my page (https://jakbutik.dk). Or, not totally. Because the products does still exists (https://www.jakbutik.dk/privat/haettesweatshirt-8510-marine.html). ...
0
votes
1answer
17 views

What does “catalog_category_view_type_default_without_children.xml” do exactly?

What does the layout file "catalog_category_view_type_default_without_children.xml" do exactly? From the name of the file it sounds like it's purpose is to allow you to customize the layout of ...
0
votes
1answer
24 views

Show related products on category view - Magento 2

Is it possible to call out the related products on category pages? So within each product in the grid, it would also display the full list of that product's related products.
0
votes
1answer
20 views

Does enabling category and product flat data will affect performance in Magento 2?

I have huge doubt in flat data feature in Magneto 2. If I enable product and category flat data in Magento 2. Will it affect the website performance heavily ?
0
votes
0answers
26 views

Magento2 - Add “has no children” css class to body tag of category page

In Magento2, is there anyway to add a CSS class to the body tag of a category page IF that category has no children? I want to apply some design changes to only final-depth categories while avoiding ...
0
votes
1answer
31 views

How to add product category to page title as data attribute?

I am brand new to Magento and am a Wordpress developer and am trying to get my bearings on something that seems like it should be simple to accomplish. I am trying to simply add a data-attribute to my ...
0
votes
0answers
59 views

Error “DDL statements are not allowed in transactions” while Reindexing programmatically using Event Observer Magento 2.3.0

Actually i am trying to reindex category data while saving category from backend but i am getting an error DDL statements are not allowed in transactions in log file while reindexing ...
0
votes
1answer
35 views

How to hide category name on category page only for second level category in magento 2

I want to hide the category name on the category page only for the sub category of only one parent category. The category names will be displayed for all other categories and sub categories. For e.g I ...
0
votes
0answers
31 views

Magento 2 : create custom coupon code programmatically while excluding category ID

I am working on Custom Discount Coupon (Cart Rule) I am using following Data Patch but I don't find to exclude Categories namespace Vendor\ReferAFriend\Setup\Patch\Data; use Magento\Framework\Setup\...
0
votes
0answers
24 views

How to save category options in Magento 2?

When I save options in the category page, they are not save! Look here, if I activate "full-width layout" then click save... I refresh the page and... it's not saved! Any Idea on this?
0
votes
0answers
17 views

The url-rewrites table has rewrites for categories and products which are not in catalog_category_entity_varchar

I came across a problem between categories and URL rewrites after migrating a project from Magento 1 to Magento 2. At the moment, I have conflicts when I work with products. I started looking for ...
0
votes
3answers
52 views

No able to Retrieve Custom attibute value of a catgeory in magento 2

I have created a custom attribute for my category. Below is my code. In InstallData.php <?php /* file: app/code/Atwix/CategoryAttribute/Setup/InstallData.php */ namespace Vidushi\KeyFeature\...

1
2 3 4 5
50