Js-buy-sdk: Cannot change item quantity in cart

Created on 20 Mar 2018  路  12Comments  路  Source: Shopify/js-buy-sdk

The mutation I was using (checkout.updateLineItems) has stopped changing the quantity of the items. They return with the quantity unchanged, but with no errors. Issue #486 might be related?

For example, see X-Request-ID: 69c4f19a-23b9-423b-b3b0-fcd84c5ec9fa

Most helpful comment

Thanks for the examples. I've engaged our checkout team.

All 12 comments

We are getting the same thing but with any update and delete functions. I tried updating the library but it doesn't help.

We are also getting this, we've tried contacting support several times but to no avail. This has taken down 5 of our stores. All stores were working fine until about 7 hrs ago. Seems mad that with this being an issue for almost a day that it's not even reached their status page.

@Jimtattersall same here. Our main store is basically non-operational.

@minasmart The response back for us is just the exact cart data that gets sent. I'm guessing it's the same thing he is seeing.

If the response is the cart data that's sent, then it's working correctly? If you send quantity: 2 on a line item, it should respond with quantity: 2.

The only way this is an error is if the data doesn't match. Can you show me the request and response?

Or even send me a shop where things are broken and I can inspect the network requests?

@minasmart a few examples:
Try adding and adjusting quantities
https://www.notanotherbill.com/product/leather-passport-case
or
https://www.chillysbottles.com/product/bottle/500ml/208867852307/
or removing an item after adding here
https://www.tadaandtoy.com/product/basic-hoops?variant=11804

In each instance the change is sent, however what is returned is the unchanged cart object. You add an update. Push the lineitem and qty 2. But it continues to return one. All these stores have been working for months. And today they all have the same issue, despite us not pushing any changes.

@minasmart Our store is weboost.com. You can check that as well. We are storing the cart in local storage under weboost_cart.

Thanks for the examples. I've engaged our checkout team.

Thanks @minasmart super appreciated.

I think we've got a fix that should be rolling out in the next hour.

it's now working for us. Thanks @minasmart for the quick turnaround time (and sorry for the lack of details in the issue), and thanks to everybody who chimed in with additional data

Was this page helpful?
0 / 5 - 0 ratings