Questions, feedback, and updates on the new online store design experience
I'm working in the Boundless theme for my store. I want to have a gift wrapping option (https://shopify.dev/tutorials/customize-theme-add-gift-wrap-option) with a checkbox in the slide out cart that comes from the right. I have it to when the box gets checked the option is added to the cart, but only when you refresh the page or go to the checkout. I want the item to added to the slide out cart in realtime just the gift wrapping option in the link above.
<script>
/*6590925701297*/
function giftWrapping(){
jQuery.post('/cart/add.js',
{
items: [
{
quantity: 1,
id: 39394015510705
}
]
});
alert("Updated jQuery");
}
</script>
Here the code I'm using with an onchange function on the input checkbox for giftWrapping().
Anybody know what I'm doing wrong?
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023