Hi there! I’m trying to edit the Dawn theme code to add a functionality to the variant color options, so that when a color option ‘Custom’ exists and is selected by the customer, a small input text box will show beneath the button and the customer can write in their color selection.
I have been testing some liquid code in the ‘product-variant-picker.liquid’ theme file (shown below) and I’m trying to work out what I have wrong. I’ve been troubleshooting but can’t get the html to render correctly on the product page when the ‘Custom’ option is selected. Any advice is much appreciated!
{% for variant in product.variants %}
{% if variant.title == ‘Custom’ and variant.selected %}
Custom color