brille24 / sylius-wishlist-plugin
Wishlist plugin for Sylius.
Installs: 1 476
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 13
Type:sylius-plugin
Requires
- php: ^7.2
- ramsey/uuid: ^3.7
- sylius/sylius: ^1.1
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.2
- friends-of-behat/cross-container-extension: ^1.1
- friends-of-behat/page-object-extension: ^0.2.0
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.2.1
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-strict-rules: ^0.10.0
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^2.0
- symfony/browser-kit: ^3.4|^4.1
- symfony/debug-bundle: ^3.4|^4.1
- symfony/dotenv: ^3.4|^4.1
- symfony/intl: ^3.4|^4.1
- symfony/web-profiler-bundle: ^3.4|^4.1
- symfony/web-server-bundle: ^3.4|^4.1
This package is auto-updated.
Last update: 2021-04-12 15:26:51 UTC
README
Overview
This plugin allows you to integrate wishlist features with Sylius platform app.
Support
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! 🚀
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 AppKernel.php file:
public function registerBundles() { return array_merge(parent::registerBundles(), [ ... new \BitBag\SyliusWishlistPlugin\BitBagSyliusWishlistPlugin(), ]); }
Import required config in your app/config/config.yml
file:
# app/config/config.yml imports: ... - { resource: "@BitBagSyliusWishlistPlugin/Resources/config/config.yml" }
Import routing on top of your app/config/routing.yml
file:
# app/config/routing.yml bitbag_sylius_wishlist_plugin: resource: "@BitBagSyliusWishlistPlugin/Resources/config/routing.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.
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 bitbag_sylius_wishlist_plugin
Parameters you can override in your parameters.yml(.dist) file
wishlist_cookie_id bitbag_sylius_wishlist
Testing
$ composer install $ cd tests/Application $ yarn install $ yarn run gulp $ bin/console assets:install web -e test $ bin/console doctrine:schema:create -e test $ wishlist $ bin/console server:run 127.0.0.1:8080 -d web -e test $ open http://localhost:8080 $ bin/behat $ bin/phpspec run
Contribution
Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.