Optional checkbox at cart page which brings into checkout

Topic summary

Goal: add an optional checkbox on the cart page so customers can indicate they’ll eat the cake the next day; if checked, the merchant will deliver the cake frozen and needs to see this info.

Current issue: the checkbox is not appearing on the cart page. The poster shared a preview link and screenshots, and referenced code they found online, but the snippet provided in the thread lacks visible content here.

Feedback received: a responder notes there are extra question marks in attribute names (likely not breaking), but more importantly cannot find any matching code in the preview page’s HTML (via view source). They request concrete details: exactly which file(s) were edited, where the code was inserted, and the steps taken. They link to guidance on how to ask good questions.

Follow-up: the original poster objects to the tone, insists the link works and that the code shows in view source on other devices, and adds another screenshot, but no additional implementation details are provided.

Status: unresolved. Action needed: share the exact code, theme/file names, and precise insertion location to enable troubleshooting; confirm how the checkbox data should be captured and surfaced to the merchant.

Summarized with AI on December 12. AI used: gpt-5.

Hey guys,

I am trying to add an optional checkbox at the cart page before the check out button. The customer will check the box if they will eat the cake the next day, if checked, I will deliver the cake frozen. I will need to see the checkbox information on my end if the customer checks it.

This is the code I am using from research but the check box isn’t showing.


  
  
  

As you can see, no checkbox…???

This is my store preview: https://9twld62tunubp060-64183730394.shopifypreview.com

Anyone can help please?

Hi @onyx_au there are extra question marks in the attribute names text but that probably shouldn’t break anything.

You’ve provided sample code but no clue as to where you actually tried to add it.

The screenshot is meaningless as that’s only seems to be a desired destination but does not explain what you have done to try and get there.

And there is no matching text in the pages view source(ctrl+u).

So anyone trying to help is wasting time flying blind looking for false-positives of things that aren’t there at all.

Always provide critical detail of the steps you took.

https://stackoverflow.com/help/how-to-ask

1 Like

Passive aggressive much?

The screenshot is to provide what it looks like at the cart page

The code is what I used from what people in shopify successfully used but it’s not successful on mine

Also the link provided, it’s working in other computers, my mobile and my friends laptop and showing that there isn’t a checkbox… so I don’t know how you can’t find where I put the code in. It’s definitely showing when someone presses CTRL+U