Do you have any good ideas for controlling links adding products to cart? #458
k-ogasawara
started this conversation in
Feedback: Cart and Checkout Validation API
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently developing a public app using the Cart and Checkout Validation API. As indicated in the title, we have managed to impose restrictions on adding products to the cart via links.
(example. https://{store domain}/cart/change?id={variant id}:{line item key}&quantity=2)
However, when this action triggers the restrictions, Shopify's error screen is displayed as shown in the attached image. This issue occurs with certain themes (such as Prestige) that adopt this link method for changing product quantities on the cart page.
While I am satisfied that the restrictions are working, the screen displayed to customers is not ideal. Does anyone have any good suggestions on how to improve this? I'm looking for a way to handle the restriction in a way that doesn't detract from the user experience. Any advice or insights would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions