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.
- Select an element, Shopify panel > This is > Variant Picker
- Set the product handle
- Mark price, image and SKU elements with the variant roles
Related features.
Shopify integration (headless storefront)
Connect a Shopify store with Storefront API tokens and design product listings and pages in Divhunt.
Shopify cart and checkout
A client-side cart with add, quantity and remove buttons that hands off to Shopify checkout.
Shopify cart
A working cart built from your own elements: add, change quantity, remove, count and totals.
Shopify products data source
List Shopify products in any layout with filters for collection, price, vendor, type, tag and options.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→