Promo Code Logic
Backend
We have 2 new promotion type:
Multiplied by person
For this package will be multiplied base on how many person on that reservation. Let say we have PROMOPERSON with 100 baht. If user booking package with price 500 baht and select 6 person that voucher value will be 600 baht. Illustration will be like this: Package price 500 baht x 6 adult 3,000 You saved 600 Total Prepaid 2,400
But, we also can set amount cap (maximum) for that promo code. If we cap 400 baht the illustration will be like this: Package price 500 baht x 6 adult 3,000 You saved 400 Total Prepaid 2,600 Even selected adult is 6, maximum discount is still 400 (maximum)
Multiplied by package
For this package will be multiplied base on how many package on that reservation. Let say we have PROMOPACKAGE with 50 baht. If user booking some package with price 300 baht with 5 quantity the voucher value will be 250 baht. Illustration will be like this: Package A 300 baht x 5 1,500 You saved 250 Total Prepaid 1,250
But, we also can set amount cap (maximum) for that promo code. If we cap 200 baht the illustration will be like this: Package A 300 baht x 5 1,500 You saved 200 Total Prepaid 1,200 Even selected package is 5, maximum discount is still 200 (maximum) For case all you can eat, instead multiplied by package will be multiplied by adult similar to logic multiplied by person.