setono / sylius-wishlist-plugin
Setono example plugin for Sylius.
Fund package maintenance!
Setono
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Type:sylius-plugin
Requires
- php: >=8.1
- doctrine/collections: ^1.6
- doctrine/persistence: ^2.0 || ^3.0
- setono/client-bundle: ^1.0@beta
- setono/composite-compiler-pass: ^1.2
- setono/doctrine-orm-trait: ^1.1
- sylius/core: ^1.0
- sylius/core-bundle: ^1.0
- sylius/order: ^1.0
- sylius/product-bundle: ^1.0
- sylius/resource-bundle: ^1.11
- sylius/user: ^1.0
- symfony/config: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/form: ^6.4 || ^7.0
- symfony/http-foundation: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
- symfony/options-resolver: ^6.4 || ^7.0
- symfony/routing: ^6.4 || ^7.0
- symfony/security-bundle: ^6.4 || ^7.0
- symfony/security-core: ^6.4 || ^7.0
- symfony/security-http: ^6.4 || ^7.0
- symfony/uid: ^6.4 || ^7.0
- twig/twig: ^2.15 || ^3.0
- webmozart/assert: ^1.11
Requires (Dev)
- api-platform/core: ^2.7.16
- babdev/pagerfanta-bundle: ^3.8
- behat/behat: ^3.14
- doctrine/doctrine-bundle: ^2.11
- infection/infection: ^0.27.11
- jms/serializer-bundle: ^4.2
- lexik/jwt-authentication-bundle: ^2.17
- phpunit/phpunit: ^9.6.20
- psalm/plugin-phpunit: ^0.18.4
- setono/code-quality-pack: ^2.8.3
- shipmonk/composer-dependency-analyser: ^1.6
- sylius/sylius: ~1.12.19
- symfony/debug-bundle: ^6.4 || ^7.0
- symfony/dotenv: ^6.4 || ^7.0
- symfony/intl: ^6.4 || ^7.0
- symfony/property-info: ^6.4 || ^7.0
- symfony/web-profiler-bundle: ^6.4 || ^7.0
- symfony/webpack-encore-bundle: ^1.17.2
- willdurand/negotiation: ^3.1
This package is auto-updated.
Last update: 2024-11-19 10:30:53 UTC
README
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
Installation
composer require setono/sylius-wishlist-plugin
Add plugin class to your bundles.php
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], // ... ];
Import routing
# 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"
Update your database
php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate
Update your templates
TODO