Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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.