Skip to content
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] Products that are not available for POS, can be added to cart via POS Extensions Cart API #2465

Open
xqwtsz opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xqwtsz
Copy link

xqwtsz commented Nov 11, 2024

Please list the package(s) involved in the issue, and include the version you are using

"@shopify/ui-extensions": "2024.10.x",
"@shopify/ui-extensions-react": "2024.10.x"

Describe the bug

Products that are not available for POS Sales Channel, can still be added to cart via POS Extensions Cart API, which does occasionally show a cart error with no extra information (just a generic "something is wrong with the cart"), but the product is still added to cart and the checkout can be completed.

Steps to reproduce the behavior:

  1. Create a fresh POS UI Extension
  2. Run the api.cart.addLineItem function with a product that is not in the POS Sales Channel
const api = useApi<'pos.home.modal.render'>()
await api.cart.addLineItem("productId", 1)

Image

Expected behavior

Product that is not available in the POS sales channel is NOT added to the cart, with a proper error message.

@xqwtsz xqwtsz added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant