Question
session variables and coupons
i am considering creating a coupon offer, whereby a previous
customer can save x% on a transaction.
i am considering the following...
send an email to customer with code and link
when customer keys code into form field on link page, value (if correct) is stored as session variable, customer redirected to relevant page on site
when customer wants to add item to cart, page checks for session variable, if valid, coupon discount is applied, if not then no discount.
session variable used to check all items for potential discount.
is this a good approach ?
i appreciate the method is open to abuse if the coupon code is genetric to all, customers, but if targeted to individuals, with a time limit and once only use, i could make it very focussed.
regards
i am considering the following...
send an email to customer with code and link
when customer keys code into form field on link page, value (if correct) is stored as session variable, customer redirected to relevant page on site
when customer wants to add item to cart, page checks for session variable, if valid, coupon discount is applied, if not then no discount.
session variable used to check all items for potential discount.
is this a good approach ?
i appreciate the method is open to abuse if the coupon code is genetric to all, customers, but if targeted to individuals, with a time limit and once only use, i could make it very focussed.
regards
