I am trying to add an additional checkbox to the checkout screen that will record the customers response post order.
We need to capture if the customer is happy to receive alternate branded products before they proceed.
Basically ‘If you are happy to receive alternative brands, tick here’.
I can easily add a checkbox with text, but I am having issues capturing the response on their orders and abandoned checkouts, rendering the box useless.
How do I capture the value with the customers data in backend with the order, so we know their response?
Clarification /cart is different from /checkout and different from POST checkout and it’s post process pages such as the thank-you|order-status page.
Collection of order information is complete when checkout finishes creating the order.
If you are adding the checkbox the /cart templates use cart attributes
https://shopify.dev/themes/architecture/templates/cart#cart-attributes
https://shopify.dev/api/liquid/objects#cart-attributes
Attributes generator tool https://ui-elements-generator.myshopify.com/pages/cart-attribute
Also see the terms cart customization
https://community.shopify.com/topic/614939
To modify the /checkout payment process requires an account to be on the shopify Plus enterprise plan.
If you are adding the checkbox the /checkout templates use checkout attributes
https://shopify.dev/themes/architecture/layouts/checkout-liquid#capture-checkout-attributes
https://shopify.dev/api/liquid/objects#checkout-attributes
Collecting info on the order-status page, the order-status page has no form submission features so requires a third party service to send any collected information to. https://help.shopify.com/en/manual/orders/status-tracking/customize-order-status
That’s great, thank you for all the information, and your support! This will definitely help.