I have made a discount code function. how can a member send this discount code to a member when purchasing a product?

Source: Internet
Author: User
I made a discount code function. how do I issue this discount code to members when they buy a product? I got a coupon code generation function in the mall background, how can I specify the discount code when adding a product? (note: There are multiple different discount codes with the same denomination). then, the member buys the product at the front-end, how can I issue a discount code?


Reply to discussion (solution)

Is it a discount code or a coupon?
Why do I need to issue a discount code? (Refer to the Amazon mode) or I understand it incorrectly.

When you add a product, several discount codes are randomly generated (several can be customized) and saved to the database.
You can click a button at the front-end to find a discount code based on the product id.
The coupon code must have a status field. it indicates that the coupon code has not been obtained, has been obtained, has not been used, and has been used... depends on your own logic.

I have a discount code and a coupon here.

Isn't there a discount table?
Bind the member id.

Sorry, I am not here recently. now I am finishing the post.

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.