bitbag / wishlist-plugin
Wishlist plugin for Sylius.
Installs: 54 199
Dependents: 0
Suggesters: 0
Security: 0
Stars: 40
Watchers: 6
Forks: 17
Open Issues: 2
Type:sylius-plugin
Requires
- php: ^7.3
- sylius/sylius: ^1.8
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^6.1
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.40
- phpstan/phpstan-doctrine: 0.12.13
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.4
- phpunit/phpunit: ^8.5
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^3.0
- symfony/browser-kit: ^4.4
- symfony/debug-bundle: ^4.4|^5.0
- symfony/dotenv: ^4.4|^5.0
- symfony/intl: ^4.4|^5.0
- symfony/web-profiler-bundle: ^4.4|^5.0
- symfony/web-server-bundle: ^4.4|^5.0
- symplify/package-builder: ^7.1
- vimeo/psalm: 3.11.4
Conflicts
- symfony/browser-kit: 4.1.8
- symfony/dependency-injection: 4.1.8
- symfony/doctrine-bridge: 4.4.16
- symfony/dom-crawler: 4.1.8
- symfony/routing: 4.1.8
- symfony/symfony: 4.1.8
This package is auto-updated.
Last update: 2021-02-22 09:04:24 UTC
README
About us
At BitBag we do believe in open source. However, we are able to do it just beacuse of our awesome clients, who are kind enough to share some parts of our work with the community. Therefore, if you feel like there is a possibility for us working together, feel free to reach us out. You will find out more about our professional services, technologies and contact details at https://bitbag.io/.
BitBag SyliusWishlistPlugin
This plugin allows you to integrate wishlist features with Sylius platform app.
Demo
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.
Installation
$ composer require bitbag/wishlist-plugin
Add plugin dependencies to your config/bundles.php
file:
return [ ... BitBag\SyliusWishlistPlugin\BitBagSyliusWishlistPlugin::class => ['all' => true], ];
Import required config in your config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml imports: ... - { resource: "@BitBagSyliusWishlistPlugin/Resources/config/config.yml" }
Import routing in your config/routes.yaml
file:
# config/routes.yaml
bitbag_sylius_wishlist_plugin:
resource: "@BitBagSyliusWishlistPlugin/Resources/config/routing.yml"
Update your database
$ bin/console doctrine:migrations:migrate
Note: If you are running it on production, add the -e prod
flag to this command.
Note: If you are updating this plugin from version 1.4.x you need to run:
$ bin/console doctrine:migrations:version BitBag\\SyliusWishlistPlugin\\Migrations\\Version20201029161558 --add --no-interaction
Usage
Rendering the wishlist

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.
Customization
Available services you can decorate and forms you can extend
Run the below command to see what Symfony services are shared with this plugin:
$ bin/console debug:container | grep bitbag_sylius_wishlist_plugin
Parameters you can override in your parameters.yml(.dist) file
$ bin/console debug:container --parameters | grep bitbag $ bin/console debug:container --parameters | grep wishlist
Testing
$ composer install $ cd tests/Application $ yarn install $ yarn build $ 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 $ cd ../.. $ vendor/bin/behat $ vendor/bin/phpspec run
Contribution
Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.