piedweb / reservation-bundle
dev-master
2018-12-13 21:04 UTC
Requires
- payum/paypal-express-checkout-nvp: ^1
- payum/payum-bundle: ^2.3
- php-http/guzzle6-adapter: ^2
- piedweb/cms-bundle: dev-master
- symfony/finder: ^4
Requires (Dev)
- symfony/framework-bundle: ^4
- symfony/test-pack: dev-master
- symfony/yaml: ^4
This package is auto-updated.
Last update: 2022-02-24 23:59:21 UTC
README
预订组件
将您的 PiedWeb CMS 转换成预订平台。
此组件提供完整的订单流程管理(产品、购物车、订单、支付)。
安装
通过 Packagist
# Get the Bundle
composer require piedweb/reservation-bundle
# Set basic conf:
# Copy files from install to your src folder (erase)
# Add route in `config/routes.yaml`
reservation:
resource: '@PiedWebReservationBundle/Resources/config/routes/reservation.yaml'
# Edit config/bundles.php and reorder with this in first:
PiedWeb\ReservationBundle\PiedWebReservationBundle::class => ['all' => true],
# (because now, we use app.entity_order in CMSBundle and we need to load ReservationBundle's config before)
# Config payum's gateways in `config/packages/payum.yaml` (eg :
payum:
gateways:
paypal_checkout_button:
# https://developer.paypal.com/docs/checkout/integrate/#4-test-it
factory: paypal_express_checkout
#username: ''
#password: ''
#signature: ''
#sandbox: true
使用方法
自定义跳转器最后一步(预订成功)
通过创建一个slug为step-6
的页面。仅使用主要内容。考虑将发布禁用,将创建日期设置为今天+100年。
添加新的支付方式
-
创建支付方式。见
src/PaymentMethod
的示例。 -
创建支付控制器操作。见
src/Controller/PaymentController.php
的示例。 -
在您的
templates/bundles/PiedWebReservationBundle/PaymentMethod/
HumanId
.html.twig
中创建相应的twig文件 -
编辑配置
piedweb_reservation:
...
payment_method:
- PiedWeb\ReservationBundle\PaymentMethod\PaypalCheckoutExpress
- PiedWeb\ReservationBundle\PaymentMethod\Cash
- YourNewMethodClass
待办事项
- 测试
- 添加其他支付方式(目前管理:paypal express checkout)
- 国际化和翻译测试
稍后
-
翻译
-
Orders.html.twig的分页器
-
按日期(在管理员中)过滤,并为活动产品设置默认过滤
-
一段时间后对非用户存档购物车项 => 通过命令行
-
无感知通知/记录器(待思考)可以收集所有执行的操作并通知,例如,在预订时发送邮件 https://github.com/Seldaek/monolog https://symfony.com.cn/doc/current/logging/monolog_email.html https://github.com/Syonix/log-viewer-lib => 列出要记录的操作 -- 新订单 -- 当达到最大值时
-
在productadmin中按页组织产品
使用方法
贡献者
在提交前检查编码标准
php-cs-fixer fix src --rules=@Symfony --verbose && php-cs-fixer fix src --rules='{"array_syntax": {"syntax": "short"}}' --verbose
许可
MIT(有关详细信息,请参阅LICENSE文件)