{"product_id":"cart-validation-and-required-fields-symmetry","title":"Cart Validation and Required Fields","description":"\u003cp class=\"task-lead\"\u003eA retailer wanted to stop the theme from redirecting to the cart page on add-to-cart, and to require a terms checkbox before checkout.\u003c\/p\u003e\u003ch2\u003eThe request\u003c\/h2\u003e\u003cblockquote\u003e\n\u003cp\u003eTwo parts. Stop the store from redirecting to the cart page when someone adds a product. And require a terms and conditions checkbox on the cart before checkout.\u003c\/p\u003e\n\u003ccite\u003eOriginal customer request, anonymized\u003c\/cite\u003e\n\u003c\/blockquote\u003e\u003cp\u003eA redirect that interrupted shopping and a legal requirement that needed enforcing.\u003c\/p\u003e\u003ch2\u003eThe approach\u003c\/h2\u003e\u003cp\u003eWe replaced the redirect with a cart drawer that opens on add, and added a required terms checkbox to the cart that disables checkout until it's checked.\u003c\/p\u003e\u003ch2\u003eWhat we shipped\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003eRedirect replaced with a cart drawer\u003c\/li\u003e\n\u003cli\u003eRequired terms checkbox on the cart\u003c\/li\u003e\n\u003cli\u003eCheckout disabled until accepted\u003c\/li\u003e\n\u003cli\u003eAcceptance recorded on the order\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"TaskHusky Portfolio","offers":[{"title":"Default Title","offer_id":44155681570890,"sku":"TASK-0175","price":0.0,"currency_code":"USD","in_stock":false}],"url":"https:\/\/www.taskhusky.com\/products\/cart-validation-and-required-fields-symmetry","provider":"TaskHusky","version":"1.0","type":"link"}