alexispe/sylius-round-up-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Build workflow status

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...

Screenshot of cart page

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

  1. Execute docker compose up -d

  2. Initialize plugin docker compose exec app make init

  3. 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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固