Features/Integrations

Shopify variant picker

Let visitors pick product options (size, color) and update price, image, SKU, stock and the add to cart button.

Set an element as Variant Picker with a product handle and Divhunt builds one select per option. Or design your own option buttons and selects. Variant Price, Compare Price, Variant Image, SKU and Availability elements update when the selection changes, and the nearest Add to Cart button gets the chosen variant.

How it works

  • Auto: [shopify-variant="picker"] + shopify-product-handle; skipped for products with only a default 'Title' option.
  • Manual: [shopify-variant-option="<Name>"] on a select, or buttons/radios with shopify-option-value (selected gets class active).
  • Outputs [shopify-variant="price|compare-price|image|sku|availability"].
  • First available variant is preselected; no match shows 'Unavailable' and disables the add button (shopify-sold-out).
  • Event shopify:variant:changed; window.ShopifyVariants.

When to use it

  • Product page with size and color selection

Limitations

  • Product data is fetched per handle on page load

Availability

  • Works in Designer.
  • Included in every plan.

How to use it.

  1. Select an element, Shopify panel > This is > Variant Picker
  2. Set the product handle
  3. Mark price, image and SKU elements with the variant roles

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.