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.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024