Skip to content

Instantly share code, notes, and snippets.

@JulianSchnehage
JulianSchnehage / Much much simpler option selector for Shopify
Created September 10, 2021 22:54 — forked from skillmatic-co/Much much simpler option selector for Shopify
Much simpler version of Shopify's option_selection.js for separating product options into their own dropdown menus.
<form action="/cart/add" method="post">
{% if product.variants.size > 1 %}
{% if product.options[0] %}
<label for="select-one">{{ product.options[0] }}</label>
<select id="select-one" onchange="letsDoThis()">
{% for value in product.options_with_values[0].values %}
<option value="{{ value }}" {% if product.options_with_values[0].selected_value == value %}selected{% endif %}>
{{ value }}
</option>
{% endfor %}
@JulianSchnehage
JulianSchnehage / _Region Selector
Last active August 26, 2019 14:33
Region Selector
Title file