Questions tagged [category]

Questions about product categories in the Magento catalog

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

Get all 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\...
0
votes
0answers
16 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 ...
0
votes
1answer
31 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/
0
votes
1answer
49 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 ...
0
votes
0answers
14 views

block which can be added between products on category page magento 2?

is there any free or paid extension available in which we can add block and this will display on the category page between the products on 20th product, 40th product like this.
2
votes
1answer
26 views

Cannot get custom category attribute value on the category page issue

I made this code to create the custom attribute: $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]); $eavSetup->addAttribute( Category::ENTITY, '...
0
votes
2answers
153 views

Magento 2.4.2 not showing products in category pages after version update

I have updated my Magento from 2.3.0 to 2.4.2, and seems to work fine, but one thing, if I go in any category page, I see no products, and even if I search for, I see no results. On the homepage there ...
0
votes
2answers
22 views

Magento 2.4, How to load multiple category data by array of category ids?

In Magento 2.4, I need to load multiple category data. How to load multiple category data by array of category ids?
0
votes
1answer
12 views

Dynamic category module for price range based category

Thanks in advance. I am looking for a script or module that will run via cron and remove products from a category if their price is above 5 USD also it will add products that have a cost up to 5 USD.
0
votes
0answers
17 views

Renaming product images once uploaded

I am not a developer! Can we rename uploaded product and category images, or do you have to name them before uploading?
0
votes
0answers
17 views

Magneto2 : How to display products in virtual category based on custom attribute virtual rule

How the product is displayed in virtual category searching by custom attribute. Help me with code [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/...
0
votes
1answer
24 views

Magento 2: Rewrite category URLs programmatically

I want to remove category ids from category URLs and replace them with the current category or subcategory name. Is this possible? Any help will be appreciated.
0
votes
0answers
16 views

magento 2 Category Not Showing on frontend after migration

I dump the database from Magento 2 to Magento 2 and the sub-category is not saved in database catalog_category_entity_int and from the backend, its show category is enabled but in database its ...
0
votes
2answers
36 views

Magento 2 How to Remove Particular Product Price in Category Page?

I want remove particular product price in category page.
0
votes
0answers
34 views

"There was a category move error" when trying to move a subcategory up 1 level to main category

Magento 2.4.2-p1 Smartwave Porto theme extensions from Amasty We are trying to move a subcategory up one level to make it one of the main categories and we get the following non-descriptive Error: ...
0
votes
1answer
25 views

How to remove only sub category URL from magento

I am using Magento for my eCommerce website My current URL structure is: example.com/parent-category/sub-category/page I want a solution for the URL to be changed to : example.com/parent-category/page ...
0
votes
0answers
16 views

How to set default value in catalog category add products to categories in position column

I have attached screenshot, I want to add default values in position, for example when I add product in category position should show 100. Thanks in advance
1
vote
1answer
15 views

An error occurred while saving the category on Magento2

when I try to save a category I get this error from the backoffice. Here is the error related to this action: Blockquote [2021-11-24 10:52:02] main.CRITICAL: DateTime::__construct(): Failed to parse ...
0
votes
0answers
17 views

How to get current category name in catalog view page(catalog_category_view.xml)?

I have a view model with a method for returning the category names from the current_product (Works in product view page). However it returns null when being used in the catalog view page (...
0
votes
1answer
14 views

How to implement custom links for a category?

When a category is loaded, it uses links that lead to the category. How to add a field for the link in the category and if the field is filled in, as a result, the link by clicking on the category ...
1
vote
1answer
33 views

How can I create my custom category dropdown in admin side(Create category page)

How can I create my custom category dropdown in admin side(Create category page) like an image
0
votes
0answers
10 views

Update category description - M2

I have 1000+ categories, few categories having similar name. Few having same name categories are in different parent categories. Using csv i want to update category description and images. Can any one ...
0
votes
0answers
14 views

Magento 2 custom admin grid get all categories

I want to create admin grid in custom module to to show category id,name and a custom attribute from catalog_category_entity table, how to do this ? I created a ui component but table is empty. any ...
0
votes
1answer
22 views

Magento 2 - Category url load very slow

I have a very strange problem in frontend when open a category after in the adminhtml change the Design Layout to 1 column. If the category have the Design Layout 2 columns-left for example everything ...
0
votes
1answer
9 views

Show all products for specific categories

Our client has a specific need where they wish all products to be shown for one particular category, whilst all others show the default number (12 in our case) with pagination. I know Magento doesn't ...
0
votes
0answers
8 views

How to move product short description in category to before add to cart button

i´ve been trying to move short description in products list in category to before add to cart button. Nothing has worked so far. Created catalog_category_view file in child theme/Magento_Catalog/...
0
votes
0answers
13 views

Getting the category of the page the product was added from. Needed to be used in Checkout for shipping method

I've looked high and low for this but have had no luck. I need to get the category of the page that the product was added from. I have written an Observer that hooks into the add to cart event that ...
0
votes
0answers
15 views

Category view - triple page-main CSS class

Vanilla Magento 2.4.3-p1, Mysql 8.0 (Percona), Elasticsearch 7.15.1, Varnish 6.5.2 on Ubuntu 20.04.3 Double checked PHP ext.: $ composer check-platform-reqs --no-dev Checking non-dev platform ...
0
votes
2answers
91 views

Breadcrumbs Magento 2.4.2

I have a problem with bread crumbs. I have several products that are in multiple different categories. instead on the frontend side, univocal bread crumbs should appear (like the univocal path that ...
0
votes
2answers
45 views

How to solve this Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist

1 exception(s): Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist. Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist. #1 Magento\...
0
votes
1answer
45 views

Magento 2.4 How to get category of current product from within ViewModel without using objectManager?

This works but uses objectManager namespace Myvendor\Myprogram\ViewModel; class CatLogic extends \Magento\Framework\View\Element\Template implements \Magento\Framework\View\Element\Block\...
0
votes
1answer
26 views

Product position in category not saved correctly

I have a strange problem in our Magento 2.4 installation. In a product category you are able to specify the position of a given product by entering a value in the position column. This helps to ...
0
votes
0answers
13 views

Magento 2.4 Change page content based on query string

I want to show custom text on category pages based on query string on category pages. for example : for category shirt with urls like category/shirts.html?color=red category/shirts.html?color=blue ...
0
votes
2answers
28 views

Category Page Description Magento

This is my first time using magento, I was trying to edit the category page description. site example: https://f31.sg/bedroom/bedframe/storage-bed.html https://snipboard.io/jr6CyY.jpg I can't seem to ...
0
votes
1answer
34 views

Frontend magento 2 shows product in a category, but backend they are disabled

Have 1 technical question that you may know about magento 2 I want to have on the frontend the bracelets products disabled under the clothing category. The thing is, in the backend, they are disabled ...
0
votes
0answers
107 views

How to fix layered navigation error in 3rd party module with category and price filters?

Running Magento 2.3.4 with Webkul Multivendor Marketplace Module and it is having compatibility issues with Mageplaza Ajax Layered navigation. The layered navigation and ajax filters doesn't seem to ...
0
votes
1answer
34 views

Cannot save category Magento 2.3.6-p1

i have a multiwebsite magento, one website work properly but for the other when i try to save a category i got an error : a Argument 1 passed to Magento\Catalog\Model\Category\FileInfo::...
0
votes
0answers
13 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
2answers
78 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
65 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
11 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
66 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
39 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
21 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
19 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
79 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
16 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
42 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 &...

1
2 3 4 5
54