Copy-paste a Liquid snippet for cart & checkout - 'I agree to the terms' gate before checkout - a compliance requirement some payment providers ask for.
Cart & checkoutTheme snippet Members sourceOS 2.0 themes
1Back up your theme (Online Store > Themes > Actions > Duplicate) before changing any code.
2Open Online Store > Themes > Edit code and create a new file under Snippets named terms-checkbox.liquid.
3Paste the complete file - markup, styles and JavaScript are already inside the single file, nothing else to install.
4Call the snippet from the template or section where it should appear using the render tag shown in the Usage tab.
5Preview the product, collection or cart page and test on mobile before publishing.
6Render before the checkout button - the JS disables the button until checked.
terms-checkbox.liquid
1<gpl-termsclass="gpl-terms">2<labelclass="gpl-terms__check">3<inputtype="checkbox" data-terms>4<span>{{text| default: 'I agree to the terms'}}</span>5</label>6</gpl-terms>