New answers tagged

0 votes

Magento2: Get category product count which is show in admin after the category name

Admin panel uses: Magento\Catalog\Model\ResourceModel\Category\Collection::setLoadProductCount(true) This flag adds products count to categories in collection. Use the flag before load(). It counts ...
1 vote

How to get only duplicates entries in collection?

below is the code for getting duplicate name products with a little tweak you can use this piece of code for your solution below is the code snippet fill free to drop any query if you have protected $...
  • 1,722
0 votes

Magento 2 - Limit reviews shown on product page

For 2.4.* version I can suggest next solution: Create plugin in the di.xml: <type name="Magento\Theme\Block\Html\Pager"> <plugin name="page_limit" type="...

Top 50 recent answers are included