Add Form to Product Page
Adding forms to product pages allows customers to inquire about products, request customizations, or submit pre-order information. This guide shows you how to add forms specifically to product pages.
Why Add Forms to Product Pages?
Section titled “Why Add Forms to Product Pages?”| Use Case | Benefit |
|---|---|
| Product Inquiries | Answer customer questions before purchase |
| Customization Requests | Collect custom order details |
| Pre-Orders | Gather information for upcoming products |
| Warranty Registration | Register products after purchase |
| Product Reviews | Collect feedback on specific products |
| Bulk Order Requests | Handle wholesale inquiries |
Method 1: Theme Editor (Easiest)
Section titled “Method 1: Theme Editor (Easiest)”Step 1: Open Theme Editor
Section titled “Step 1: Open Theme Editor”- Go to Online Store > Themes
- Click Customize on your theme
Step 2: Navigate to Product Page
Section titled “Step 2: Navigate to Product Page”- Use the page selector at the top
- Choose Products > Select a product
- Or select “Default product” for all products
Step 3: Add Form Block
Section titled “Step 3: Add Form Block”- Click on the product section or a block within it
- Click Add block
- Find Qivra Form Builder under Apps
- Select it to add to your product page
Step 4: Configure the Form
Section titled “Step 4: Configure the Form”- In the block settings, select your form
- Position the form where desired
- Adjust layout settings
- Save changes
Applying to All Products
Section titled “Applying to All Products”To show the form on all product pages:
- Edit “Default product” template
- Add the form block
- It will appear on all products using this template
Method 2: Product Template Edit
Section titled “Method 2: Product Template Edit”For more control, edit the product template directly.
Step 1: Edit Theme Code
Section titled “Step 1: Edit Theme Code”- Go to Online Store > Themes
- Click … > Edit code
- Find
sections/main-product.liquidor similar
Step 2: Add Embed Code
Section titled “Step 2: Add Embed Code”Insert where you want the form:
<div class="product-form-section"> <h3>Have Questions?</h3> {% render 'qivra-form-builder', form_id: 'YOUR_FORM_ID' %}</div>Step 3: Save and Test
Section titled “Step 3: Save and Test”- Save the file
- Visit a product page to verify
Method 3: Product-Specific Forms
Section titled “Method 3: Product-Specific Forms”Show different forms for different products.
Using Product Tags
Section titled “Using Product Tags”{%- if product.tags contains 'customizable' -%} {% render 'qivra-form-builder', form_id: 'CUSTOMIZATION_FORM' %}{%- elsif product.tags contains 'preorder' -%} {% render 'qivra-form-builder', form_id: 'PREORDER_FORM' %}{%- endif -%}Using Product Type
Section titled “Using Product Type”{%- case product.type -%} {%- when 'Electronics' -%} {% render 'qivra-form-builder', form_id: 'ELECTRONICS_FORM' %} {%- when 'Clothing' -%} {% render 'qivra-form-builder', form_id: 'CLOTHING_FORM' %}{%- endcase -%}Using Metafields
Section titled “Using Metafields”{%- if product.metafields.custom.show_form == true -%} {% render 'qivra-form-builder', form_id: product.metafields.custom.form_id %}{%- endif -%}Method 4: Tabbed Forms
Section titled “Method 4: Tabbed Forms”Add forms in product page tabs.
Creating a Tab
Section titled “Creating a Tab”- Edit your product template
- Add tab structure:
<div class="product-tabs"> <div class="tab-buttons"> <button class="tab-btn active" data-tab="description">Description</button> <button class="tab-btn" data-tab="questions">Ask a Question</button> </div>
<div class="tab-content"> <div id="description" class="tab-panel active"> {{ product.description }} </div> <div id="questions" class="tab-panel"> {% render 'qivra-form-builder', form_id: 'PRODUCT_INQUIRY_FORM' %} </div> </div></div>Method 5: Floating Button
Section titled “Method 5: Floating Button”Add a floating “Ask Question” button.
Setup in Form Settings
Section titled “Setup in Form Settings”- Open your form
- Set Trigger Type to BUTTON
- Set Button Position to Floating
- Set button text to “Ask a Question”
Result
Section titled “Result”- Floating button appears on product pages
- Clicking opens form in popup
- Doesn’t interfere with product content
Product Selector Field
Section titled “Product Selector Field”When creating forms for product pages, use the Product Selector field.
What It Does
Section titled “What It Does”- Shows a searchable product dropdown
- Includes product images
- Pre-selects current product (optional)
Setting Up
Section titled “Setting Up”- In Form Builder, click Add Elements
- Select Product Selector
- Configure settings:
| Setting | Description |
|---|---|
| Auto-select current product | Pre-fill with product on page |
| Allow multiple | Select multiple products |
| Show images | Display product thumbnails |
Auto-Select Current Product
Section titled “Auto-Select Current Product”When enabled:
- Form automatically selects the product customer is viewing
- Customer doesn’t need to search
- Submission includes product context
Form Placement Best Practices
Section titled “Form Placement Best Practices”Recommended Positions
Section titled “Recommended Positions”| Position | Pros | Cons |
|---|---|---|
| Below description | Natural flow, high visibility | Pushes other content down |
| In accordion/tab | Clean layout, optional | Extra click to access |
| Sidebar | Doesn’t disrupt main content | May be missed on mobile |
| Floating button | Always accessible, no space used | Popup may annoy some users |
- Above the Add to Cart button (hurts conversion)
- Replacing product information
- Large forms that push content far down
Styling Product Page Forms
Section titled “Styling Product Page Forms”Match Product Page Style
Section titled “Match Product Page Style”.product-form-section { margin-top: 30px; padding: 20px; background: #f9f9f9; border-radius: 8px;}
.product-form-section h3 { margin-bottom: 15px;}Compact Style
Section titled “Compact Style”For forms in limited space:
.product-form-compact .form-field { margin-bottom: 10px;}
.product-form-compact .submit-button { width: 100%;}Tracking Product Form Performance
Section titled “Tracking Product Form Performance”What to Track
Section titled “What to Track”| Metric | Description |
|---|---|
| Submission rate | % of visitors who submit |
| By product | Which products get most inquiries |
| Conversion | Inquiries that lead to sales |
Using Submission Data
Section titled “Using Submission Data”- Identify products with common questions
- Update product descriptions to address FAQs
- Train support team on common issues
Troubleshooting
Section titled “Troubleshooting”Form Not Showing
Section titled “Form Not Showing”- Check if form is enabled
- Verify correct placement in template
- Clear cache and test
Product Not Auto-Selecting
Section titled “Product Not Auto-Selecting”- Enable “Auto-select current product” in field settings
- Ensure Product Selector field is added
- Check for JavaScript errors
Mobile Issues
Section titled “Mobile Issues”- Test on actual mobile devices
- Ensure form is responsive
- Consider button trigger for mobile