Use of a discount card #579
f14m07
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks to Franky who helped me a lot with this project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are a sailing association. Boat owners offer places on their boats during their outings. The members-only vogue-et-reve.fr website makes it all possible. The association sells a card containing 20 coupons and acts as a discount card. Members can then pay for their sailing with this card rather than their credit card. A half-day outing then costs €10 instead of €15. A full-day trip costs €20 instead of €25.
Anyone wishing to purchase this card must register for card membership. Once they have paid for their card, they can use it immediately.
Two personalised fields have been created as part of the membership process. The first contains the number of coupons, initially 20, and the second the list of outings when the card will be used.
We also need to prepare the templates for the emails that are sent out when the booking is made, which may need to contain the breakdown.
The booking form is dynamic depending on whether the person has a card with enough coupons available.
A page also needs to be created to allow members to track their tally.
We therefore need a function to update the number of coupons and the history of card use, and another if the booking is cancelled.
Here are the two functions:
Beta Was this translation helpful? Give feedback.
All reactions