This guide explains the available Quote Guru tags and hidden input fields you can use on your Product Detail Page (PDP). These tools are designed for merchants who want more control over pricing, variants, inventory logic, bundled products, and minimum quantities.
You can add these tags directly to your Product Detail Page (PDP) template inside your Shopify theme. #
Where to add the code:
Go to Shopify Admin → Online Store → Themes → Edit Code → Open your product template file (for example main-product.liquid or product.liquid) and place the tag inside the product form.
Each tag serves a specific purpose: #
These tools are intended for merchants or developers who want advanced customization of their quote workflow.
1. qg_price (Premium Plan) #
Purpose:
Captures a custom product price for the quote from the Product Detail Page.
Use Case:
If you want to pass a custom price into the quote instead of using the default Shopify product price, you can use the qg_price tag.
This is useful when you offer special pricing for B2B customers, negotiated rates, or dynamic pricing that differs from the storefront price. Once added to your product form, the custom value will automatically be captured in the quote request.
Example:
<input name="properties[qg_price]" type="hidden" value="566.99">
2. variant-id (Pro Plan) #
Purpose:
Adds an “Add to Quote” button on the PDP page for each variant in a quick order list.
Use Case:
If you want customers to request quotes for specific variants directly from the product page, you can use the variant-id attribute.
This is especially useful for stores offering multiple size, color, or configuration options where customers need to quote individual variants. Once added, the “Add to Quote” button will work per variant inside your quick order setup.
Example:
<div class="wfq-quotes-button"
product-id="{{ product.id }}"
product-handle="{{ product.handle }}"
variant-id="{{ product.variant-id}}">
</div>
3. qg_variant (Premium Plan) #
Purpose:
Ensures a specific variant is added to the quote, regardless of the currently selected variant on the PDP.
Use Case:
If you need to force a specific variant into the quote — regardless of what the customer selects — you can use the qg_variant tag.
This is helpful for predefined bundles, fixed configurations, or scenarios where you don’t want variant switching to affect the quoted item. Once applied, only the defined variant will be added to the quote.
Example:
<input type="hidden"
data-label="{{ option.name }}"
name="properties[qg_variant]"
value='[{{ value | json }}]'>
4. qg_additional_products (Premium Plan) #
Purpose:
Adds sub-products along with the main product in a quote request.
Use Case:
If you want to automatically include related or bundled products in the same quote request, you can use the qg_additional_products tag.
This is ideal for accessory products, mandatory add-ons, spare parts, or package deals. Once configured, the additional products will be attached to the main product inside the quote automatically.
Example:
<input type="hidden"
name="properties[qg_additional_products]"
data-product-id="9605986451762"
data-product-handle="650c-micro-wheelset"
data-product-variant="49264349348146"
data-product-qty="5" />
5. qg_moq (Pro Plan) #
Purpose:
Sets a product-specific Minimum Order Quantity (MOQ) for quotations.
Use Case:
If you sell wholesale or bulk products and want to ensure customers request quotes above a certain quantity, you can use the qg_moq tag.
Once added, the minimum quantity requirement will automatically apply during the quote process, helping you avoid low-quantity inquiries that do not meet your business criteria.
If you sell wholesale or bulk products and want to ensure customers request quotes above a certain quantity, you can use the qg_moq tag. Once added, the minimum quantity will automatically apply during the quote process.
Example:
<input type=”hidden”
name=”properties[qg_moq]”
value=”{{ product.metafields.custom.moq }}”/>
Important: Always test changes in a duplicate theme before publishing. Incorrect placement of code can affect your product page layout.