setono / sylius-criteo-plugin
Sylius 插件,集成 Criteo 跟踪脚本
v1.3.0
2022-08-10 10:52 UTC
Requires
- php: >=7.4
- knplabs/knp-menu: ^3.3
- matomo/device-detector: ^4.3 || ^5.0
- setono/symfony-main-request-trait: ^1.0
- setono/tag-bag: ^2.0
- setono/tag-bag-bundle: ^3.0
- sylius/resource-bundle: ^1.6
- symfony/config: ^4.4 || ^5.4
- symfony/dependency-injection: ^4.4 || ^5.4
- symfony/event-dispatcher: ^4.4 || ^5.4
- symfony/form: ^4.4 || ^5.4
- symfony/http-foundation: ^4.4 || ^5.4
- symfony/http-kernel: ^4.4 || ^5.4
- symfony/security-bundle: ^4.4 || ^5.4
- thecodingmachine/safe: ^1.0
- twig/twig: ^2.14
Requires (Dev)
- matthiasnoback/symfony-config-test: ^4.3
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phpspec/phpspec: ^6.3
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.17
- setono/code-quality-pack: ^2.2
- setono/sylius-behat-pack: ^0.2
- setono/sylius-tag-bag-plugin: ^1.1
- sylius/sylius: ^1.7
- symfony/browser-kit: ^4.4 || ^5.4
- symfony/debug-bundle: ^4.4 || ^5.4
- symfony/dotenv: ^4.4 || ^5.4
- symfony/intl: ^4.4 || ^5.4
- symfony/web-profiler-bundle: ^4.4 || ^5.4
- weirdan/doctrine-psalm-plugin: ^1.2
- dev-master
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta
- dev-renovate/configure
- dev-dependabot/composer/sylius-labs/coding-standard-tw-4.1
- dev-dependabot/composer/piwik/device-detector-tw-4.3
- dev-dependabot/composer/phpspec/phpspec-tw-7.1
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/phpunit/phpunit-tw-9.5
- dev-dependabot/composer/lakion/mink-debug-extension-tw-2.0.0
This package is auto-updated.
Last update: 2024-09-10 15:14:50 UTC
README
Sylius 插件,集成了 Criteo 跟踪脚本
安装
步骤 1:下载插件
打开命令行,进入您的项目目录,并执行以下命令以下载此插件的最新稳定版本
# Omit setono/sylius-tag-bag-plugin if you want to # override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage $ composer require setono/sylius-criteo-plugin setono/sylius-tag-bag-plugin
此命令需要您全局安装了 Composer,具体请参考 Composer 文档的 安装章节。
步骤 2:启用插件
然后,通过将其添加到项目中 config/bundles.php
文件中注册的插件/捆绑列表来启用插件
<?php # config/bundles.php return [ Setono\TagBagBundle\SetonoTagBagBundle::class => ['all' => true], // Use this bundle or override layout.html.twig as described at https://github.com/Setono/TagBagBundle#usage Setono\SyliusTagBagPlugin\SetonoSyliusTagBagPlugin::class => ['all' => true], Setono\SyliusCriteoPlugin\SetonoSyliusCriteoPlugin::class => ['all' => true], ];
步骤 3:配置插件
# config/packages/_sylius.yaml imports: # ... - { resource: "@SetonoSyliusCriteoPlugin/Resources/config/app/config.yaml" } # ...
步骤 4:导入路由
# config/routes/setono_sylius_criteo.yaml setono_criteo_plugin: resource: "@SetonoSyliusCriteoPlugin/Resources/config/routing.yaml"
步骤 5:更新数据库模式
$ php bin/console doctrine:migrations:diff $ php bin/console doctrine:migrations:migrate
步骤 6:设置账户
登录到 Sylius 应用程序管理员界面,转到 Criteo 页面,点击 "创建" 以创建新账户。填写您的 Criteo 账户 ID,确保 "启用" 已开启,并选择要将 Criteo 账户应用于哪个渠道。请注意,每个渠道只能创建一个账户,否则您可能会遇到未定义的行为。