[Debut Theme] Personalized Product, where to add code?

Solved
kose4ka105
Tourist
3 0 1

I want to add this code to Product template:

 

<p class="line-item-property__field"> <label for="baby-name">Baby name</label> <input required class="required" id="baby-name" type="text" name="properties[Baby name]"> </p>

 

But dont know where to add. please help me. :( I will have personalized products (personalized pacifier clip) in my shop and before adding product to cart, people will write baby name in box, so I will know what name I need to do.

 

0 Likes

This is an accepted solution.

Hello 

 

<div class="product-form__item product-form__item--submit{% if section.settings.enable_payment_button %} product-form__item--payment-button{% endif %}{% if product.has_only_default_variant %} product-form__item--no-variants{% endif %}">
              <button type="submit" name="add" {% unless current_variant.available %}disabled="disabled"{% endunless %} class="btn product-form__cart-submit{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}" data-add-to-cart>
                <span data-add-to-cart-text>
                  {% unless current_variant.available %}
                    {{ 'products.product.sold_out' | t }}
                  {% else %}
                    {{ 'products.product.add_to_cart' | t }}
                  {% endunless %}
                </span>
              </button>
              {% if section.settings.enable_payment_button %}
                {{ form | payment_button }}
              {% endif %}
            </div>
          {% endform %}
        </div>

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
kose4ka105
Tourist
3 0 1
Thank you very much! I will try tomorrow!
0 Likes
kose4ka105
Tourist
3 0 1

Снимок экрана 2019-06-11 в 11.30.29.png

Thank you very much!!!

Amber131
New Member
1 0 0

Which line does the code need to be added at? I must be over looking it.

0 Likes
mirandageezy
New Member
2 0 0

I am also lost on trying to paste this code.  I do not see the code copied up there in the debut theme.  Mine looks different and when I added the code and tried to preview, nothing changed.  Help please!

0 Likes