Hi, my T & C checkbox stopped working for some reason (mini cart & cart page). Can any help me with the code line to make it be marked as checked by default? currently people can’t checkout.
tried this, but it didn’t work
{{ terms_and_conditions }}
Website: pavone-2462.myshopify.com
1 Like
Hello @Daniel19901 ,
In your Shopify Admin go to online store > themes > actions > edit code
Find Asset > base.css and paste this at the bottom of the file:
.t4s-drawer__bottom input[type=checkbox][data-agree-checkbox]:checked+label:before {
background-color: var(--t4s-dark-color);
border-color: var(--t4s-dark-color);
}
.t4s-drawer__bottom input[type=checkbox][data-agree-checkbox]+label:before {
top: 2px;
cursor: pointer;
}
1 Like
Hi @Daniel19901
Go to Online Store → Theme → Edit code.
Open your theme.liquid file and paste the below code before
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
1 Like
@ZestardTech thank you very much! it worked for the mini cart but not the cart page
1 Like
@websensepro thank you but it didn’t work
Please also add this code for the cart page.
.t4s-cartPage__footer input[type=checkbox][data-agree-checkbox]:checked+label:before {
background-color: var(--t4s-dark-color);
border-color: var(--t4s-dark-color);
}
.t4s-cartPage__footer input[type=checkbox][data-agree-checkbox]+label:before {
cursor: pointer;
}
2 Likes