Selected Product Variant not displayed in Cart

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?

Perhaps this issue only exists for “Digital items“, I’ll investigate this further and report back the finding 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?

Note the bottom item here should show “Small“ for the variant, here is the variant details page when you select it from the cart:

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 :man_shrugging:

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 :slightly_smiling_face:

@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.