Shopify themes, liquid, logos, and UX
Hi,
Recently, we display the checkbox in checkout to get customers permission to receive SMS offers.
Is there away to make this checkbox checked by default?
document.queryselector("input#abc[type=checkbox]").setAttribute("checked", true)
Replace abc with the id of the field element. Or do you need even more help to make the change.
Thanks 🙂
And where should I add this code?
Will this be applied on checkout?
Did you figure out where to put the code?
Unfortunatly, not yet.
And I hope that this can be done from settings (just as email subscription box)
You need to have access to shopify plus to do this, presumably you dont have that. Come August nothing like this will be possible on the new checkout, all this functionality is removed to prevent people doing things like this, which protects shopify.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025