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.

Creating a subtotal using gform_product_total

  1. Hi, I'm trying to figure out the best way of creating a product subtotal and was hoping for a couple of pointers.

    I have a multipage form. Most of it is fairly straightforward stuff but the product functionality my client requires falls a bit outside of what GF can manage out of the box. On one page the user selects the type of entry to an event they want (single, double, group) which determines the level of registration fee they pay. This reg fee is a product and on this page my client wants there to be a registration total. So far, so good - I can just use a product total field.

    However, on the next page my client wants to offer 3 products associated with the event. If the user chooses 1 or more products my client want this to be reflected in a merchandise subtotal field on this page. A normal product total would carry over the registration subtotal.

    Would I be right in saying that the gform_product_total filter is the best way of achieving this? If so is there a way to isolate the specific product fields that should be added up (i.e. the merchandise products) and also isolate the product total field that should be manipulated (the merchandise 'subtotal')? From what I can tell, it's possible to specify a form ID but I'm not sure how to go about manipulating parts of a particular form more specifically.

    Hope this makes sense, happy to elaborate if not! Appreciate any help on offer

    Posted 13 years ago on Monday August 1, 2011 | Permalink
  2. Hi, still a bit stuck on this. Reckon I can probably crack it once I know how to target specific fields within my forms but really not sure how to do this - gone through all the dev docs but haven't gleaned anything that might help. Any pointers re the above would be much appreciated!

    Posted 13 years ago on Tuesday August 2, 2011 | Permalink
  3. Did you figure out how to do this? I would really like to do the same thing....
    Thanks!

    Posted 12 years ago on Saturday February 25, 2012 | Permalink

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