Questions tagged [category]

Questions about product categories in the Magento catalog

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

Using layer navigation : filter breaks current localisation

Here are some specs : Magento 2.4.2 Argento Home Theme (Swissup) Localization : fr_FR Store code url : none (so the fr codde isn't in the url) On a category page, using the layer navigation for ...
0
votes
0answers
19 views

Undefined index: optgroup in vendor/magento/module-catalog/Ui/Component/Product/Form/Categories/Options.php on line 103

Categories do not load when I am editing a product, I can't even select them. The customer changed the url of the category and then this error occurred. Any suggestions?
0
votes
0answers
10 views

Magento 2.4: getting full action name null in controller_action_predispatch event observer for category page and product page

In controller_action_predispatch event observer, I'm getting the correct full action name, route name, controller name and action name for all pages in Magento 2.4 except category page and product ...
0
votes
0answers
10 views

Products in category not shown even though counter shows right amount?

Magento 2.4.2 For some categories the product counter shows the right amount, but the list of products is empty. I debugged a little and the product collection is empty. This is what I did so far: ...
1
vote
2answers
58 views

How to get category name dynamicaly on product page magento2?

I want to show category name dynamicly on product page help me please
0
votes
1answer
20 views

Create new field in magento 2.4 but not save data

I'am following this tutorial https://www.mageplaza.com/devdocs/magento-2-category-attributes-programmatically/ added the field to save new attribute but not working, write the information but to save ...
0
votes
0answers
38 views

Php script for import categories Magento2

Using a php script for my categories CSV and are "Default Category/Clothing/Shirts/Dress/Casual/Designers/Barba/Handmade shirts", but i need "Default Category/Clothing/Shirts/Dress/...
0
votes
1answer
19 views

Can we update Product Position in Category with CSV in M2?

Can we update products position with csv in Category ? If yes than please share share any sample or example. Thanks
0
votes
0answers
33 views

Not able to add categories post upgrade to Magento 2.4.3

I am not able to add categories post update to Magento 2.4.3 the page keeps loading - the error seems to be be related to Magento_PageBuilder js. There are multiple errors DevTools failed to load ...
0
votes
0answers
13 views

How to create Admin grid of Category same as Product Grid?

I want to display Admin Grid for categories same as Product Grid without using UI Component. I am trying to get Collection of category using below code in _prepareCollection method inside Grid.php of ...
1
vote
1answer
36 views

How to call php block function with parameters from a js file?

I'm new to Magento, and I'm not sure how to make this work. I tried searching a lot but could not find anything related. I have a block function in my custom module which takes 2 parameter public ...
0
votes
0answers
11 views

Old categories are not removed from product when using setCategoryIds

I am updating product details programmatically. I want to replace category IDs in product. But using setCategoryIds , it only appends new category IDs in product but not removing old categories. How i ...
0
votes
0answers
27 views

Magento 2.3.6 How to bulk change category names

I have dozens of categories, each category is the name of a rock band (i.e. AC/DC) and I want to add the words "Drum Sheet Music" to the end of each category name, so AC/DC would become &...
0
votes
0answers
18 views

Add column attribute in product in category grid

I want to add a column of a newly created boolean attribute, but it doesn't work, I have read blogs where they give the same advice but it hasn't worked I have followed the following steps: Create ...
0
votes
0answers
16 views

Magento2: how to show custom category attribute value on product page?

I am using magento ver 2.3.1. I have created a custom text type attribute using data patch. I am able to save the value in this and it;s work properly. Now I want to access this attribute value on ...
0
votes
2answers
28 views

Fastest way to assign multiple products to the same category programmatically?

I am working in a process to will weekly updating a list of products and assign them to a sales category. The list could have 2000 products or more each time. Right now I am using the method ...
0
votes
0answers
19 views

Magento 2 shop by price is not showing on sub category pages

Magento 2.3.5-p2 shop by price is not showing on the subcategory page, it is showing on category pages
0
votes
1answer
33 views

How to increase max upload image size to 16M in Magento 2?

I modify the field values upload_max_filesize = 20M ,post_max_size = 20M and memory_limit = 2048Min the PHP.ini file of the server. I have to upload the banner images up to 16MB on the website but it ...
0
votes
1answer
16 views

URL Category rewrites not updated after the change

I'm using Magento 2.4.2, when changing the categories URL keys in the admin panel the URL rewrite sometimes isn't updated. Why would it happen and how can I update them?
1
vote
1answer
38 views

How to add Categery name url in category page

At present my category page URl is https://myshop.com/catalog/category/view/s/handbag/id/54/. I need to change Category page URL like https://myshop.com/handbag. Please let me know which file want to ...
0
votes
1answer
29 views

When saving category with other language get invalid key url

I am using Magento version 2.2.3 . When I want to save new category in other language from English I get invalid URL key error. This is my log in var folder of Magento project Invalid URL key {"...
0
votes
0answers
9 views

Magento 2 | Join a table to getLoadedProductCollection()

I'm trying to join the tier price table to the getLoadedProductCollection () collection located in the list.phtml file. What I would like to do is filter the products in the current category by tier ...
0
votes
2answers
35 views

How can I get the first level category list?

I'd like to list all first level categories from inside my custom block. I'd like to get the category names and the URLs. How can I achieve this?
0
votes
1answer
43 views

Display a static block in Homepage listing all categories

I'd like to display a static block in my CMS Homepage which lists all 1 level categories. How should I do?
1
vote
0answers
44 views

URL Rewrites of categories that have subcategory don't work

Normal behavior: All URL rewrites of categories work. What I am getting: Categories that have subcategories do not work. But categories that have no subcategory work fine. What I tried: Used Oleg ...
0
votes
2answers
43 views

How to organize category tree?

My store sells just one type of product (e.g. Computers). What's the best way to organize the category tree? Should I include the main topic in order to permit my customers to browse all my products ...
2
votes
1answer
36 views

Custom Sorting on category page not working in Magento 2.4.2

I have Magento 2.4.2. I have written a custom code to add A-Z & Z-A filters on category page. I have added dependency injection using below code <preference for="Magento\Catalog\Block\...
0
votes
1answer
35 views

Magento 2 How to order categories by entity id?

I get store categories from category helper, i need to order categories by entity id with my array. Here is my code \Magento\Catalog\Helper\Category $categoryHelper, ... $this->_categoryHelper = $...
0
votes
1answer
79 views

Order by price not working - Product listing

I have searched along the web for the solution and I have not found yet. Let me give you the context a little. I'm using Magento 2.3.6, where we got around 57800 products. When you go to the category ...
1
vote
0answers
24 views

Show Custom Category Attribute in Specific Categories. Magento 2

I've created a custom attribute using Setup/InstallData.php <?php namespace Vendor\Extension\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\Setup\...
1
vote
0answers
51 views

Magento 2.4.2 and elasticsearch issue (sort by position)

As I have seen, sort by "position" does not work with Elasticsearch (I have no result when I want to see the products in a category). I would like to disable position sorting on ALL ...
0
votes
0answers
34 views

Magento 2 - Pagination not refresh cache

I'm on the category page. When I click on the pagination number, for example the number 2 with the link "www.magento2.com/category?p=2", I see that when clicked the page is never completely ...
0
votes
1answer
30 views

Magento 2 - Get Category show the same value

I am trying to get the category name of a series of products. When I show the products individually the category is correct and changes but when I show more than one product it always shows me the ...
0
votes
1answer
19 views

Category Url Not Found in Multi store

I have created a Multi-store and Multi store views i.e 1 is the Default store view 2 is UAE when I click on the category from the default store category shows but when I switch store for default to ...
0
votes
0answers
18 views

Magento 2: assign a category to multiple categories

Is there a way, or some extension, to assign a sub-category to multiple categories? For example: Man Woman Kids \ | / Jacket T-Shirt Pile ... I must do ...
0
votes
1answer
24 views

Change layout of main and subcategories

I'm aware that I can change the layout of a specific category by creating a layout file with the name catalog_category_view_id_123.xml where 123 is my category id. How do I apply a layout change to ...
0
votes
0answers
12 views

Magento 2 : Alter Category Child Product Positions

The Category Child Product Positions script pushes positions for every single product from the parent to the child (subs) effectively undoing the previous merchandising for all products of all child ...
0
votes
0answers
34 views

Magento 2: Show disabled subcategory products in parent category

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 subcategory products are not showing in the parent ...
1
vote
1answer
34 views

Magento 2.3.5: Sorting Products with text type attribute with Flat Catalog Product Function on causes wrong sorting

I created a text type attribute called display_order with the following settings. Catalog Input Type for Store Owner - Text Field Used for Sorting in Product Listing - Yes The display_order text for ...
0
votes
1answer
14 views

Unable to save a Category/incorrect information stored

Magento 2.4.2 I am having some rather odd errors when saving a new Category or updating an existing one. I have save one called "Rooty Root" which does not show up in the tree: I have been ...
0
votes
1answer
24 views

disable cache for particular category in magento2

I have a category page with customer specific products, so those products should display based o current customer id. basically caching issues are coming when I'm switching from 1 customer to another ...
0
votes
0answers
19 views

Magento 2.3.6: Post upgrade to 2.3.6 from 2.3.5-p Category pages not showing

After upgrading from Magent0 2.3.5-p to 2.3.6 the category pages are blank. System specs. PHP 7.3 Elastic Search 7.13 Checking the error logs shows the following error. Stack trace: #0 /vendor/magento/...
0
votes
1answer
30 views

magento 2 sort by discount calculation category page

if($currentOrder == "discount"){ $subject->getCollection()->order('((price_index.price - price_index.final_price) / price_index.price)', 'DESC'); } how i get the discounted ...
0
votes
0answers
31 views

Root category page is throwing a 404

My root category page is showing as a 404. I want to be able to use it to filter products from the subnav (under fabrics option in top menu), however I cannot get the page to load. The url key is set ...
0
votes
0answers
19 views

No category page on Magento 1.9.3.3

My web has a menu with different categories. Some of them have subcategories, so the menu displays them. However, once we add subcategories to a category, there's no category page anymore. How can I ...
0
votes
0answers
107 views

Magento 2.3.5 Category Page Title Missing

Using Magento 2.3.5 with Porto Theme and realized the Category Page Title is missing at the top of the Category Page. All other Magento sites I have used has the title displayed towards the top of the ...
0
votes
0answers
42 views

Your search returned no results after search category or product in the search box error in Magento 2.4.0

As I am searching anything inside the search box like category name or product it is showing not results error in the Magento 2.4.0 version. Can you please how to resolve the issue quickly ?
-1
votes
1answer
43 views

I want filter for Most Viewed Products in Magento 2 in Category Page

I want to make a custom filter for Most Viewed Product on Category Page in Magento 2. I have used this code app/code/Hlcategory/Filter/Plugin/Catalog/Block/Toolbar.php public function ...
0
votes
0answers
37 views

M2.3.6 Missing required argument $baseTmpPath of Magento\Catalog\Model\ImageUploader

I am upgrading my Magento from 2.2.5 to 2.3.6, after upgrade when I try to access admin > catelog > category I get the error "Exception #0 (BadMethodCallException): Missing required ...
0
votes
0answers
34 views

WARNING ON CATEGORY PAGE: Make sure that "CATNAME"(id:621) category for current store is anchored

On a Magento 2 website with no products assigned to it yet, I am getting these warnings on category pages. Make sure that "category name"(id:621) category for current store is anchored The ...

1
2 3 4 5
53