Frameworks and builders
Shopify
Add a Lazyform form to a Shopify store with a Custom Liquid section, for quotes, wholesale requests or custom orders.
Shopify's built-in contact form only emails the store's address and can't send anywhere else. For quote requests, wholesale applications, custom orders or anything you want in Slack, Telegram or a spreadsheet, add a Lazyform form with a Custom Liquid section.
Before you start
Get an access key: type your email on the homepage for an instant key, or sign in and create a form. You'll paste it where you see YOUR_ACCESS_KEY (keys start with lf_).
Add the form with the theme editor
- In Shopify admin, go to Online Store, then Themes, and click Customize on your theme.
- Open the page or template where the form should appear (for example a page template for "Wholesale").
- Click Add section (or Add block) and choose Custom Liquid.
- Paste the code below and replace
YOUR_ACCESS_KEY. - Save, then send a test message from your live store.
<form action="https://lazyform-api.xvelopers.com/submit" method="POST" class="lazyform page-width">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="hidden" name="subject" value="New request from {{ shop.name }}">
<input type="hidden" name="redirect" value="{{ shop.url }}/pages/thank-you">
<input type="hidden" name="page" value="{{ request.path }}">
<div class="field">
<input class="field__input" type="text" name="name" placeholder="Name" required>
</div>
<div class="field">
<input class="field__input" type="email" name="email" placeholder="Email" required>
</div>
<div class="field">
<textarea class="text-area field__input" name="message" placeholder="What can we help with?" required></textarea>
</div>
<input type="checkbox" name="botcheck" class="hidden" style="display:none">
<button type="submit" class="button">Send</button>
</form>Create a page with the handle thank-you in Online Store, then Pages, or change the redirect URL. The field, field__input and button classes match Shopify's Dawn-based themes; on other themes, adjust them or add your own styles.
Add the form for a specific product
Inside a product template, Liquid can tell you which product the visitor was looking at. Add these hidden fields to the form above:
<input type="hidden" name="product" value="{{ product.title }}">
<input type="hidden" name="product_url" value="{{ shop.url }}{{ product.url }}">Tips
- Theme code instead. You can also paste the form into a section or snippet file under Edit code, then render it with
{% render 'lazyform' %}. - Keep the store contact form. Lazyform doesn't replace Shopify's own contact form or checkout. Use it for extra forms that need to go somewhere else.
- Allowed websites. If you turn this on, add both your custom domain and your
myshopify.comdomain.