Add a text box on a product variant

MaxCosta
Explorer
107 0 40

Hello everyone,

I have done a lot of testing but can't do what I want. All apps offer this paid option so I need to do it by code. I would like to add a text box on one variant only. For the moment, I have that :

 

<p id="personalization" class="line-item-property__field" style="{% if current_variant.title != "Personalized" %}display:none;{% endif %}">
<label for="Your specifications">Your specifications (names, words, initials...) for the Personalized straps only !</label>
<input required id="Your specifications" style="width:220px; max-width:100%;" type="text" name="properties[Your specifications]">
</p>

 

Anyone have any idea how I can do this?

Link of my shop : https://v4gej6xyeggxy72u-47455862950.shopifypreview.com

 

Thank you in advance !

 

 

 

 

 

0 Likes
MaxCosta
Explorer
107 0 40

Please everyone .. There isn't a Shopify Expert or Shopify Partner here? Or has no one had the same problem before?

0 Likes
MaxCosta
Explorer
107 0 40

It's really crazy...

0 Likes