New answers tagged

0 votes

how to solved table catalog_product_entiry issue : M2

I had the same issue. The problem is, that the sequence_value does not exist in the table sequence_product and therefor the error is thrown. Just add the product id into that table in the correct ...
  • 2,571
0 votes

sql error while adding any products to category : M2

You need to delete the product and create it again.
  • 2,571
0 votes

Get child and parent of category

If having the issue in getting parents and children categories from a category in magento2 then no need to worry about this.Here we will see how to get parents and children categories from a category ...
  • 497
0 votes

Get child and parent of category

You can use below code to get all subcategories of parent category using category id First of all add CategoryRepository in construct: <?php protected $categoryRepository; public ...
0 votes

Magento 2.4.5 layered navigation filter showing incorrect results

My issue is connected to this issue reported here Custom sorting on category pages not working if out of stock products are shown #36113 The issue is that if show out of stock products is enabled, ...
0 votes

Removing a product from a category or setting the product categories programatically - Magento 2

Try this, $collection = $observer->getEvent()->getCollection(); if (!empty($collection)) { foreach ($collection as $k => $product) { $prdIdd = $...
  • 26

Top 50 recent answers are included