I’m trying to add a checkbox to my checkout page (the checkbox text would be: Do you need an alibi ln your package. In the form of Congratulations on winning this ltem’?)
I’ve gone through the forums and found a way to add it to the code. It worked by adding it to the code but when I sent through a test order, it does not show on my end whether or not the customer selected the checkbox.
Is there another way of doing this, so that as the shop owner I can see whether or not the customer has selected the checkbox?
1 Like
Hi jraymond12,
Please go to ‘Online store’ → ‘Actions’ → ‘Edit code’ and add this to your cart.liquid file in between the tags. It will appear where you place the code. And this will show up on each order in the top right:
Thank you Alpha_Geek! That worked perfectly.
I am also trying to do this but I don’t have the tags.
This is the code I have-
{% comment %}
The contents of the cart.liquid template can be found in /sections/cart-template.liquid
{% endcomment %}
{% section ‘cart-template’ %}
Finally got it. Tried to delete last comment but cannot, so please just ignore 
Good day. Is it possible for you to make me a checkbox code as well? In checkout. It should be called “Bed Insurance” for R109 p/m.
Thanks in advance
Hi would this still work now?
I have done a few things thinking it should have worked but It hasn’t
I would like to see if the customer Would You Like to Ship with Recycled Packaging and if they do or don’t for it to show up on the backend of the order page ( in the database) but for some reason, I can’t get this to work
Hope you can help!
Than You
Hi I have some code here for that but I can’t get it to work on the database lol
Here is what I am using, you’re welcome to use it and let me know how you get it to work haha
CODE ONE:
CODE TWO:
{% assign field_label = "Use Recycled Packaging?" %}
{% assign required_field = false %}
{% assign position = "middle" %}
{% assign checked_value = "Yes" %}
{% assign hide_checkout = false %}
{% comment %}
Use the code below to add a link in the checkbox text
{% endcomment %}
{% comment %}
Do not edit the code below
{% endcomment %}
{% assign gen_id = field_label | remove: " " | strip | downcase %}