setono / sylius-abandoned-cart-plugin
重新联系在Sylius中放弃购物车的客户
v1.3.0
2024-06-11 08:11 UTC
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-object-manager-trait: ^1.1
- setono/symfony-main-request-trait: ^1.0
- sylius/resource-bundle: ^1.6
- symfony/config: ^5.4 || ^6.0
- symfony/console: ^5.4 || ^6.0
- symfony/dependency-injection: ^5.4 || ^6.0
- symfony/event-dispatcher: ^5.4 || ^6.0
- symfony/form: ^5.4 || ^6.0
- symfony/http-foundation: ^5.4 || ^6.0
- symfony/messenger: ^5.4 || ^6.0
- symfony/routing: ^5.4 || ^6.0
- symfony/validator: ^5.4 || ^6.0
- symfony/workflow: ^5.4 || ^6.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
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- php-http/message-factory: ^1.1
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.17
- setono/code-quality-pack: ^2.2
- sylius/admin-api-bundle: ^1.11
- sylius/sylius: ~1.10.14
- symfony/debug-bundle: ^5.4 || ^6.0
- symfony/dotenv: ^5.4 || ^6.0
- symfony/intl: ^5.4 || ^6.0
- symfony/maker-bundle: ^1.39
- symfony/property-info: ^5.4 || ^6.0
- symfony/serializer: ^5.4 || ^6.0
- symfony/web-profiler-bundle: ^5.4 || ^6.0
- symfony/webpack-encore-bundle: ^1.15
This package is auto-updated.
Last update: 2024-09-11 09:13:56 UTC
README
安装
composer require setono/sylius-abandoned-cart-plugin
将bundle添加到config/bundles.php
确保在SyliusGridBundle
之前添加,否则您将遇到您请求了一个不存在的参数 "setono_sylius_abandoned_cart.model.notification.class".
异常。
<?php // config/bundles.php return [ // ... Setono\SyliusAbandonedCartPlugin\SetonoSyliusAbandonedCartPlugin::class => ['all' => true], ];
配置插件
# 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
配置路由
# config/routes/setono_sylius_abandoned_cart.yaml setono_sylius_abandoned_cart: resource: "@SetonoSyliusAbandonedCartPlugin/Resources/config/routes.yaml"
安装资源
bin/console assets:install
更新您的模式
# Generate and edit migration bin/console doctrine:migrations:diff # Then apply migration bin/console doctrine:migrations:migrate
添加cron作业
以下命令应定期运行
bin/console setono:sylius-abandoned-cart:process
另外,如果您想修剪通知表,可以运行
bin/console setono:sylius-abandoned-cart:prune