Is it possible to uncheck a custom checkbox in the cart on default. It’s for a gift wrapping option and I don’t want people to accidently pay more for gift wrapping.
Thank you
All the best
Yulia
Is it possible to uncheck a custom checkbox in the cart on default. It’s for a gift wrapping option and I don’t want people to accidently pay more for gift wrapping.
Thank you
All the best
Yulia
@ligeiaofulthar You can set a default value to any custom fields, for your case, what you would do is add the custom value attribute and set it to false for, eg:
<button class="snipcart-add-item"
data-item-id="starry-night"
data-item-price="79.99"
data-item-url="/paintings/starry-night"
data-item-description="High-quality replica of The Starry Night by the Dutch post-impressionist painter Vincent van Gogh."
data-item-image="/assets/images/starry-night.jpg"
data-item-name="The Starry Night"
data-item-custom1-name="Gift"
data-item-custom1-type="checkbox"
data-item-custom1-value="false">
Add to cart
</button>