setono / sylius-abandoned-cart-plugin
Reengage customers who abandoned their cart in Sylius
Fund package maintenance!
Setono
Installs: 20 265
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 4
Open Issues: 5
Type:sylius-plugin
pkg:composer/setono/sylius-abandoned-cart-plugin
Requires
- php: >=8.1
- ext-hash: *
- doctrine/persistence: ^2.5 || ^3.0
- knplabs/knp-menu: ^3.3
- psr/log: ^1.1 || ^2.0 || ^3.0
- setono/doctrine-orm-trait: ^1.2
- sylius/channel: ^1.0
- sylius/core: ^1.0
- sylius/core-bundle: ^1.0
- sylius/mailer-bundle: ^1.0 || ^2.0
- sylius/order: ^1.0
- sylius/resource-bundle: ^1.6
- sylius/ui-bundle: ^1.0
- symfony/config: ^6.4
- symfony/console: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/event-dispatcher: ^6.4
- symfony/form: ^6.4
- symfony/http-foundation: ^6.4
- symfony/messenger: ^6.4
- symfony/routing: ^6.4
- symfony/validator: ^6.4
- symfony/workflow: ^6.4
- twig/twig: ^2.15 || ^3.0
- webmozart/assert: ^1.12
Requires (Dev)
- api-platform/core: ^2.7.16
- babdev/pagerfanta-bundle: ^3.8
- behat/behat: ^3.14
- doctrine/doctrine-bundle: ^2.11
- jms/serializer-bundle: ^4.2
- lexik/jwt-authentication-bundle: ^2.17
- setono/sylius-plugin-pack: ~1.14.2
- sylius-labs/polyfill-symfony-security: ^1.1.2
- symfony/debug-bundle: ^6.4
- symfony/dotenv: ^6.4
- symfony/intl: ^6.4
- symfony/property-info: ^6.4
- symfony/serializer: ^6.4
- symfony/web-profiler-bundle: ^6.4
- symfony/webpack-encore-bundle: ^1.17.2
- willdurand/negotiation: ^3.1
This package is auto-updated.
Last update: 2026-01-13 14:49:35 UTC
README
Installation
composer require setono/sylius-abandoned-cart-plugin
Add bundle to config/bundles.php:
Make sure you add it before SyliusGridBundle, otherwise you'll get
You have requested a non-existent parameter "setono_sylius_abandoned_cart.model.notification.class". exception.
<?php // config/bundles.php return [ // ... Setono\SyliusAbandonedCartPlugin\SetonoSyliusAbandonedCartPlugin::class => ['all' => true], ];
Configure plugin
# config/packages/setono_sylius_abandoned_cart.yaml imports: - { resource: "@SetonoSyliusAbandonedCartPlugin/Resources/config/app/config.yaml" } setono_sylius_abandoned_cart: # When unsubscribing a customer a hash is used to prevent false unsubscribes. This hash is generated using this salt. salt: your_secret_salt
Configure routes
# config/routes/setono_sylius_abandoned_cart.yaml setono_sylius_abandoned_cart: resource: "@SetonoSyliusAbandonedCartPlugin/Resources/config/routes.yaml"
Install assets
bin/console assets:install
Update your schema
# Generate and edit migration bin/console doctrine:migrations:diff # Then apply migration bin/console doctrine:migrations:migrate
Add cronjob
The following command should run on a regular basis:
bin/console setono:sylius-abandoned-cart:process
also, if you want to prune the notifications table you can run:
bin/console setono:sylius-abandoned-cart:prune