Liquid, JavaScript, themes, sales channels
Hi!
I'm having a problem with the cart API. We are using the cart attributes and utilizing the Cart API for this purpose. The API we are using is 'cart/update.js'. We are able to add new attributes and change their values without any issues. However, when we try to clear the attributes, it doesn't work as expected. In the response, we receive the same attributes with all their values intact, without being cleared. Strangely, there are no errors in the response for the request, and the response code is 200.
Additionally, I want to mention that we have both a development store and a production store. Interestingly, we only encounter this problem in the development store, despite using the same code for both stores. Could this be related to the issue?
I let screenshots showing the request and the response of the request that is causing trouble.
Just to clarify, the Cart API I'm referring to is this one: https://shopify.dev/docs/api/ajax/reference/cart#post-locale-cart-update-js.
User | RANK |
---|---|
38 | |
29 | |
13 | |
12 | |
9 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023