I am currently having trouble appraoching a simple code to create functionality for a checkbox. I'd like for the following : When checkbox is checked (on product page), add the item to the cart immediately.
Would anyone know the right way to approach this?
You can try with onchange event in the checkbox and with in it, you need to place a ajax request.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.