All things Shopify and commerce
Hello everyone,
I added two optional checkboxes in my cart drawer for a blank gift card or with a message.
When the blank card option is checked, i want the cart.note to be = "Blank card" and when the message option is checked, that the cart.note is = "the message".
no problem to capture the message with cart.note but I don't succeed to assign a value like "blank cark only" to cart.note when the first option is checked.
<label class="gift_wrapping_label" for="toggle">offrir un cadeau ?</label>
<input type="checkbox" id="gift_card_checkbox">
<div class="container_giftcard" id="text">
<div class="blank_card_checkbox">
<input type="checkbox" id="card_only">
<label for="card_only">Carte vierge</label>
</div>
<div class="message_checkbox">
<input type="checkbox" id="card_message">
<label for="card_message">Message personnel</label>
</div>
<textarea class="gift_message" name="note" cols="50" rows="3">{{cart.note}}</textarea>
</div>
I want to have access to the customer's choices between blank card or message with cart.note because it's easier to process for me.
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025