Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
0
votes
1answer
16 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
13 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
21 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
25 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
18 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
41 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
19 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 ?
0
votes
1answer
25 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
18 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
14 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 ...
0
votes
0answers
8 views

Prevent scroll to top after adding to compare , remains on same position

On my category page there is a compare button , when clicked the page refresh and scroll to top, I need to stay on the same position , any idea? thanks
1
vote
1answer
23 views

magento 2.3: category loses “use default value” only on default store view and there are no store related rows in tables

I have a magento 2.3 with 4 websites, each website has one store view. When I save a category via backend everything works as expected, but when I save a category via code, the default store view gets ...
1
vote
0answers
29 views

How to add the category with search bar in magento2?

How to add the categories drop down with title "All categories" attached with the search bar seen in the image attached here with in Magento2 ? I just need to show the search bar with "...
0
votes
1answer
10 views

How to add category selector on admin product form in magento 2

I added a select category in product form but it doesn't work.After selecting categories and saving the selections are not stored. Please help me with this problem. Maybe i'm missing something someone ...
2
votes
1answer
41 views

Magento 2.4 category page product not load

Magento 2.4 category page default product collection doesn't load. And elasticsearch working perfect. So Please help me. THANKS.
0
votes
0answers
21 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
16 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
35 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
17 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
29 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
9 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
32 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
20 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
14 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
18 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
15 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
17 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
28 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
78 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
23 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
46 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
25 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
18 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
36 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
24 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
26 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
244 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
26 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
31 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
16 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
30 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
20 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
56 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
2 3 4 5
53