Shopping Cart - The flow for sold out or less available items at checkout time?

六眼飞鱼酱① 提交于 2019-12-11 16:54:00

问题


I designed a shopping cart solution for a client. For one of their items (candy, for example), they have a certain quantity they can sell for each type. I deduct from the quantity available after items have been purchased.

The candy shopping flow is as follow:

  1. Select (add to cart) candy on candy catalog page
  2. Go to Cart page to review items to be purchased
  3. Go to checkout page (billing information + list of items to be purchased with price total details)

Pertinent Situation: Customer A select 9 of the remaining 10 Snickers. Customer B selects 5 of the remaining 10 Snickers. At checkout, Customer B submits his payment information (leaving 5 snickers left) before Customer A, who bought 9 Snickers.

Now, Customer A will be left with a message on the checkout page about what happened (i.e. - Oops.. yur candiez r all gone!), including a list of which candy is sold out, or less available. Here, I am unsure as to where the flow should continue (hoping this was even a good path to begin with).

Should the customer be given a link back to their shopping cart where the items they selected are unchanged, and be left for them to remove and continue purchasing? Or, should these items reflect the new quantities available for each item, such that since Customer A bought 9 Snickers, the cart will show Customer A added 5 Snickers (of the remaining 5)? Or, should these items be removed from the cart altogether?

Another solution (as suggested by Andreas Niedermair and E. Rodriguez): Deduct inventory as customers add items to their shopping cart.

If this were my implementation, at what point/how would I add items back into the inventory if the customer leaves the site? My cart is not DB driven.

Any feedback would be great, and I will be happy to clarify.


回答1:


If it were me I would introduce an intermediate state where the candiez are considered "sold" at the moment a quantity is selected. Depending on other cart features ("save ur candiez for laterz", for example) you might want to reallocate them back to the available inventory pool after a certain amount of time... but I believe that the moment the customer wants them, as in a store, if they put them in their cart (even without buying them) then the next customer only sees what is available.




回答2:


I personally prefer the other way: items, as they get added to the cart, get reserved for a certain amount of time (eg the session timeout). If an item is sold out, or less amount is available at adding-time, the user gets an earlier hint. Remember: there's nothing more frustrating than getting a bad "oops" at checkout!



来源:https://stackoverflow.com/questions/6414442/shopping-cart-the-flow-for-sold-out-or-less-available-items-at-checkout-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!