Using coupon codes and total field is 3X what it should be

By: Michelle Batsford | Asked: 11/08/2024
ForumsCategory: General questionsUsing coupon codes and total field is 3X what it should be
Michelle Batsford asked 4 days ago
I have a fairly simple form and I have added coupon lookup and discount fields. They are pulling the correct coupon and discount amounts. However, the number field for the total is taking the total from the "total field" and multiplying it by 3. I'm using just a simple dollar amount for the discount so the formula for the number field total is [x]-[y] where x is the total field and y is the discount field.  I have product fields and user defined amounts (for donation) and they are all multiplied by 3. Any idea where the glitch could be?
Attachments
Bobby Clapp replied 2 days ago

It's hard to say without more info. The subtotal field has the correct math originally. There is something wrong with the total field math. The sub total should be the total minus the discount amount where the sub total is the correct price before the discount in the total in the images you shared.

1 Answers
Victor Font answered 4 days ago
It's impossible to say what could be wrong. You showed the formula for the total field but showing the form does nothing to help us diagnose what could be wrong. There's obviously something with how things are being calculated. Your issue is likely going to take some hands-on troubleshooting. You need to look at jQuery, check to make sure you're using the right fields in the formulas, and look for errors in your console.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right