How can I see if customers selected my added checkout checkbox?

Topic summary

Main issue: Add a checkbox on the Shopify cart/checkout and have the selection appear in the merchant’s order view.

What worked: A contributor advised adding a checkbox snippet inside the tags of cart.liquid. The merchant confirmed it then showed on each order (noted as appearing in the top-right of the order details).

Theme nuance: For themes using sections, cart.liquid may only include {% section ‘cart-template’ %}. In that case, the checkbox must be added within sections/cart-template.liquid. A user reported this resolved their issue.

Follow-up requests/issues:

  • A request to create a “Bed Insurance” checkbox at checkout (R109 p/m) had no provided solution.
  • Another user attempted a “Use Recycled Packaging?” checkbox that should save to the backend/database (order page). They shared partial Liquid code and screenshots, but couldn’t get it to persist. Attachments (images) are central to understanding their attempts; code posted appears incomplete.

Status: Original method is confirmed working for adding a cart checkbox that surfaces on orders. Later customization requests and persistence-to-database issues remain unresolved in the thread.

Summarized with AI on January 4. AI used: gpt-5.

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 %}