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.

Is there a way to use the total quantity of all products in the form as a value

  1. I am trying to create a custom shipping field that displays the total shipping
    the shipping amount should be calculate in a hidden filed and is determined by the quantity of items
    for example: shipping cost up to 3 items is x and shipping cost for up to 6 items is 2x and so oo do this I need the value of the total quantity instead of adding each product :qty
    Is there away to do this without writing a code?
    Thanks

    Posted 7 years ago on Friday March 15, 2013 | Permalink
  2. You would need code to accomplish this. Gravity Forms is not designed as a commerce or cart solution. You would need to calculate your shipping costs separately with some code and assigning it to your hidden form field, possibly at the time of gform_pre_submission.

    http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter

    Posted 7 years ago on Sunday March 17, 2013 | Permalink