Questions tagged [category]

Questions about product categories in the Magento catalog

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

Magento 2 - If I load a category then I get redirected to search result site

I created a new store view. I have a category called "T-Shirts". If I load that category e.g. www.new-store-view.example.com/shirts then it loads the search site showing results for "...
user avatar
  • 2,441
0 votes
0 answers
19 views

Elasticsearch7 returns string but not array for the category page

When I tried to load my category page, the following error showing... TypeError: Return value of Magento\Elasticsearch7\Model\Client\Elasticsearch::query() must be of the type array, string returned ...
user avatar
0 votes
1 answer
17 views

Error on Clicking Categories in Admin

The log in the report is this. a:4:{i:0;s:97:"The requested component ("settings") is not found. Before using, you must add the implementation.";i:1;s:9651:"#0 /home/...
user avatar
0 votes
1 answer
11 views

Magento 2 : Get Configurable Product using swatch-option

I want to get product id on selecting swatch option.for that i have used code as given below. i am getting error of "Cannot read properties of undefined (reading 'options')" as per given ...
user avatar
0 votes
1 answer
16 views

URL Path incorrect with Magento Rest API

I am using Python to access Magento 2 Rest API categories. The url that I am using is this: https:///rest/<store_code>/V1/categories/15647 The URL Path that is being returned is this: footwear/...
user avatar
0 votes
0 answers
13 views

Use category path for product url in magento 2

I have done the settings for Including the category key in the products url, which works fine https://prnt.sc/X0uTHHPyff0J . However , for Related products it is still taking the old url and not the ...
user avatar
0 votes
2 answers
28 views

Magento 2.4: Which event triggers when the category page is loaded in magento2?

I want to know which event is triggered when a category page is loaded from the megamenu? I want to load a custom collection of data based on a particular category.
user avatar
0 votes
0 answers
10 views

Magento2 : Category Page (Product Listing Page) Custom Sorting Option Not Working

I Want TO Display Product Based On Product Stock On Category Page. I Have Used Code As Below. I Have Used the Around Plugin To Set Collection. File:- di.xml Vendor\Module\etc\di.xml <type name=&...
user avatar
0 votes
0 answers
19 views

Cart Price Rules by condition

In my code i can apply 50% discount on cart but i want this discount to apply only when product from a specific category is added. \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\...
user avatar
0 votes
0 answers
7 views

Magento 2.4 Mulltivendor: show sellers based on categories

I am using https://cedcommerce.com/magento-2-extensions/marketplace where I have added product categories as vendor attributes. On the vendor list page I want to display all the categories in the ...
user avatar
1 vote
0 answers
14 views

How can I access list of all products in Root Category in Magento2?

I've tried /catalog/category/view/id/2 and by url key all .html it works for child categories, but for Base Categories got 404 is there any way to do it without coding?
user avatar
  • 11
0 votes
2 answers
19 views

How to remove extra dash from virtual category page meta title

I have a few virtual categories set up in my top menu. When I go to a specific brand the meta title on my browsers tab shows a dash character "-" before the Brand Name. Looking for a ...
user avatar
0 votes
1 answer
16 views

Category name not appearing on backend

I am using Magento ver. 2.4.4. Facing issue with category. The category names are not appearing in name field on backend. How to fix this issue?
user avatar
  • 58
0 votes
1 answer
27 views

Add To Cart Problem with Grouped Products

Most of my products are Grouped. The problem I have is that on the Category Pages when the Add To Cart button is clicked, it goes through to the Product page and immediately has the warning message at ...
user avatar
  • 172
1 vote
2 answers
45 views

Category issue after deleting records from table magento 2

I have deleted all records from the "catalog_category_entity" table & then created new some new records manually. Now when I save category then nothing happen. Image for reference. how ...
user avatar
  • 58
0 votes
2 answers
34 views

Bulk delete categories at once

I am using magento 2.4. I have lots of categories & subcategories. Is their any way to delete all at once using MySQL script ? I have tried external script but timeout occurs.
user avatar
  • 58
0 votes
2 answers
20 views

Magento 2 upload category using CSV

Is there any way we can create multiple categories at once and also create sub-categories in Magento 2?
user avatar
  • 58
0 votes
1 answer
36 views

The value specified in the URL Key field would generate a URL that already exists in Magenot 2.4

I have migrated data from Magento 1.9 to Magento 2.4. All things is working well. But when in open any categories and open Product in Category tab -> then click on reset filter -> search a ...
user avatar
  • 526
0 votes
2 answers
34 views

Some Filters not showing on some Categories in Magento 2.4

Some Filters not showing on some Categories in Magento 2.4 As you can see in two images both are diffrent categories but Newest filter not showing in second image. In some categories it just show ...
user avatar
  • 526
0 votes
1 answer
148 views

Custom Sorting option not working in Magetno 2.4 search

Custom Sorting option not working in Magetno 2.4 search app/code/Arun/NewSorting/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
user avatar
  • 526
1 vote
3 answers
98 views

Magento 2.4.4 order export csv wrong data

I am using magento 2.4.4. I am getting wrong "purchase date in CSV". Purchase date on order - Aug 31, 2021 9:19:46 PM. On csv - 2021-09-01 01:19:46. From where its data gets set in csv ?
user avatar
0 votes
1 answer
47 views

How to create row pattern/dynamic rows to the custom category attribute Magento 2

How can we create a Dynamic Row/Row Pattern Attribute on the Category page?
user avatar
0 votes
0 answers
17 views

How to add Custom Sorting option with created date on category page in Magento 2

I want to add Custom Sorting option with created date on category page in Magento 2. Like its label would be Newest Product and the product sort is based on product crated date. SS attached for more ...
user avatar
  • 526
0 votes
0 answers
9 views

Product meta words and search synoynms

I have a product in the fashion category and after searching for products in the beauty and personal products category after searching for the products on the beauty and the personal products the one ...
user avatar
0 votes
0 answers
11 views

I need to show products in the main category in order of subcategories

I need to show products in the main category in order of subcategories. For example, there is a category Home and it has three subcategories 1, 2, and 3. If you select the main category, it should ...
user avatar
0 votes
1 answer
124 views

How can I display category select dropdown on frontend

I want to add category select on frontend in a custom module how can I do that.
user avatar
0 votes
0 answers
12 views

4th level category page redirects to 3rd level category page

We have Categories to the 4th level in our Magento Store and the site's main URL is set without www. So now when we go to the 4th level category and put www with site URL, it redirects to the 3rd ...
user avatar
0 votes
0 answers
20 views

Tile view not show product status

I want to modify the tile view on the category page. Inside the category page, products in this category in Gird view, we can see the product status. However, in Tile view, the status is not showing. ...
user avatar
  • 518
0 votes
1 answer
29 views

How to add product category to product meta title?

I have a product called "Wiper blades 60/50cm" which is listed in the store Category "BMW 3 Series e46" I want to add the Category name to the product meta title so that the meta ...
user avatar
0 votes
0 answers
25 views

in admin form how to select all child category automatically by selecting parent category?

I created product categories cms page by ui-select but when we select parent category of product cms page then sub categories of that page are not selected automatically.(image below). I want to ...
user avatar
0 votes
0 answers
12 views

Where is the code snippets of searching products associated with this category in Search Index?

There is an attribute named mid, the value is like ‘1; 2; 3;’, which means a product maps to many manufacturers. To keep the solution simple, we put it in the text field. Users could choose the ...
user avatar
  • 1
0 votes
2 answers
17 views

Category is disbled in admin side but still showing in frontend

Category disabled from backend still showing in frontend. Even if there are no products available in that category and disabled. Enable category and include in menu options are turned off, but still ...
user avatar
  • 5
0 votes
1 answer
25 views

Add product status in tile view

I want to add product status to show in Tile View.(inside category) I can see that in grid view but not in Tile view. Anyone can advise me where I should modify?
user avatar
  • 518
0 votes
0 answers
37 views

Magento 2.4.x Category page product list custom sort order

I add an alias to collection for priority sort product with price first. $collection->getSelect() ->columns(["IF((price_index.price && price_index.price > 0),1,0) as ...
user avatar
1 vote
1 answer
60 views

Magento Cart Price Rule - How to Sum Specific Category For Discount

I want to create a discount code in Magento 2. The offer is £25 off every £250 spent on Garden Furniture. So, the rules must only apply on products from the garden category in the cart. For example, a ...
user avatar
0 votes
0 answers
17 views

Change main menu top based on user data

I need to alter all the top menu from my website based on a user data filled when the user is registered. "Casual" users will are using "root" category, excluding "new menu&...
user avatar
0 votes
2 answers
31 views

Products on category pages keep disappearing until reindex

The products on my website in the category achieves pages keep disappearing and I have to run indexer reindex every 24 hours or so. I tried both Reindex by schedule and Update on save but the problem ...
user avatar
  • 11
0 votes
1 answer
27 views

Magento2 remove object from collection

Magento2 I am getting the category tree with attributes I need, but it is also printing object, how can I remove this? Following is the code $result = $this->getTreeData($this->categoryTree->...
user avatar
  • 3,446
0 votes
0 answers
16 views

Can i import/export categoy images using a sheet?

I'm trying to find a way to change the category images using an excel sheet, right now I update the images manually.
user avatar
0 votes
1 answer
70 views

One category showing wrong sidebar layered navigation

I am using Porto theme, I upgraded Magento 2.2.4 to Magento 2.4.2, every thing working fine but there are 1 problem, all category page using app/design/frontend/Smartwave/porto/...
user avatar
0 votes
0 answers
32 views

How to change root category via data patch in Magento 2?

I've created 2 websites via config.php both using Default root category. Now im trying to change the root category to the ones I've created in Data Patch. Im using the StoreManagerInterface to get the ...
user avatar
0 votes
0 answers
48 views

Magento2 remove specific filter on specific category value under Layered navigation

I'm trying to hide/disable a particular attribute filter in layered navigation for a specific category. I do not want to show all filter in left side bar. If I disable in Anchor is "No" ...
user avatar
0 votes
3 answers
223 views

Magento 2 : how to get category name in my custom product grid

My prepare collection code : protected function _prepareCollection() { $store = $this->_getStore(); $collection = $this->productFactory->create()->getCollection()->...
user avatar
0 votes
0 answers
42 views

Magento 2 Category pages doesn't show page navigation (bottom nav)

I'm using Magento 2.4.3, and everything seems to work fine but the page navigation on the category pages, the one at the bottom. On the categories with more than 12 products, the number of products ...
user avatar
  • 1,427
0 votes
0 answers
47 views

Magento 2: Create custom category layout to multiple categories

I am trying to add a custom category layout for multiple categories in my theme. I have the standard catalog_category_view.xml and have got the update for 1 category using catalog_category_view_id_[id]...
user avatar
0 votes
0 answers
22 views

Something went wrong while saving the category - magento2.4.3-p1

I can't change the category name or category attribute value. It says "Something went wrong while saving the category". And sometimes it works. This is really confused to me. The version of ...
user avatar
0 votes
2 answers
106 views

Get all other categories on same level as current category - Magento 2.4.3

We use the following helper to get the current category: class Category extends \Magento\Framework\View\Element\Template { protected $_registry; public function __construct( \Magento\...
user avatar
  • 1,474
0 votes
2 answers
49 views

Remove product count in category page sidebar

I have a Pearl WeltPixel theme for my Magento site and I would like to remove the number of products next to the category name in the sidebar. But even putting "no" in display the number of ...
user avatar
0 votes
1 answer
43 views

sub-category with photos in magento2

I would like to create a sub-category with photos on my site. How could you do that? As on the example pages and screenshot. https://www.moebel.de/wohnen https://www.home24.de/wohn-accessoires/
user avatar
0 votes
1 answer
200 views

Magento 2 Breadcrumbs show wrong on product page because of cache

Magento 2.3.5 and 2.4 both versions have these issues. The same product is assigned in two categories. Suppose two main categories - Category One and Category Two Category One subcategories are ...
user avatar
  • 1,143

1
2 3 4 5
54