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.

Discounts and Negative totals

  1. I've set up discounts in my form with negative values. The problem is when the discount is greater than the cost of the product, it results in a negative balance. How do I round keep the balance from dropping below zero?

    Posted 5 years ago on Thursday July 11, 2013 | Permalink
  2. David Peralty
    Administrator

    I guess I would first ask why you are giving discounts that can cause the balance to drop to zero or below?

    Are you using conditional logic to show the discount?

    Posted 5 years ago on Thursday July 11, 2013 | Permalink
  3. One of the discounts is $5 off. The cheapest product is $3, so hypothetically a customer could buy the $3 product using the $5 coupon and end up with a -$2 total. I am using conditional logic to show the discount. Each discount is a product with a negative value, and they only appear if the correct discount code is applied.

    Posted 5 years ago on Thursday July 11, 2013 | Permalink
  4. David Peralty
    Administrator

    Hmm, I can see that would be an issue. What would you like to have happen instead?

    Posted 5 years ago on Thursday July 11, 2013 | Permalink
  5. Either the price should be limited to $0 (so any total that is negative is rounded up to 0), or the coupon should only work if the total is greater than the value of the discount. I keep trying to add a condition that says the total must be greater than $5 for the $5 discount to apply, but for some reason the Total field is not an option...

    Here's the form address for reference: http://websitetest.us/order/

    Posted 5 years ago on Thursday July 11, 2013 | Permalink
  6. David Peralty
    Administrator

    No, you can't do any comparison on the total field. I'm going to ask our developers regarding best practices in this situation.

    Posted 5 years ago on Thursday July 11, 2013 | Permalink
  7. You should be able to use a calculated number field here that adds up all of your product fields, so as they become selected the number field tallies alongside and then you can use conditional logic based on that number field.

    Posted 5 years ago on Friday July 12, 2013 | Permalink

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