New answers tagged category
0
votes
Magento2: Could not save product "330664" with position 0 to category 3567
This issue may occur with a duplicate product.
I solved this issue using the follwing way.
Set product "Visibility" to "Not Visible Individually" and then remove the category and ...
0
votes
Magento2: Create toggle button yes/no in admin product page
Try this code, it works, tested:
<?php
declare(strict_types=1);
namespace Vendor\ToggleAttribute\Setup\Patch\Data;
use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;
use Magento\...
0
votes
Magento 2.x Elasticsearch Category Products Not Showing
Check the details and fix shared by Magento support - https://support.magento.com/hc/en-us/articles/360027356612-Elasticsearch-5-is-configured-but-search-page-does-not-load-with-Fielddata-is-disabled-...
0
votes
Category name not appearing on backend
Make sure with your database that category name is stored or not.
Execute below query it would help for find out.
SELECT entity_type_id FROM `eav_entity_type` where entity_type_code =
'...
0
votes
Category issue after deleting records from table magento 2
Might be you have missing root category data in your database. Truncate below tables and re-insert root category missing data.
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_category_entity`;
...
0
votes
Accepted
Add To Cart Problem with Grouped Products
I changed the action on the form element by overriding the vendor file with Magento_Catalog/templates/product/list.phtml in the child theme. I also removed all the other code between the form tags ...
0
votes
Category issue after deleting records from table magento 2
Magento needs a root category, Please run the following query, and before running this query take backup of your current database.
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_category_entity`;...
0
votes
Bulk delete categories at once
you can also do this by
<?php
...
use Magento\Catalog\Model\CategoryFactory;
use Magento\Framework\Registry;
/**
* Class CategoryDeletion
* @package Project\Catalog
*/
class CategoryDeletion
{
...
0
votes
Bulk delete categories at once
Execute below query in your database or create custom script for it.
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE catalog_category_entity;
TRUNCATE TABLE catalog_category_entity_datetime;
TRUNCATE ...
0
votes
How to add category selector on admin product form in magento 2
I don't think this is the best solution, but in my case that worked.
make sure your product attribute exists and has been installed correctly (i.e. check the database after install).
change the ...
0
votes
Magento 2 upload category using CSV
It is default magento2 functionality to create a new category using import product CSV.
0
votes
Magento 2 upload category using CSV
create fronted page and upload CSV to form.
PHTML File
<form class="categoryform" action="<?php echo $this->getUrl("categoryimport/index/importcategory")?>" ...
0
votes
How to add custom class in Magento 2 Category page?
I have same requirement for add class on category content, i used htmlClass on content area as below newarrival_custom_category, it works.
For add class on body tag, Use class name attribute after ...
0
votes
The value specified in the URL Key field would generate a URL that already exists in Magenot 2.4
This is a logic problem, URL are generated from product names, and URL must be uniques. From admin panel take the products that are causing the problem, go to Search Engine Optimization section and ...
0
votes
Some Filters not showing on some Categories in Magento 2.4
In category Display Setting Tab :
Available Product Listing Sort By section all the data is not select so it doesn't show all on front-end.
Check SS:
After selecting all the options after reindexing ...
4
votes
Some Filters not showing on some Categories in Magento 2.4
There maybe a two possibilites:
Please check whether the attribute "newest" is assigned to the attribute set of that category.
There may not be products available with "newest" ...
0
votes
Is it possible to edit each product (name color, price color, font, etc) css in category page depending on a certain attribute?
as in year 2022 you don't need to add customised module to achieve this as there are two useful body classes added automatically and smartly/dynamically (using browsing sequences) by Magento core, on ...
Top 50 recent answers are included
Related Tags
category × 2674magento2 × 867
magento-1.9 × 535
product × 335
category-products × 128
collection × 119
magento-2.1 × 112
layout × 108
magento-1.7 × 106
category-tree × 106
catalog × 96
attributes × 90
php × 85
admin × 83
magento-1.8 × 82
products × 82
url-rewrite × 82
layered-navigation × 80
magento2.3 × 79
category-attribute × 68
url × 65
filter × 61
menu × 59
product-list × 58
database × 53