optiweb / ajax_compare_m2
AJAX product compare for Magento 2
Installs: 8 123
Dependents: 0
Suggesters: 0
Security: 0
Type:magento2-module
pkg:composer/optiweb/ajax_compare_m2
Requires
- php: ^7.1.3 || ^8.0
- magento/framework: ^101.0.0 || ^102.0.0 || ^103.0.0
This package is auto-updated.
Last update: 2025-10-26 11:39:37 UTC
README
This extension improves user experience on your store by allowing users to add products to and remove products from comparison using AJAX.
Features:
- add prdoucts to compare using AJAX
- limit the number of products in comparison
- ability to add a 'Clear compare' link to compare page
- remove individual products from comparison using AJAX
Compatibility
Developed on 2.2.2, tested on 2.1.8, 2.2.3, 2.3.5 and 2.4.3. In all cases Luma theme was used with very few additional extensions. Compatibility may be affected depending on the theme you are using.
Known issues
- there are currently no known issues
Installation:
- install module:
composer require optiweb/ajax_compare_m2OR- download a zip and upload contents to
app/code/Optiweb/AjaxComparefolder
- enable module:
php bin/magento module:enable Optiweb_AjaxCompare - run
php bin/magento setup:upgradefrom the root directory of your Magento installation - go to
Stores > Configuration > Optiweb > AJAX Compareand configure settings as per your requirements
Changelog
1.0.0initial release1.0.2general improvements and bugfixes- main controller is now a plugin instead of a preference. This way the original controller method is called if the module is disabled
- fixed a bug where adding to compare would be impossible if the item limit was not set or equal to '0'
- code cleanup, typos sorted, removed clutter code
1.0.3- added translation files (
en_USandsl_SI) - removing products using AJAX now works as expected
- added translation files (
1.1.0- added default configuration values (enabled = 1, item limit = 4, show remove link = 1)
- added more configuration options (add to/remove from buttons css selector, ability to disable scrolling to top of the page)
1.1.1- remove PHP 5.x support
- add PHP 7.1 and 7.2 support
1.1.2- Test with 2.3.5
- code cleanup
- add PHP 7.3 support
1.1.3- test with 2.4.3
- add php 8 support
- add Magento 2.4 support
Licence:
MIT. (see LICENCE.txt)