Huizhoushangpaicopyright days * City coupon two open instructions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.