New answers tagged

0

The easiest way to do this is to remove compare-related blocks from your layout. If you share your earlier attempt we can see if something's wrong with it. It's hard to guess your skill level from your question. In a nutshell: Create a module YourName/YourModuleName/ , including registration.php and etc/module.xml. For now I'll assume you know how to do ...


0

https://marketplace.magento.com/magedad-module-compareapi.html This extension is useful for Add to compare API.


0

This extension is helpful to you. https://marketplace.magento.com/magedad-module-compareapi.html


0

On product page attributes are sorted like in attribute set. But on compare product page attributes are not sorted at all. You have to override function getComparableAttributes in vendor/magento/module-catalog/Model/ResourceModel/Product/Compare/Item/Collection.php Here is Overridden function: public function getComparableAttributes() { if ($...


0

Override Magento\Catalog\Block\Product\Compare\ListCompare using Preference <preference for="Magento\Catalog\Block\Product\Compare\ListCompare" type="Vendor\Catalog\Block\Product\Compare\ListCompare"/> And update below function /** * Retrieve Product Compare Attributes * * @return array */ public function ...


Top 50 recent answers are included