Questions tagged [category]
Questions about product categories in the Magento catalog
2,703
questions
0
votes
2
answers
32
views
My site show "We can't find products matching the selection" in category page
I used the command
bin/magento indexer:reindex
and the product appeared. But then it disappeared again and showed the words We can't find products matching the selection on the category page.
Why is ...
0
votes
1
answer
45
views
How to add an element under each product name on category pages?
How to add a subtitle / simple HTML element under each product name on a category page list?
I've tried various solutions via adding referenceContainers to the catalog_category_view.xml in my module ...
0
votes
1
answer
31
views
Is there any way to disable pagebuilder for category description without using xml in magento2?
I just wanted to disable pagebuilder from category description without using ui_component category_form.xml , is there any other way to do that like using plugin/event ?
0
votes
0
answers
14
views
Random category/word (FEATURES) as last category on the front end
Magento ver. 2.4.5-p1
Smartwave Porto theme
Amasty extensions
Webkul multi-step checkout
I have done some work with categories (moving them around, deleting some) on a site I'm developing and I ...
0
votes
0
answers
26
views
Magento2 : Product Url Rewrite not woking Properly
I am facing an issue with the product URL rewrite. I have installed the extension "OlegKoval_RegenerateUrlRewrites" to generate URL rewrite.
some products are working but others are ...
0
votes
0
answers
10
views
How to change product view image design layout for a specific category only?
I want to only on specific category product view image design and layout change but another category product image view design and layout has been the same.
0
votes
0
answers
12
views
Redirect Disabled child categories to the Parent Category
I want to redirect the Redirect Disabled child categories to the Parent Category.
0
votes
0
answers
10
views
Facing issues with category in magento 2.3.7-p4
I am able to create categories and assign products to them but the real issue comes with category pages which gives 404, unable add them in menu and when I create custom CMS page to get products by ...
0
votes
0
answers
32
views
Magento2 Layered Navigation Not Working On Sidebar
I Am facing a problem with Layered navigation on a category. I have installed Mageplaza Layered Navigation Extension.
in the left-side category sidebar, I have 6 sub Category listed . when I click on ...
0
votes
0
answers
13
views
Custom Category fields duplicated
We had an issue where updates to a custom category_form.xml file were made that changed their placement on the page. When I reverted back to the way it should have been, I now get duplicated fields.
...
0
votes
0
answers
13
views
How to make a virtual category NOT visible in filters left bar
I have virtual categories with products in them to be able to display them as a productpage with products from the same series/collection.
I don't want these categories to be visible in my filters in ...
0
votes
1
answer
36
views
what does $this->_coreRegistry->registry('current_category') return in magento 2?
what does $this->_coreRegistry->registry('current_category') return in magento 2 ?
0
votes
2
answers
24
views
$category->getStoreId() returns the current store instead of the store that it actually belongs to
I have a category 1 which belongs to store A and category 2 which belongs to store B. When I am in store A and run the query $category->getStoreId(), both categories returns A, and when I am in ...
0
votes
0
answers
12
views
how to update or delete category tree data
The query is the following. I want to update this field in magento, but only accept or replace the new values to be entered with the values that already exist, doing it massively using a template, ...
0
votes
2
answers
64
views
Magento 2.4.3 - How to show SKU on category page?
Is there a way to make SKU show on the Category page?
0
votes
1
answer
35
views
Get parent category url in Catalog Widget template
I have a cms page that I am using to display products via CatalogWidget template. I would like to modify the template to have the title of the category link to the category page, but I have been ...
0
votes
0
answers
39
views
No such entity with id = 40 vendor/magento/framework/Exception/NoSuchEntityException.php:58
Hi I have this problem when I delete a category from admin area.
If a user clicks on a url of a deleted product/category, or if he manually enters the id of the non-existent category, he generates a ...
0
votes
1
answer
36
views
Only show current category in category path?
Magento 2.4
A category looks like this: https://www.example.com/cat1/cat/cat3.html
I want it to look like this: https://www.example.com/cat3.html
So what I want is only the current category, not the ...
0
votes
3
answers
194
views
Store view category description
We want to check or load the category description from the store view itself, instead of the general.
By default it is loaded as <?= $category->getCurrentCategory()->getDescription() ?>
...
0
votes
1
answer
73
views
Category name from store view, only when it exist else default value - Magento2.4
We use the following code, to get the category name of a specific product.
This works fine, but we face the issue with the store views. It only works well if the specific store view does have a unique ...
0
votes
0
answers
30
views
Error while trying Schedule new Update for a category
Trying to Schedule new update for a Category, I get this error after clicking Save:
Error: : Something went wrong while saving the Magento\Catalog\Api\Data\CategoryInterface.
Does anybody know this ...
0
votes
2
answers
207
views
Magento 2.4.5 Graphql get product by category_id or uid
I'm confused. I'm querying categories and tried to add id field but it says it's deprecated and suggested to use uid instead. But to get products we need category id, when I tried to use uid it doesn'...
0
votes
0
answers
17
views
Display subcategories in left sidebar of a category?
Magento 2.4
I am trying to display the subcategories of a given category. I tried with https://github.com/groomershop/magento2-category-sidebar, but it just shown nothing. Is it not possible to do ...
0
votes
1
answer
31
views
Complete data is not saving in the Table
Actually I am getting the data of the catalog_category_entity in my custom grid and delete the record. Before delete I want to save the complete data in my custom table. But only saves the three ...
0
votes
1
answer
39
views
Remove Categories from Simple Products
Can anyone tell me how can i fetch all the Simple SKU's and remove all the categories from those SKU via PHP script in magento 2.4.4.
0
votes
0
answers
15
views
How to show L1 categories in static text in frontend menu in magento2
Example
Demo Category(static text)
->cat1
->cat2
->cat3
I tried, Already Created one custom boolean attribute in the category attribute. If that attribute value is YES, then I have to show ...
0
votes
0
answers
41
views
How to fetch category path using id through SQL in Magento 2?
I want to get the path of specific category using it's ID like "Default/.../.../CategoryName" through SQL query. How can I do that?
I get the category name using ID through SQL using this.
1
vote
0
answers
30
views
Magento 2 - Categories in Layered Navigation
My layered navigation is not displaying categories in a filterable manner, screenshot below.
Currently every category in my tree is set to anchor and when I go to a given category page, all the ...
0
votes
2
answers
149
views
Add Banner in the PLP page
I want to add banners on the PLP page that redirects to the linked category.
Is there any extension or customizations that help me to do this?
Image is an attached with this question.
0
votes
2
answers
65
views
attribute on category page don´t show in second store view
I show a few attributes in my categories(list view) on my default store view and that is working well. Magento ver. 2.4.3
Now I created a second store view but unfortunately the attributes didn´t show ...
1
vote
1
answer
119
views
The "componentType" configuration parameter is required for the "custom" component Magento 2
I am facing this error due to custom field-set on the category form. Those attributes are related to the Affirm Payment.
Error i am getting,
"1 exception(s): Exception #0
(Magento\Framework\...
0
votes
0
answers
12
views
Eliminate duplicate URLs from getting indexed but not from the website
So I have most of my products with more than one URL
website.com/product
website.com/category/product
website.com/category/subcategory/product
website.com/category/subcategory2/product
I saw that ...
0
votes
0
answers
19
views
Is it possible to include multiple values from one attribute when matching category rules
I am trying to incldue multiple SKU's when using the match products by rule. is it possible to add them all on one line, rather than adding each sku line by line? and is there a way to import values ...
0
votes
1
answer
150
views
Get all associated products from configurable product. (Magento 2)
Currently, I am not getting the out-of-stock products from the configurable product on the product page (product/view controller).
File :
<?php
/**
* Product view controller
*/
namespace Magento\...
0
votes
0
answers
123
views
Magento 2 Hide category from customer group
I would like to start a query in the store and then say: If you belong to customer group 2 the category is displayed. If you do not belong to any group or belong to another group, the category is not ...
0
votes
4
answers
357
views
Magento 2 : Redirect product if out stock
is there a way we can redirect a product if the product is out of stock, then redirect that product to its assigned category page (if multiple categories assigned then redirect to the first category ...
0
votes
1
answer
32
views
Show only active subcategories
so I'm trying to create a widget that will show my subcategories. I've implemented the code and it works but the problem is that it shows the categories even that are not active.
I need some help or ...
0
votes
1
answer
36
views
Route to Existing Layout
I am working on a custom page module and want to make a custom route however I would like to use the catalog_category_view.xml layout, instead of the [module_name]_index_index.xml needed for my route ...
0
votes
0
answers
94
views
get category list by custom extenstion attribute field search criteria Rest API in magento 2.4
I need to get category list by custom extension attribute field search criteria in Magento 2.4 Rest API.
I created sync_updated_at named custom column in catalog_category_entity DB Table & column ...
1
vote
0
answers
22
views
I am facing a weird issue with the "products in category" that reverts back from time to time on Magento 2.2.4
I am facing a weird issue with the "products in category" that reverts back from time to time on Magento 2.2.4
So if I change the products it suddenly rolls back to the products that were ...
0
votes
1
answer
29
views
How to include category url keys in product URLs
I am preparing to get Magento certified, doing some test questions I have found this:
A client has asked you to include category url keys in product URLs.
How is this done?
A. Create an observer for ...
4
votes
1
answer
1k
views
Magento 2.4.5-p1 - no products listed in categories and search
I'm not sure, how this state was reached. I also tried one new category and added one new product. The product is definitely set to be visible in Catalogue and Search, but the category still doesn't ...
1
vote
1
answer
92
views
Remove title and category description from category pages except first
i need to remove (not displaying:none or similar) title and category description from category catalog pages different from first page.
I mean, when i click on pages on pagination selector, i want ...
1
vote
1
answer
16
views
How can I select hero products to appear 1st in a catergory
We have products we want to appear first but are not the newest products added. How can we select these individual products to appear before others. A selected hierarchy of products within a category
1
vote
1
answer
250
views
Magento 2.4.3 - Category and product issue
Before the weekend we notice an issue when we tried to remove a category from one of our websites. I did a reindex and the category is still there. tried to clear the cache also from my browser and ...
0
votes
0
answers
18
views
How add new filter in module-visual-merchandiser, search products for add in category
I need to add new filters, in the product search to add in the category, the module that creates the component is MODULE-VISUAL-MERCHANDISER, what is the best way to do this?
And is it possible to add ...
0
votes
1
answer
273
views
add clickable URL for the category Image
I want to add custom clickable URL for the category image. Anyone can teach me what I need to do? I have to create a new attributes for the URL field?
0
votes
2
answers
419
views
Magento 2.4.4: Where do I find the HTML of category pages in Magento?
I need to add code the code below to display Yotpo Reviews Carousel in category pages. Where is the template for category pages in Magento located? We are using a custom theme from SwissUp
I need to ...
0
votes
1
answer
21
views
Couldn't get All categories Collection Magento2
I am facing an issue on the Live site that category collection only returns the specific level categories the same code is working fine on Localhost
Here is My Code
public function getAllCategory(int ...
0
votes
0
answers
196
views
Getting Magento\Catalog\Model\Category\FileInfo::removeStorePath() error on Magento 2.4.4
If I change the category url , I am getting this error message:
Unique constraint violation found
Argument 1 passed to Magento\Catalog\Model\Category\FileInfo::removeStorePath() must be of the type ...