how to integrate Gravity Forms with WooCommerce

Integrating Gravity Forms With WooCommerce: Take Your eCommerce Store to the Next Level

Written by Casey Burridge

Last updated:

Categories Gravity Forms

Did you know that retail eCommerce sales in the US are forecast to account for 23.6% of all sales by 2025?

It’s no secret that the future of shopping is online. And it’s for that reason that eCommerce platforms such as WooCommerce have been growing steadily each year. 

In this post, we’ll show you how to integrate WooCommerce with Gravity Forms. Bolstering your online store with a Gravity Forms WooCommerce integration allows you to build advanced product selection forms, improve the user experience, and boost your revenue 🛒😎

What Is WooCommerce?

WooCommerce is a WordPress plugin created by Automattic that allows you to turn your website into an online store. WooCommerce takes the WordPress system and transforms it into a powerful and flexible eCommerce solution.

In fact, WooCommerce is the single most popular eCommerce solution for website owners, powering over 25% of the top 1 million eCommerce websites!

Does Gravity Forms Work With WooCommerce? 

In short, yes – Gravity Forms works with WooCommerce! As the most powerful and flexible form plugin for WordPress, many site owners choose to integrate Gravity Forms with their WooCommerce stores.

Connecting Gravity Forms to WooCommerce requires you to install one or more plugins, but don’t worry, this guide will cover everything you need to know!

Why Use Gravity Forms With WooCommerce

Gravity Forms allows you to build versatile web forms using an intuitive drag and drop builder. Gravity Forms gives you a range of field types to choose from, as well as a range of advanced features such as conditional logic.

Integrating Gravity Forms with your WooCommerce store allows you to add custom pricing to your products, create versatile product forms, add new products to your store from the front end, and much more! 

Here are some other reasons why you may want to set up a Gravity Forms WooCommerce integration:

  • Fundraising/donations: Are you building an online store to raise money for your charity? Gravity Forms can help you accept online donations through your website.
  • Promoting events: If your organization specializes in organizing and promoting events, Gravity Forms can help you register participants for events and sell tickets through your website.
  • Trips and excursions: If you need users to fill out a sign-up form before making a payment, Gravity Forms is the perfect solution.
  • Online profile registrations: Do you run an online directory or membership website? You can use Gravity Forms to register new users on your website after they make a payment.

If you require a more advanced form filling process for your WooCommerce store, Gravity Forms is the ideal solution.

When NOT to Use Gravity Forms and WooCommerce

Many people don’t know this, but Gravity Forms itself can function as an eCommerce solution! That’s right, you don’t need WooCommerce to set up an online store, simply install Gravity Forms, along with one of their many payment add-ons, and you’re good to go!

Of course, WooCommerce is a more “complete” solution in that it offers a wealth of powerful features and extensions. However, if you’re only planning to sell a couple of small products, Gravity Forms may be a better fit.

And if you’re planning to build a classifieds website or an online community marketplace where users can list items for sale, Gravity Forms combined with GravityView is the perfect solution. 

GravityView is an add-on for Gravity Forms that allows you to display form entries on the front end of your website. After collecting product listings using Gravity Forms, you can display them in a searchable ‘directory’ style layout, or create your own layout using HTML and CSS.

A directory listing displaying an iPhone for sale.

Now that you know when it’s best to use Gravity Forms with WooCommerce, let’s take a look at how to configure a Gravity Forms WooCommerce integration.

Connecting Gravity Forms to WooCommerce

The powerful Gravity Forms Product Add-ons plugin allows you to build advanced product configuration forms and link them to any of your products in WooCommerce! This lets you leverage powerful Gravity Forms features such as conditional logic, custom pricing, and user inputs.

After integrating Gravity Forms with WooCommerce, you’ll have the following features at your disposal:

  • Use conditional logic on the submit button 
  • Control how prices are displayed
  • Conditional pricing (more on this below)
  • Support for over 25 different Gravity Forms field types including File Uploads, Checkboxes and Multi Selects
  • Create as many forms as you want and link them to different products
  • Create multi-page product forms

The Gravity Forms Product Add-ons plugin is great if you need a way to capture more detailed information from your customers. For example, if you sell jewelry and offer custom engraving, you may need a way for customers to supply the specific text that they want to be engraved.

Alternatively, if you sell custom-built computers, you may need a way for customers to specify which parts they want.

Custom computer product page

And if you run a charity or NGO, you may want to allow users to donate a custom amount to your cause instead of a defined amount that you set in advance. 

Gravity forms donation form

All of this is possible by integrating Gravity Forms and WooCommerce.

Adding Multi-Page Product Forms to WooCommerce

The Gravity Forms Product Add-ons plugin also supports multi-page forms. This is helpful if your forms contain a lot of fields and you want to break them up into multiple sections.

Multi-page forms display less content at a time which means they also load faster and don’t take up as much space on the page.

To turn a regular form into a multi-page form in Gravity Forms, all you need to do is use the drag and drop editor to add a Page field where you want to insert a page break. You can find the Page field under the Gravity Forms Standard Fields tab.

The Gravity Forms 'Page' field

After adding a Page field to your form, Gravity Forms will also insert breaks for the Start paging, and End paging, reminding you where your form starts and ends.

Gravity Forms form editor

Multi-page forms allow you to break up long forms into more manageable sections, thereby improving the user experience.

Can You Add a Gravity Form to the WooCommerce Checkout?

The checkout process is a crucial step in the buyer journey. It’s the final step the user takes before confirming their purchase. Having a long and confusing checkout process can cause potential buyers to abandon their cart in frustration. In fact, research shows that over 63% of eCommerce shopping carts are abandoned!

While the Gravity Forms WooCommerce Add-ons plugin allows you to add Gravity Forms to your product pages, it does not allow you to replace the WooCommerce checkout form.

However, there are ways to customize the default WooCommerce checkout form. For example, the Checkout Field Manager add-on allows you to collect additional user information and customize the checkout process based on user role. 

How to Create WooCommerce Products With Gravity Forms

Using the Gravity Forms Advanced Post Creation Add-On, you can use Gravity Forms to create new products for your WooCommerce online store. The Advanced Post Creation Add-On comes with the Gravity Forms Elite license.

To install the add-on, hover over Forms in your WordPress Admin menu and click on Manage Add-Ons.

Gravity Forms Advanced Post Creation Add-On

Now, scroll down to the Advanced Post Creation Add-On and click Install. Once the add-on has finished installing, don’t forget to click Activate.

1. Create a Gravity Forms WooCommerce Product Form

After installing the add-on, the first step is to build a product form that captures all the necessary information to create a new product in WooCommerce. At minimum, your form will need to have the following fields:

  • Product Title 
  • Product Description 
  • Product Category 
  • Regular Price
  • Product Image
A form with the following field: product title, product description, price, product image and product category

After creating your product form, embed it on a page or post using the Gravity Forms embed shortcode or the Gravity Forms Gutenberg block.

Next, you’ll need to configure a Post Creation feed.

2. Configure the Post Creation Feed 

To set up a new Post Creation feed, go to the Form Settings page, select the Post Creation tab and click Add New.

Next, give your feed a name and set the “Type” to “Product”. Now scroll down to the “Post Content” section. Here you can map the Product Title, Product Description and Featured Image fields using Gravity Forms merge tags.

Mapping the title, content and featured image

The remaining WooCommerce product fields are custom fields, so you’ll need to map them manually. You can do this by adding them one-by-one under where it says “Custom Fields”.

Mapping custom fields

The final step is to set the Product Type, Category, and Tags. When you’re done, click Save Settings.

3. Start Adding Your WooCommerce Products One by One

After configuring the Post Creation feed, you can open your form on the front end and start adding new WooCommerce products to your store.

Simply fill in the product information, and click “Submit”. The Post Creation feed will then run automatically, creating a brand new product for you inside WooCommerce!

Import Existing WooCommerce Products to Gravity Forms

Along with being able to add new products to WooCommerce using Gravity Forms, you can also import existing products from a CSV file. However, for this to work, you’ll need the Gravity Forms Import Entries plugin.

Import Entries allows you to import form entries from a CSV file to Gravity Forms. This is helpful if you need to migrate your form data or mass update existing entries. 

Import Entries also allows you to mass import WooCommerce products into Gravity Forms. You can do this by importing products from a CSV file to a form that is already linked to a Post Creation feed.

Gravity Forms WooCommerce Pricing

After configuring your Gravity Forms WooCommerce integration, you’ll be able to take full control of your product pricing.

Gravity Forms Product Pricing Fields

The Gravity Forms Product Add-ons plugin allows you to use the following Gravity Forms Product Pricing fields on your product forms. 

  • Product
    The Product field allows you to display prices and product options. Supported field types include Drop Down, Checkboxes, and Radio buttons.
  • Quantity
    The Quantity field allows you to specify the quantity of a certain product you want to purchase.
  • Shipping
    The Shipping field allows you to add a shipping fee to the cost of an order.
  • Total
    And finally, the Total field displays the total order cost. The total will dynamically update as the user selects different product variations and/or shipping rates.

📝 The Gravity Forms Product field also allows you to perform product calculations. However, this is not supported in the WooCommerce integration.

WooCommerce Conditional Pricing

Using the Gravity Forms Conditional Pricing Add-On by GravityWiz, you can add multiple pricing levels for individual products based on the quantity ordered. This is helpful for adding discounts to your products using Gravity Forms.

Here’s an example of a pricing condition:

If a user orders less than 4 of this product, charge them $20 per product. However, if they order more than 4, charge them $15 per product.

Gravity Forms conditional pricing

With the Conditional Pricing add-on, you can create as many different pricing levels as you want!

Configure Your Gravity Forms WooCommerce Integration Now!

WooCommerce is a plugin for WordPress that enables you to turn your website into a fully functioning eCommerce store! WooCommerce comes packed with powerful features allowing you to sell both physical and digital products with ease.

In this post, we showed you how to integrate your WooCommerce site with Gravity Forms, the most powerful form plugin for WordPress. A Gravity Forms WooCommerce integration allows you to:

  • Add custom pricing to your products 
  • Create versatile product forms 
  • Add new products to your store from the front end 
  • …And much more! 

If you found this article helpful, subscribe to our email list below so we can notify you when we publish new content! 🙌👇

Join Our Newsletter!📧🙌

✔️ New blog posts straight to your inbox

✔️ Be the first to hear about new updates and releases