Power Your Shopify Stores with Jotform Forms

Power Your Shopify Stores with Jotform Forms

Shopify is a highly customizable online store builder. You can now easily integrate your Jotform forms with your Shopify checkout process.

Shopify Wiki has a detailed tutorial on how to use Jotform to ask customers for additional information during checkout.

How to integrate Shopify with Jotform

Add a special tag to your custom products

You’ll begin with adding a special tag to all your products that require you to present your customization form on the cart page.

Find the tag section in the product detail page, type in your tag or click on an existing one and then click Update button. In this example, we have used ‘custom’.

Power Your Shopify Stores with Jotform Forms Image-1

Create a new snippet

You need to create a new Liquid snippet named ‘custom’.

Before you proceed, do backup your theme by downloading it on your Assets page.

Once you’ve created a backup of your theme, go to Assets then click on the Theme Editor link or tab.

On the Themes page, click on the ‘Add a new snippet’.

Power Your Shopify Stores with Jotform Forms Image-2

Type in ‘custom’ to create a custom.liquid snippet, then click on Create snippet.

Power Your Shopify Stores with Jotform Forms Image-3

Get the embed code from Jotform

At this point, you need the embed code of your Jotform that you would like to show to your customers.

In the form builder and under ‘Publish’ tab, click ‘Embed’ button, where you will find the code piece to copy.

Screenshot of the Publish Tab Clicking on Embed Button

Paste the Jotform embed code in your snippet

Copy the code, go back to the Themes page in Shopify and paste the embed code into the Liquid snippet. Don’t forget to save it.

Power Your Shopify Stores with Jotform Forms Image-4

Edit the Thank you page on Jotform

If you would like to redirect people to your Shopify checkout page, simply follow the instructions given in this guide on how to use redirections after a form is submitted.

Edit the cart.liquid template

Go to your Theme Editor page, and click on ‘cart’ under Templates to open the template cart.liquid in the online code editor.

At the top of the file, add this code:

{% assign needs_form = false %}

Then locate this code:

{% for item in cart.items %}

On the next line (after the above code), add this code:

{% if item.product.tags contains "custom" %}
{% assign needs_form = true %}
{% endif %}

Then, locate the code for your checkout button. The code will look like this:

<input id="getout" name="checkout" type="submit" value="PROCEED TO CHECKOUT" />

Replace the above code with that one:

{% if needs_form %}
{% include 'custom' %}
{% else %}
<input type="submit" id="getout" name="checkout" value="PROCEED TO CHECKOUT">
{% endif %}

Save.

The modifications we made to cart.liquid have this effect: if any item in the cart is tagged with ‘custom’ (is a to-be-customized product), then we show the jotForm form instead of the checkout button.

How do we link the customization data with the order?

Now, you must ask yourself: how will I associate the data collected on the jotForm website with my order in Shopify? Simple: include a form field in your jotForm form that asks for either the customer’s name or his or her email address. Both are required at checkout too. You’ll put 2 and 2 together that way.

Demo Store

Want to see an application of this solution in action? Visit the Jotform customization at checkout shop. This product is one that can be customized: https://cormier-larson-and-vonrueden7119.myshopify.com/products/lets-make-out-sofa.

AUTHOR
Aytekin Tank is the founder and CEO of Jotform, host of the AI Agents Podcast , and the bestselling author of Automate Your Busywork. A developer by trade but a storyteller by heart, he writes about his journey as an entrepreneur and shares advice for other startups. He loves to hear from Jotform users. You can reach Aytekin from his official website aytekintank.com.

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments: