Questions tagged [category]

Questions about product categories in the Magento catalog

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

How to import category position data in csv - Magento2

I try to add :1 :2 :3 or =1 =2 =3 after categories name but both are not work How can import the categories postiion data in csv?
0
votes
0answers
15 views

How to set default root category on a store while creating it programatically?

I want to set a category on the new stores I'm creating, but could not find any appropriate method. public function createStore() { // load default website $defaultWebId = $...
0
votes
0answers
22 views

How to change HTML of Menu in Magento 2.4.2 Claue Theme?

I want to change some HTML in Magento 2.4.2 Claue theme. Like when I add 12 subcategory the design is not good it will add subcategory one below other so it will not looking good. I want to add ...
0
votes
0answers
16 views

Magento 2 Sub Category Links Broken

When I use the layered navigation links on my category page to go to a sub-category, the link removes a letter from the category name. For example: my category url is example.com/bathroom When i click ...
1
vote
1answer
28 views

Magento 2 : I want to add categories from front-end using controller in Magento 2

Here is the code I am using but it is given error. Please help. Thanks in advance. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $rootCat = $objectManager->create('Magento\...
0
votes
0answers
7 views

Magento 2 | Hreflang return wrong category link for store

In my Magento2 website i have installed an extension for generate links for hreflang. This is the class that generates links for hreflang: use Magento\Framework\View\Element\Template; use Magento\...
1
vote
0answers
29 views

Unable to change the catalog_category_view.xml layout to 1 column in Magento2

I would like to change the catalog_category_view.xml layout from 2columns-left to 1 column in the custom theme followed below steps. Here is the file in the custom theme: app/design/frontend/...
0
votes
0answers
22 views

Show All The Available Subcategory and Their Nested Subcategories in Menu in Magento 2

I have done all the required settings but still it's not showing on the front end. I am getting result like this. I want to show all the nested subcategory in the menu. Please help.
1
vote
0answers
18 views

Unable to change or add categories

We're unable to change or add categories in the Magento 1 (1.9.2.2) backend. Upon clicking the 'Save category' button I get the following error in my console: I've traced it back to the follwing code ...
0
votes
1answer
13 views

magento 2.3 product hide and category hide for guest customer

i am using magento 2.3 and i want to products and category hide , if customer not login means i want to hide product and category page hide for guest customer and must be redirect to login page
0
votes
0answers
13 views

Manage category error

When i click in manage category nothing is shown and this error comes to console. I am new here, someone could help me?
0
votes
0answers
15 views

Categories are not showing as sort order in front-end - Magento 2

I set categories to sort order like in Catalog - Categories on admin A B C D E but in the front-end, it shows like B C E D A I have tried to reindex all and clear caches
0
votes
0answers
14 views

In admin panel when I access cateogry page it gives me an error of Element 'field', attribute 'sortOrder': The attribute 'sortOrder' is not allowed

When I try to access the category page below error is coming 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Element 'field', attribute 'sortOrder': The attribute '...
0
votes
0answers
22 views

Paging not showing on category view

I am unable to see paging on my category view products. By default 12 products show and when I add a query string ?p=2 then other page products show. Here is my setting inside admin panel I have ...
0
votes
0answers
16 views

Layer Navigation not working in custom product collection of category page in magento 2

i override the ListProduct.php file and add custom product collection to the custom category page but in that page layer navigation not working here is my ListProduct.php file <?php namespace Ccc\...
0
votes
0answers
24 views

Can't Save Categories Magento 2.3.5-p1

So i cannot save categories and attempting to do so produces below error in system.log: [2021-04-15 16:16:30] main.CRITICAL: Error: Call to a member function getAttributeCode() on bool in /home/...
0
votes
2answers
45 views

Magento 2 : Assign product to multiple category using sql query programmatically

is their any way i can assign products to category using sql in program ? as category are too large request gets heavy so not able to save the traditional way.
0
votes
1answer
22 views

Magento 2.3.5: Remove category page bottom toolbar title and filters and keep only pagination

I want to remove the title, filter and sort from the bottom toolbar on the category page and leave only the pager (pagination). My toolbar phtml is located at vendor/vendor_child/Magento_Catalog/...
0
votes
2answers
42 views

Magento 2 - need super simple way of assessing whether cart is empty or not in list.phtml file

Client wants to display a conditional message on the category list.phtml page depending on whether or not the cart has ANYTHING in it I've found a lot of posts about creating a custom module to be ...
0
votes
0answers
14 views

Filter Category Options are differente when I change from one page to another?

I am facing something weird in one project that I don't know if is normal (I hadn't seen this behavior in another project). The customer reports to me that when you enter to Category first page, ...
0
votes
0answers
22 views

How to get current category using session, without using registry

I see that using the registry is being deprecated. There is not much documentation on an alternative but have seen one example from Atwix using Magento\Catalog\Model\Session - https://www.atwix.com/...
0
votes
0answers
17 views

How Can i add custom product collection in all category product listing page in magento 2?

i have one category name Deals in that there is no any product present also i have one product attribute name "is_deal_product" yes/no type so if this attribute value yes in any product than ...
0
votes
0answers
14 views

Magento 2.3.5: Link product page attribute to category page

How can I link (href) a product page attribute to it's category page? For example: I have a visible attribute on the product page called "Artist" and the product is in 3 categories "...
0
votes
0answers
33 views

After Magento 2.3 to 2.4 upgrade Category page not loading in frontend

Magento 2.4 upgraded successfully. All are working in admin and storefront but only problem with category page showing error " Error: Call to a member function getUrl() on null in /home/mydomain....
0
votes
0answers
23 views

Redirect URL with it's store view code

I have multi websites in one magento. Magento version is 2.3.2 I have multiple categories in magento. I am showing here for "es" store view code. https://localhost/catalizadores (Without ...
0
votes
0answers
22 views

Magento 2.3.6 Commerce : Missing field used into WHERE clause on catalog_product_entity_media_gallery_value_to_entity (entity_id)

On the category page I have this error : 2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity.entity_id' in 'where clause', query ...
0
votes
1answer
130 views

No mapping found for [product_id] in order to sort on

After upgrade Magento from 2.3.5 to Magento 2.4.2, the categories page doesn't show any product. I have change Search Engine to Elasticsearch 7. When I check log, I found a bug: [2021-03-19 08:32:17] ...
0
votes
1answer
23 views

Magento2 Out of Stock Products are not display in category page

i have setup my site on magento 241 and out of stock products are not showing on category page, but it is showing on homepage widget section. i also set display out of stock product options = yes from ...
0
votes
0answers
17 views

Make category page liveable?

enter image description here I have the venustheme with mega menu.When i edit some menuitem and add the custom link.And I have two case for it. Case 1 customlink : the link to the menu item is one ...
0
votes
0answers
19 views

Url category of products not showing correct products

If the category opened from menu kategori/bordslopare then It does not show correct number of products but if a filter like this is added then It shows correct number of products ?handla_cat=9807 At ...
0
votes
2answers
28 views

Check if product exists within a specific category Magento 2

I want to check whether a product exists within a specific category and if true show message. At the moment I am having to do this via strpos using the Name attribute value. <?php if (strpos($...
0
votes
1answer
14 views

Activate layered navigation without Anchor in Categories

Is it possible to activate the layered navigation filtering when setting the anchor attribute to false?
1
vote
2answers
29 views

Insert custom canonical value on category page in Magento 2

I've created a module to add a custom category attribute (custom canonical URL) to a category page, based on Display custom canonical URL on category page in Magento 2 question. Here is the contents ...
0
votes
0answers
15 views

Store Filter on Category Collection Not Working

Have just noticed that a function is pulling categories from any store. I used the below setStore() method thinking this would limit the scope of categories returned to just the current store however ...
0
votes
1answer
51 views

Magento 2: Change the “URL Key” and save the category “The value specified in the URL Key field would generate a URL that already exists.”

When change the "URL Key" and save the category then throw the below error. This store Migrate Magento 1.9 to Magento 2.3.5-p1 and used multi store view. Error: The value specified in the ...
1
vote
2answers
34 views

Magento 2 : How to get category data by category id?

I have product object & i get category ids using $category_id = $product->getCategoryIds(); I need the collection for the category ids which i get in $category_id What will be the best & ...
0
votes
0answers
29 views

Categories already saved in a product appear empty when editing that same product

When trying to edit a product in Magento 2, the categories that are already saved in the product do not appear, they are empty. If we save without reselecting the categories, then the product is ...
1
vote
1answer
45 views

After update Magento 2.3.5 to 2.4.2 on all category pages error: Exception #0 (RuntimeException): Catalog Layer has been already created. How fix?

After updating the version, I started getting on all category pages this error: Exception #0 (RuntimeException): Catalog Layer has been already created This is error in: vendor/magento/module-catalog/...
1
vote
2answers
23 views

Magento 2 - Change amount of products per row in category view

Currently there are showing 4 products per row in the category view. How can I make it show 3 products per row instead? I found this answer. It says there is a file Magento_Catalog\web\css\source\...
0
votes
0answers
18 views

Magento 2 : When I special price bulk update price sorting is not working

My site has just configurable products only. I want to sort by price. For products so when users sort products by price, sorting looks wrong. So I have checked so Price(Low to High) Sorting not ...
0
votes
1answer
21 views

M2.4 - How to add OG tag for categories?

I am created OG tag for the Homepage and products, For Homepage : 1)app/design/frontend/Zero/my_theme/Magento_theme/layout/default_head_blocks.xml <meta name="og:title" content="...
0
votes
0answers
30 views

Slow Catalog pages Magento 2.4 - Large database - 30+seconds first page load

We have been working on a Magento 2.4 multi store. On Dedicated server, 24 Cores, 192GB RAM, MySQL 5.7, PHP 7.4 One of the stores has 300k SKU. When loading the homepage and product pages, the speed ...
0
votes
1answer
29 views

Magento 2 Commerce Edition - Category Image upload error : Attention File validation failed

I am getting the following error when i try to add image for category, How to solve this issue, i am using commerce edition ver 2.4.1
0
votes
1answer
40 views

How to change the price of a product on the category page?

I am building a module for customer specific pricing. Here is psuedocode for altering the price for a specific product. This works on the product page and through the checkout journey. $_product = $...
0
votes
0answers
18 views

Magento 2: extending ListProduct

I have created a custom controller that should show a list of products in the account area. For this purpose I added a custom block that extends the ListProduct block via layout. The basic idea is to ...
0
votes
0answers
16 views

what's the best approach to lock specfic category for non registered users on (Magento 1.9)

what's the best approach to lock specfic category for non registered users on (Magento 1.9) for specific country
0
votes
1answer
32 views

Magento 2 - How I can get category for related products

How I can get categories for related products like in the following image: I use this code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $category = $objectManager->get('...
0
votes
1answer
28 views

No categories in the layered navigation

I stuck with a problem that some of the categories won't show in the layered navigation. An anchor is enabled, re-indexation and cache clearing made many times, changed the theme to default Luma. ...
0
votes
1answer
21 views

What is the restriction on flat catalog if my store has more than 500K SKUs?

I have a customer with more than 5 million products and 2500 attributes. They are using an external system to push products to specific ecommerce sites. They would like to push 500,000 product to ...
0
votes
0answers
10 views

Get Top Selling Categories

I have a dashboard for a vendor, I want to display the top 3 categories on the page, No luck till now. Anyone who has done something like? Or provide some reference

1
2 3 4 5
53