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

Change the way products are added to cart regarding stock qtys #2044

Closed
filrak opened this issue Nov 30, 2018 · 0 comments
Closed

Change the way products are added to cart regarding stock qtys #2044

filrak opened this issue Nov 30, 2018 · 0 comments
Labels
feature request Requests for new features. Please be as specific as possible and provide proposal API if it you can

Comments

@filrak
Copy link
Collaborator

filrak commented Nov 30, 2018

What is the motivation for adding / enhancing this feature?

Right now when we add product to the cart and it;s not in stock the following happens:

  • we click 'add toc art'
  • product is added toc art with success msg
  • we are checking for stock qtys
  • we are receiving out of stock information
  • item is removed from cart with error msg

I don;t think it's the best UX since user is getting unnecessary messages and product is added to the cart just to be removed from there 2-3 secs later.
I know it's related to offline behavior but it should work like this only in offline mode. In online mode we should first wait for stock qtys check (add some loader on addToCart button or proper notification) and then display proper message (added to cart, out of stock).

We can even discuss completely disabling cart in offline mode and provide only wishlist but this may be another issue ;)

What are the acceptance criteria

  • Item is added to cart only if it's on stock (while online)
  • Provide natural waiting expreience for stock check (preferable some loader on add to cart button or notification)

Can you complete this feature request by yourself?

Unfortunately no

Additional information

@filrak filrak added the feature request Requests for new features. Please be as specific as possible and provide proposal API if it you can label Nov 30, 2018
@filrak filrak closed this as completed Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new features. Please be as specific as possible and provide proposal API if it you can
Projects
None yet
Development

No branches or pull requests

1 participant