PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

If/then calculation with rounddown capability

  1. Shaun
    Member

    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!

    Posted 11 years ago on Tuesday June 11, 2013 | Permalink
  2. Handling via priority support.

    Posted 11 years ago on Friday June 14, 2013 | Permalink

This topic has been resolved and has been closed to new replies.