Hello, I’ve had some reports this morning of what looks to be a regression in the cart behaviour for POS extensions. We are using the bulkCartUpdate method on the Cart API to add a number of products to the cart as a bulk operation. When doing this it appears that the variant information is not shown on the cart overview anymore as it once was.
For example, below we have selected the $100 Denomination variant for this Gift Card product but as you can see when it is in the cart this information is not visible, it just shows the product title. It should have “$100“ under the title where the “Tax-exempt“ and “Digital item” text is.
To see the selected variant I need to go into the specific line item details. This also appears to happen when I add the same product variant via the native Shopify UI so I don’t think the issue is specific to the Cart API method we are using.
Let me know if this makes sense, seems like something has changed here, can someone from Shopify please explain what’s happening here?
No it doesn’t seem to be limited to the “Digital items“ definitely something going on here.
Here is the same product with different variants (Small / Medium) added to the cart, one via the native Shopify interface, the other via the bulkCartUpdate Cart API, one shows the variant the other does not?
Adding the variant again via the Shopify UI instead of the cart API stacks with the original so it does indeed register as the correct variant behind the scenes, it’s just not showing that it is the “Small“ variant in the cart
Hey @simon_b - thanks for the detailed investigation here (and the screenshots — super helpful). This does seem odd, especially after you ruled out the different types of variants.
Just to help with the investigation on our end, could you let me know which POS app version you’re running and whether you’re on iOS or Android? Does this happen with just a regular addLineItem prop? Either way, I think my next step here is to dig into this further for you internally, but having those details will be super helpful for narrowing down the issue. Hope to hear from you soon.
Hi @Alan_G thanks for your response. I’m running the latest version of POS on iOS (10.20.0) and Android (10.19.3) and can see it happening on both platforms.
I’ll run a test in our dev environment now using addLineItem to see if this also results in the issue. I’m tipping not as no one else has raised this and it’s likely that is what most devs use. We use the bulkCartUpdate to help speed up the process of adding multiple items to the cart at once, although it is still slow, had a number of merchants complain about this but that’s a different matter
@Alan_G looks to be working when using addLineItem, here I’ve used both methods and you can see the Gift Card added via the bulk method doesn’t show variant but the other item, added via the singular method does.
We would use the addLineItem method instead but with our previous testing it was taking around a second per item added, this might have changed since though as this was early days we did that testing.
Hi @Alan_G any update on this? Were you able to confirm the behaviour on your side? I believe @Victor_Chu added the bulk cart update feature for us originally, which we were very appreciative of btw .
Let me know if there is anything else I can do to help.
Hey @simon_b sorry for the wait here, and thanks again for narrowing this down (the screenshots and side-by-side comparison were super helpful). Based on everything you’ve shared this does seem like something specific to how bulkCartUpdate handles the variant display in the cart, especially since addLineItem works as expected and the underlying variant data is correct.
I’m going to dig into this further on our end and see what I can find out. I’ll follow up here once I have more info. In the meantime, addLineItem should work as a fallback if you need it. I know it’s not super ideal given the performance concerns though. Let me know if you notice anything else in the meantime!
Hi @Alan_G no we unfortunately cannot use addLineItem instead. As I mentioned previously merchants are already not happy about the speed of add to cart as is, many have flagged this, some even deciding not to use Shopify POS as a result. The UX impact would be too great if we made it even slower. So this is a fairly important issue for us, not having the variant displayed is preferable to reduced speed but also not a great UX.
Hey @simon_b - just following up here, thanks for your patience. We have a fix in the works for this. I still don’t have a concrete date for when it will be deployed, but I’ll see if I can confirm that for you on my end here and loop back once I have that info.
Hi @Alan_G no worries at all, I understand this likely is a lesser used method in the broader extension ecosystem, we just happen to lean on it quite heavily.
Thanks heaps for the update and continued support.