New answers tagged

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 ...
user avatar
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\...
user avatar
  • 550
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-...
user avatar
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 = '...
user avatar
  • 1,029
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`; ...
user avatar
  • 1,029
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 ...
user avatar
  • 172
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`;...
user avatar
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 { ...
user avatar
  • 1,664
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 ...
user avatar
  • 1,029
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 ...
user avatar
  • 31
0 votes

Magento 2 upload category using CSV

It is default magento2 functionality to create a new category using import product CSV.
user avatar
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")?>" ...
user avatar
  • 1,029
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 ...
user avatar
  • 1,029
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 ...
user avatar
  • 147
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 ...
user avatar
  • 526
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" ...
user avatar
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 ...
user avatar
  • 1

Top 50 recent answers are included