YES or NO question

Solved

YES or NO question

CarolM1
Visitor
3 0 2

Hi everyone, I'm very new to Shopify.
I'm setting up my store and I'm wondering if it's possible to add a simple question for customer answer when finalising the purchase.
The question would be "Are you happy to have your order shared on social media" : YES or NO

Thanks a bunch
Carol

Accepted Solution (1)

BlackCro
Shopify Partner
103 19 18

This is an accepted solution.

This is possible, however it's a little more trickier than you might think. 

 

There can only be one instance of the cart note object on the checkout page, so the below code will work to add a note to the order stating 'Accepts Social' when the box is ticked by the customer. However you would need to disable the default cart note text box to do this. 

 

<label for="checkbox">Are you happy to have your order shared on social media? </label>
<input type="checkbox" name="note" id="checkbox" value="Accepts Social" form="cart">

 

Place the code in main-cart-footer.liquid inside the <cart-note> tag. Then add the {% comment %} and {% endcomment %} around the existing cart note code.

 

Screenshot 2024-10-07 at 13.57.35.png

 

Hope this helps

Simon

BlackCro.co.uk

CRO & Development Agency



Better Forms - Get a better contact form today!

View solution in original post

Replies 2 (2)

BlackCro
Shopify Partner
103 19 18

This is an accepted solution.

This is possible, however it's a little more trickier than you might think. 

 

There can only be one instance of the cart note object on the checkout page, so the below code will work to add a note to the order stating 'Accepts Social' when the box is ticked by the customer. However you would need to disable the default cart note text box to do this. 

 

<label for="checkbox">Are you happy to have your order shared on social media? </label>
<input type="checkbox" name="note" id="checkbox" value="Accepts Social" form="cart">

 

Place the code in main-cart-footer.liquid inside the <cart-note> tag. Then add the {% comment %} and {% endcomment %} around the existing cart note code.

 

Screenshot 2024-10-07 at 13.57.35.png

 

Hope this helps

Simon

BlackCro.co.uk

CRO & Development Agency



Better Forms - Get a better contact form today!
CarolM1
Visitor
3 0 2

This is awesome. Perfect for what I need. Thank you very much.