"Need help with dynamically passing variant SKU to Zoho form URL in Shopify"

Topic summary

A developer is attempting to integrate a Zoho form for handling RFQs (Requests for Quotations) on Shopify product pages but encounters issues with dynamically passing variant SKUs to the form URL.

Current Implementation:

  • Using Liquid and JavaScript to construct the form URL
  • Successfully embedded the form on product pages
  • Encoding product name via Liquid

The Problem:
The SKU parameter is not being correctly passed to the Zoho form URL, despite attempts to retrieve and append it.

Code Approach:

  • Assigns the base Zoho form URL
  • Retrieves SKU from product.variants.first.sku
  • URL-encodes the product title
  • Constructs final URL with SKU and Description parameters
  • Creates a button link with the constructed URL

Status:
The issue remains unresolved. The developer suspects the problem lies in either the SKU retrieval method or the URL update mechanism. No responses or solutions have been provided yet.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

I’m working on integrating a Zoho form into my Shopify store to handle requests for quotations (RFQs). I’ve set up the form URL and have successfully embedded it into my product pages. However, I’m facing an issue with dynamically passing the SKU of the selected variant to the form URL.

Currently, I’m using Liquid and JavaScript to achieve this. Here’s the gist of what I’ve done:

  1. I’ve defined the Zoho form URL and encoded the product name using Liquid

Despite these efforts, the SKU is not being passed correctly to the form URL. I suspect there might be an issue with how I’m retrieving the SKU or updating the URL.

Here’s the code snippet I’m using:

{% assign form_url = “https://creatorapp.zohopublic.com/cs_delight/delight-rfq-management/form-embed/Request_For_Quotations/h53u3fJVqPaTNXkCf7XOdnw1FOmgjGhMTP7pQEnTftTDj6kHFg01rZWs2OeShGWtMQzWmBrTEgraH8B3mVN8EgRO8OXjj6m9PSqb” %}

{% assign sku = product.variants.first.sku %}

{% assign name = product.title | url_encode %}

{% assign form_url_with_parameters = form_url | append: “?SKU=” | append: sku | append: “&Description=” | append: name %}

Request For Quote