Hi All,
I am quite new in Shopify and I hope someone can help me with an idea.
I am trying to enhance the cart functionality by integrating product add-ons stored in metafields. I’ve updated my Liquid template to display these add-ons, but I need help with the JavaScript to handle add-on selections and update the cart total dynamically.
Here’s a brief overview of my setup:
Liquid Template: Displays add-ons for each cart item using metafields.
Javascript: Needs to update the cart total when add-ons are selected or deselected.
I’d appreciate any guidance or examples on implementing the JavaScript part, especially for updating the cart total and handling interactions with Shopify’s AJAX API if necessary.
Thanks in advance for your help!
