Dropdown
Show product options to the user
The product options element shows a set of options available for the parent product card. When the user selects the options, Looop updates the price, the compare price, and the hero picture. You can design product options using a dropdown or radio button.
Setup
We will create a template for product options. This template will be used to create product options for each product card.
- Create a div block and give it the following Attribute:
- Inside the div block, create a text block and give it the following Attribute:
3.. Inside the div block, create a dropdown element and give it the following Attribute:
What will be updated?
On page load for each Shopify product option, we will duplicate the product-option-wrapper
and update the product-option-name
and product-option-select
with the product option name and values.
The Options Dropdown element should be inside a Webflow Form element.