I have a product order form (on localhost at the moment so I can't post a url.) The customer can pay in advance (PayPal or cheque) or buy on 2 weeks credit. If they pay in advance they get 2 free products for every 10 they order. If they buy on credit they get 1 free product for every 10 they order.
I need the form to calculate and display how many free products they're getting. For example:
Order 27 on credit = 27 + 2 free
Order 27 paid in advance = 27 + 4 free
Two key functions:
1. If (in advance/on credit) then ... (number) free
2. Must round down to nearest integer (at the moment 27 on credit would round up to 3 free - it should be 2 free)
I have searched the forum and I can't find any examples where this is being done. Does anyone know how to do this - or a suggested workaround?
If it is not possible with the out-of-the-box GF, can anyone suggest what kind of source/cost I could expect to get this custom coded?
Thanks!