How to compare only the attributes present in any of the products?
-
-
@Deepanjali
this functionality is not available.
You need to customize it. -
How can I do it?
-
Hi @Deepanjali,
There are two files one for default and one for velocity theme.
- Default: 'packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php'
- Velocity: 'packages/Webkul/Shop/src/Resources/views/guest/compare/compare-products.blade.php'
In these files you will see the '$comparableAttributes' loop, here you need to manipulate according to your needs and you also need to check vue components as well which defined in this file.
After that don't forget to publish your changes to main resources folder by using this command.
php artisan vendor:publish --all --force