App Bridge product selection bug - when multiple selection is turned off can't select multiple variants

When product multi selection is set to false then, after selecting a products variant you can’t choose any other variant.

The code for app bridge implementation:

const resourcePickerOptions = {
  type: "product",
  multiple: false,
  action: "add",
};

products = await shopify.resourcePicker(resourcePickerOptions);

Image supporting the statement:

1 Like

Philosophically speaking, does this not make sense? A product (singular) may have many variants, but since each variant is a product, the selection multiple=false is saying, you get one. If you allow one product, but two or more products, what are you trying to do? Reduce the resource picker to a subset of variants of a single product. So now it is single product, multiple variant. Is that how this Resource (product) picker is designed? Curious. Could perhaps be more expansive?

But I can choose multiple variants if I select using the product itself:

And then if I uncheck one then I can’t check it again which definitely seems like a bug to me:

Based off the docs it should definitely be possible and sounds like a bug

When type is Product, the user may still select multiple variants of a single product, even if multiple is false.

1 Like

Cool…great discovery Luke, I didn’t see the docs.

Hey folks :waving_hand: - thanks for raising this here. We’re taking a look into this.

Just a bit of an update - this does look like a possible issue on our end - we’re continuing to investigate. Can’t confirm a turnaround time, but just wanted to keep you folks in the loop.

1 Like

Thanks for picking up on the issue. It’s been here for a long time. Hope this gets fixed soon.

Comforting to know Shopify is all over the clicks and why they don’t work! Good stuff.

1 Like

I think this issue inadvertetly introduce a new error with the new load more feature in the latest update: Variants deselected in Resource Picker if “Load all variants” isn’t reloaded where if have a product which its variants exceed the load more pagination and select the complete product, in this case it only selects the visible variants before the load more button. You have to click on the load more button then select the complete product to select all its variants. Im pretty sure this is not the intended behaviour and I hope this is fixed soonish haha :sweat_smile:

2 Likes

Hey @jfeuchtertqgg - thanks for flagging this. The pagination/load more interaction definitely sounds like unintended behaviour. Could you share a quick screen recording showing this happening if possible/confirm which App Bridge version you’re using? Just want to see if we’re able to reproduce it accurately on our end and get it properly looked into. Let me know if it’s easier to share this over DM and I can set one up :slight_smile:

Hey @Alan_G sure thing I have a recording here https://drive.google.com/file/d/16cMmlBkKOGsP0XJZd7UtfhR9BDpwwYIv/view?usp=drivesdk hope you can view it. And the version is the lastest one 3.7.10. if you have any questions please let me know.

1 Like

Oh and @Alan_G btw I thought it was only when the property multiple was set to false. But this also happens even if the property is set to multiple.

Thanks @jfeuchtertqgg - appreciate you sending that my way, I’ll do some further looking into this and loop back with you when I have more info :slight_smile:

2 Likes

Hey again @jfeuchtertqgg and all - just following up here. We’ve identified this as potential bug on our end. I can’t guarantee a turnaround time at the moment, but we are tracking this. Just wanted to share an update - thanks again for flagging this!

1 Like

@Alan_G nice thanks for letting me know. Looking forward to hearing when the fix gets pushed :smiley:

1 Like