Display monogram option with selected variant option

Highlighted
New Member
3 0 0
I want to display the monogram option if the product option selected is "Yes". I have tried with below code but didn’t work. How should I make it work?

{% for product_option in product.options_with_values %}
{% if product_option.selected_value == 'Yes' %}
<div class="product-custombox">
<p class="line-item-property__field">
<label for="engrave">Engrave</label>
<input required class="required" id="engrave" type="text" name="properties[Engrave]">
</p>
</div>
{%- endif -%}
{%- endfor -%}
0 Likes
Highlighted
Shopify Expert
1381 111 200

Hi @web1cay,

 

Could you please share your website URL so that I can see the actual scenario?

0 Likes
Highlighted
Highlighted

Best Custom Product Options can easily do this.

0 Likes