HelloARI logo: vinyl signs and identity design web design«    sign design«    blog«    contact«  USE MY IMAGINATIONTM
web design and wordpress development 94114

san frnacisco web design

Gravity Forms for Ecommerce with tax and shipping options

I love Gravity Forms. It’s the best form building tool for WordPress and now it offers a new feature that allows more complex calculations between fields. Combine that with the PayPal Payments Pro and you have a really fast, simple and powerful ecommerce option for those times when a full WordPress ecommerce system/plugin is not needed. Easier to set up, easier to maintain and gets the job done.

The sample below allows for a variety of shipping prices based on order total (but you could base it on total number of items too). It also adds sales tax – but only if your shipping address is set to California. Of course you could set it to any state. Note that the shipping field disappears when selecting a different state. The key is to set up a “subtotal” field and put your calculations in there.

There are some notes in this form – let me know if you have further questions about how this is set up in the comments below and I’ll do my best to help explain the options. See screenshots at the end of this post.

UPDATE 8/2020: I found this bit of free code from GravityWiz that gives you a ‘subtotal‘ field – I tried it and it works. it is a simpler solution that saves lots of work if you need to edit your form products with any regularity or if you have lots of products.

see also: https://docs.gravityforms.com/gravity-forms-pricing-adding-tax

UPDATE 4/2014: I have had users ask me for a copy of this form. Here’s a XML export of the form – should be ready to import into your Gravity Forms. Let me know if it helps.

 Gravity forms admin screenshots

greavity forms shipping subtotal gravity forms gravity forms california sales tax

 

2020 update: screenshots of  GravityWiz ‘subtotal‘ field in a calculation field type. With conditional fields for only applying to California. 

 

This entry was posted in WordPress, WordPress WooCommerce and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

9 Comments

  1. Posted April 20, 2013 at 9:37 pm | Permalink

    Hi – I’d love to know how you’ve done the shipping field !!
    Nice form

  2. Posted May 22, 2013 at 3:04 pm | Permalink

    This is exactly what we are looking for – how did you get the form to calculate a variation in the shipping cost based on the cart subtotal!??? can you send details??

    • Posted August 26, 2013 at 12:24 am | Permalink

      see screenshot for how to make a subtotal – or the update i just added for a shortcut. i’m not sure if this is really documented on the GF website or not.

  3. Posted June 13, 2013 at 6:13 pm | Permalink

    Do you have screen shots/instructions on how I can get the tax to work? I can’t figure it out to at all.

    • Posted August 26, 2013 at 12:23 am | Permalink

      I just added some screenshots.

  4. Posted January 7, 2014 at 6:51 am | Permalink

    Thanks for the screenshots – very helpful.

    I think I just spend hours doing something and there’s a faster way – THIS way!
    Oh well – never mind 😉

  5. Posted April 4, 2014 at 9:06 am | Permalink

    Would you be willing to export and send me a copy of this form? I’ll gladly send you a Paypal donation.

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*
*

© 1996 - 2023
contact  |  links  |  rss