This plugin allows you to integrate wishlist features with Sylius platform app.
We work on amazing eCommerce projects on top of Sylius and Pimcore. Need some help or additional resources for a project? Write us an email on mikolaj.krol@bitbag.pl or visit our website! 🚀
We created a demo app with some useful use-cases of the plugin! Visit demo.bitbag.shop to take a look at it.
The admin can be accessed under demo.bitbag.shop/admin link and sylius: sylius
credentials.
$ composer require bitbag/wishlist-plugin
Add plugin dependencies to your config/bundles.php
file:
return [
...
\BitBag\SyliusWishlisPlugin\BitBagSyliusWishlisPlugin => ['all' => true],
];
Import required config in your config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml
imports:
...
- { resource: "@BitBagSyliusWishlisPlugin/Resources/config/config.yml" }
Update your database
$ bin/console doctrine:migrations:diff
$ bin/console doctrine:migrations:migrate
Note: If you are running it on production, add the -e prod
flag to this command.
You can use @BitBagSyliusWishlistPlugin/_addToWishlist.html.twig
, @BitBagSyliusWishlistPlugin/_removeFromWishlist.html.twig
and @BitBagSyliusWishlistPlugin/_removeFromWishlist.html.twig
templates to enable adding/removing/displaying wishlist from the Twig UI.
For an example on how to do that, take a look at these source files.
Run the below command to see what Symfony services are shared with this plugin:
$ bin/console debug:container | grep bitbag_sylius_wishlist_plugin
$ bin/console debug:container --parameters | grep bitbag
$ composer install
$ cd tests/Application
$ yarn install
$ yarn run gulp
$ bin/console assets:install public -e test
$ bin/console doctrine:schema:create -e test
$ bin/console server:run 127.0.0.1:8080 -d public -e test
$ open http://localhost:8080
$ vendor/bin/behat
$ vendor/bin/phpspec run
Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.