setono / sylius-abandoned-cart-plugin
Reengage customers who abandoned their cart in Sylius
Installs: 10 707
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 7
Type:sylius-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.1
- 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: ^5.4 || ^6.4 || ^7.0
- symfony/console: ^5.4 || ^6.4 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.0
- symfony/event-dispatcher: ^5.4 || ^6.4 || ^7.0
- symfony/form: ^5.4 || ^6.4 || ^7.0
- symfony/http-foundation: ^5.4 || ^6.4 || ^7.0
- symfony/messenger: ^5.4 || ^6.4 || ^7.0
- symfony/routing: ^5.4 || ^6.4 || ^7.0
- symfony/validator: ^5.4 || ^6.4 || ^7.0
- symfony/workflow: ^5.4 || ^6.4 || ^7.0
- twig/twig: ^2.15 || ^3.0
- webmozart/assert: ^1.11
Requires (Dev)
- api-platform/core: ^2.7
- friendsofsymfony/oauth-server-bundle: >2.0.0-alpha.0 ^2.0@dev
- lexik/jwt-authentication-bundle: ^2.16
- matthiasnoback/symfony-config-test: ^4.3 || ^5.1
- matthiasnoback/symfony-dependency-injection-test: ^4.3 || ^5.1
- php-http/message-factory: ^1.1
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.6
- psalm/plugin-phpunit: ^0.18.4
- setono/code-quality-pack: ^2.8.3
- shipmonk/composer-dependency-analyser: ^1.7
- sylius/admin-api-bundle: ^1.11
- sylius/sylius: ~1.10.14
- symfony/debug-bundle: ^5.4 || ^6.4 || ^7.0
- symfony/dotenv: ^5.4 || ^6.4 || ^7.0
- symfony/intl: ^5.4 || ^6.4 || ^7.0
- symfony/property-info: ^5.4 || ^6.4 || ^7.0
- symfony/serializer: ^5.4 || ^6.4 || ^7.0
- symfony/web-profiler-bundle: ^5.4 || ^6.4 || ^7.0
- symfony/webpack-encore-bundle: ^1.15
This package is auto-updated.
Last update: 2024-11-08 08:44:36 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