Description of PC Coupon modification.
New Business requirements:
1, coupon conditions combined into 2 categories of coupons, 1 categories are certificates and another type is the ordinary coupon. A general coupon is a coupon for a promotional coupon or receipt.
At the time of settlement, the selected combination of customers is as follows: 1
1, registration voucher
2, registration voucher + General Coupon
3, Ordinary Coupon
So the production effect is:
1, registration voucher
Select
---do not use vouchers
---registration voucher
Select
2, Ordinary Coupon
Select
---do not use vouchers
---general voucher
2,
When the coupon is selected or canceled, the amount of the order payable will be changed, and the JS judgment here. has been completed
Code Description:
To modify a file:
\topc\view\payment\dopayment.html
\iteemall\i18n\topc\controller\paycenter.php
paycenter.php
Platform Coupon List
Kernel::single (' Sysuser_couponmall ')->gettreecouponlist ($paymentBill [' money ']); $paymentBill [' money '] is the amount of the settlement
Gettreecouponlist principle is to take according to the amount of the statement of the coupon to combine the conditions of coupons into 2 types of coupons, 1 is a certificate and another class is a common coupon. A general coupon is a coupon for a promotional coupon or receipt.
3, Settlement submission Event
A,checkpostpaymentdata Check the amount of money sent from the front desk, and the coupon of the data sheet does not match the situation
B, usecoupon Modify the status of the coupon.
C, went to call the bank to pay.
Huizhoushangpaicopyright days * City coupon two open instructions