This plugin adds a wishlist feature to Sylius. It comes with these features:
- Add products to a wishlist (whether the visitor is logged in or not)
- Allow multiple wishlists per user (not implemented yet)
- Share wishlists with others
- Add products to cart from wishlist
composer require setono/sylius-wishlist-plugin
Make sure you add it before SyliusGridBundle
, otherwise you'll get
You have requested a non-existent parameter "setono_sylius_wishlist.model.wishlist.class".
exception.
<?php
$bundles = [
// ...
Setono\SyliusWishlistPlugin\SetonoSyliusWishlistPlugin::class => ['all' => true],
Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
// ...
];
# config/routes/setono_sylius_wishlist.yaml
setono_sylius_wishlist:
resource: "@SetonoSyliusWishlistPlugin/Resources/config/routes.yaml"
or if your app doesn't use locales:
# config/routes/setono_sylius_wishlist.yaml
setono_sylius_wishlist:
resource: "@SetonoSyliusWishlistPlugin/Resources/config/routes_no_locale.yaml"
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
TODO