-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POS UI Extensions: Allow same variant with different properties added as separate line items #1021
Comments
@pablogiralt thanks for adding it here. This has been a big issue without a workaround for years! Would love to see this actually get addressed. |
Thanks for the request. I've added this to our enhancements request backlog for review. |
@pablogiralt what happens if you add variant 1 with a quantity of 1, then add the line item property to it. than add a second variant 1 with quantity 1. does the it get added to the same line item or is a new one created? |
@fred-quickfiredigital currently line-items for same variant in pos cart are never "unfolded". So yes, items with same variant_id are always added to same line, even if the the line had a line property before adding the new item. |
We just encountered that issue while building a POS app... That's a really big issue. That makes the line item properties pretty much useless if you cannot add the same item twice with different properties. |
+1 Please fix this! I'm trying to build a gift with purchase app and it's impossible to do it without being able to pass properties in addLineItem! |
Please list the related package(s)
retail-ui-extensions v1.1.2
If this related to specific APIs or components, please list them here
addLineItem from the Cart API
Is your feature request related to a problem? Please describe.
It is currently impossible to have the same variant, with different lineItem properties, in different lines of the cart.
Currently, when adding a lineItem to the cart in POS, the api allows us to specify the variant and quantity we want to add. It however does not allow us to specify line item properties with that payload. Instead, we need to add line item properties based on the line item uuid after the fact. This creates an issue where you cannot add the same variant with different line item properties.
This is inconsistent with the Online Store and prevents the implementation of solutions to meet different requirements for clients. For example:
... and I am use that there is a lot more use cases.
This is an issue in App Bridge with has been reported years ago Shopify/shopify-app-bridge#28
Describe the changes you are looking for
Describe alternatives you’ve considered
There are really no effective alternatives to this issue. Workarounds can be found for some possible use cases but there are others where there is no possible alternative.
The text was updated successfully, but these errors were encountered: