alexispe/sylius-round-up-plugin
最新稳定版本:v1.1.0
Composer 安装命令:
composer require alexispe/sylius-round-up-plugin
包简介
This plugin allows you to round up the total of the cart.
关键字:
README 文档
README
This plugin simply round up your cart.
Then you can choose to donate the difference to a charity, plant a tree or keep it for you as a tip...
Installation
1. Composer
composer require alexispe/sylius-round-up-plugin
2. Load bundle
Add to the bundle list in config/bundles.php:
<?php return [ // ... Alexispe\SyliusRoundUpPlugin\AlexispeSyliusRoundUpPlugin::class => ['all' => true], // ... ];
3. Load configuration
Add to the imports list in config/packages/_sylius.yaml:
imports: ... - { resource: "@AlexispeSyliusRoundUpPlugin/config/config.yml" }
4. Show round up line in cart summary
Override template Cart\Summary\_totals.html.twig and add line 52 (before cart total tr):
{% include '@AlexispeSyliusRoundUpPlugin/Shop/Cart/Summary/_round_up_total.html.twig' %}
Contribute
Quickstart Installation
-
Execute
docker compose up -d -
Initialize plugin
docker compose exec app make init -
See your browser
open localhost
Running plugin tests
docker compose exec app make ecs docker compose exec app make phpstan docker compose exec app make psalm docker compose exec app make phpunit docker compose exec app make phpspec docker compose exec app make behat
License
This plugin is completely free and released under the MIT License.
Contact
I'm a 🇫🇷 freelance Sylius developer. If you want to contact me, e-mail me to contact@alexis-petit.fr. I will try to answer you as soon as possible.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-10-31
