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.

Total not updating correctly with product with calculated price

  1. Hi guys,
    I have two products that each have calculated prices based on several options. This calculation is working properly and the price displayed for each product is accurate. What's not accurate, however, is the total displayed on the form. I can't quite figure out what logic it's using to update the total either. All the products with normal prices are updating the total correctly.

    If you contact me via email I can send you the form XML or if you need to see it on my site I can give you access. Thanks!!

    Posted 9 years ago on Friday June 8, 2012 | Permalink
  2. Can someone chime in here? It's been several days.

    Here's the calculation behind the price:
    ({Alcohol::16} + {Brand: :18} + {Brand::19} + {Brand::20}) * {Single or Double::21}

    Each of the Merge Tags above are taken from drop down product options. The price that is outputted is correct. However the function gformCalculateProductPrice(formId, _gformPriceFields[formId][i]) which is used to calculate the total returns a number that is completely different.

    Posted 9 years ago on Tuesday June 12, 2012 | Permalink
  3. David Peralty

    What price are you getting? Can you send me the XML for your form at please and I'll take a look.

    Posted 9 years ago on Tuesday June 12, 2012 | Permalink
  4. There are two products. One product's correct price is 12 but outputs 25. Changing some options and it's supposed to be 24 but outputs 38. Really weird.

    Another product's correct price is always half of what is outputted.

    I'm emailing you the XML now, thanks!

    Posted 9 years ago on Tuesday June 12, 2012 | Permalink
  5. We resolved this issue. For those that have the same problem, I was using a calculated price based on the values of several Price Option Fields. These options were used to calculate the price but were then applied as standard modifiers to the price once the quantity was changed and the price was added to the total.

    To fix this issue I created a hidden dummy product and associated the Price Option Fields with this dummy product. Their values are still used to determine the price of the actual product since they are referenced in the price calculation, but their modifications are carried out on an empty product who's quantity is always 0.

    Posted 9 years ago on Wednesday June 13, 2012 | Permalink

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