themicly / shopcrafty-compare
Compare add-on for Shopcrafty.
v1.0.0
2026-07-28 16:47 UTC
Requires
- php: ^8.3
- illuminate/support: ^13.0
- themicly/shopcrafty: ^1.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^11.0
- phpunit/phpunit: ^12.0
README
Session-backed product comparison for Shopcrafty. The comparison list works for guests and signed-in customers and is limited to four active products.
Requirements
- PHP 8.3+
- Laravel 13+
themicly/shopcrafty1.0+
Installation
Install Shopcrafty first, then add the package:
composer require themicly/shopcrafty-compare php artisan migrate
Enable comparison in Admin → Themes → Storefront settings. The package is auto-discovered by Laravel and registers its routes, Livewire component, and addon metadata automatically.
What it provides
- Storefront comparison page at
/compare - JSON toggle endpoint at
/compare/toggle compare.compare-pageLivewire componentCompareServicewithMAX = 4compareaddon and settings metadata for Shopcrafty themes
The list is stored in the visitor session and is not persisted to the customer account.
Theme integration
Addon-owned views use the compare:: namespace. Shopcrafty’s bundled themes
only render compare links and components when the addon is installed and the
feature is enabled.
License
MIT. Targets PHP 8.3+ and Laravel 13+.