Add Gift message in cart

Solved
ThomasHg8866
Excursionist
25 2 0

Hi, 

I want to add the possibility to customers to add a message to the order for example if is a gift.

So I add the note option include with the theme, but I want to display the text-area when the customer checked the checked box 

Could you help me ?

Here is the code of the checkbox and textarea : 

Capture d’écran 2021-04-27 à 18.05.37.png

{%- if section.settings.cart_notes_enable -%}
<div class="grid__item medium-up--one-half cart-note">
<input for="CartSpecialInstructions" type="checkbox">{{ 'cart.general.note' | t }}
<textarea name="note" id="CartSpecialInstructions" class="cart-note__input" data-cart-notes>{{ cart.note }}</textarea>
</div>
{%- endif -%}

0 Likes
UmairA
Shopify Partner
872 85 173

Hey there @ThomasHg8866,

Can you please include the URL of your store? I'll take a look for you before I can offer any solution/guidance. Thanks

Need help with theme customization or to add a new feature? Hire me
Email: umairabbascs@gmail.com
WhatsApp: WhatsApp
Theme customization | Custom coding | Store Setup | SEO Audit | Speed Optimization | Tweaks & Bugs fixing
0 Likes
ThomasHg8866
Excursionist
25 2 0

This is an accepted solution.

sure the URL is : https://boutiquedealertest.myshopify.com/

and the password for access is "test"

0 Likes