setono / sylius-abandoned-cart-plugin
Reengage customers who abandoned their cart in Sylius
Installs: 2 965
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 12
Type:sylius-plugin
Requires
- php: >=7.4
- ext-hash: *
- doctrine/persistence: ^2.5
- knplabs/knp-menu: ^3.3
- psr/log: ^1.1 || ^2.0 || ^3.0
- setono/doctrine-object-manager-trait: ^1.1
- setono/symfony-main-request-trait: ^1.0
- sylius/resource-bundle: ^1.6
- symfony/config: ^4.4 || ^5.4 || ^6.0
- symfony/console: ^4.4 || ^5.4 || ^6.0
- symfony/dependency-injection: ^4.4 || ^5.4 || ^6.0
- symfony/event-dispatcher: ^4.4 || ^5.4 || ^6.0
- symfony/form: ^4.4 || ^5.4 || ^6.0
- symfony/http-foundation: ^4.4 || ^5.4 || ^6.0
- symfony/messenger: ^4.4 || ^5.4 || ^6.0
- symfony/routing: ^4.4 || ^5.4 || ^6.0
- symfony/validator: ^4.4 || ^5.4 || ^6.0
- symfony/workflow: ^4.4 || ^5.4 || ^6.0
- twig/twig: ^2.15
- 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
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.17
- psalm/plugin-symfony: ^3.1
- roave/security-advisories: dev-latest
- setono/code-quality-pack: ^2.2
- sylius/admin-api-bundle: ^1.11
- sylius/sylius: ~1.10.14
- symfony/debug-bundle: ^4.4 || ^5.4 || ^6.0
- symfony/dotenv: ^4.4 || ^5.4 || ^6.0
- symfony/intl: ^4.4 || ^5.4 || ^6.0
- symfony/maker-bundle: ^1.39
- symfony/property-info: ^4.4 || ^5.4 || ^6.0
- symfony/serializer: ^4.4 || ^5.4 || ^6.0
- symfony/web-profiler-bundle: ^4.4 || ^5.4 || ^6.0
- symfony/webpack-encore-bundle: ^1.15
- dev-master
- v1.0.0-alpha.4
- v1.0.0-alpha.3
- v1.0.0-alpha.2
- v1.0.0-alpha
- dev-dependabot/composer/lexik/jwt-authentication-bundle-tw-2.18
- dev-dependabot/composer/phpunit/phpunit-tw-9.6
- dev-dependabot/composer/setono/code-quality-pack-tw-2.4
- dev-dependabot/composer/psalm/plugin-phpunit-tw-0.18
- dev-dependabot/composer/psalm/plugin-symfony-tw-4.0
This package is auto-updated.
Last update: 2023-05-13 16:38:10 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