Hi I'm using the Shopify Ajax API to add and remove a product on the cart.
But the cart is not updated until I reload the page. There is a function or way to upload the cart automatically without reloading the page?
To Add: /cart/add.js sending id and quantity = 1
To Remove : /cart/change.js sending line and quantity=0
Hi @pampereyra welcome to the forums!
If you are on the Cart page, you can activate automatic cart updates, which might solve your problem?
From the Shopify Admin > Current Theme: Customise > From the top left, select Cart from the dropdown > From the left nav bar, select Cart page > Enable automatic cart updates
Hope this works for you!