购物车 - 结账时售罄或可用商品较少的流程? [英] Shopping Cart - The flow for sold out or less available items at checkout time?

查看:49
本文介绍了购物车 - 结账时售罄或可用商品较少的流程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为客户设计了一个购物车解决方案.对于他们的一种商品(例如糖果),他们可以为每种类型销售一定数量的商品.我在购买商品后从可用数量中扣除.

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.

糖果购物流程如下:

  1. 在糖果目录页面选择(添加到购物车)糖果
  2. 转到购物车页面查看要购买的商品
  3. 转到结帐页面(帐单信息 + 要购买的商品清单以及总价详细信息)

相关情况:客户 A 从剩余的 10 个士力架中选择 9 个.客户 B 从剩余的 10 个士力架中选择了 5 个.结账时,客户 B 在购买了 9 块士力架的客户 A 之前提交了他的付款信息(还剩 5 个士力架).

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.

现在,客户 A 将在结帐页面上留下一条关于发生了什么的消息(即 - 哎呀 .. yur candiez r all away!),包括一个哪些糖果已售罄或较少可用的清单.在这里,我不确定流程应该在哪里继续(希望这是一个很好的起点).

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).

是否应该向客户提供一个返回其购物车的链接,在该链接中他们选择的商品保持不变,并让他们移除并继续购买?或者,如果这些商品反映了每件商品的可用新数量,例如 客户 A 购买了 9 块士力架,购物车将显示客户 A 添加了 5 块士力架(剩余的5)?或者,这些物品是否应该完全从购物车中删除?

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?

另一种解决方案(根据 Andreas Niederair 和 E. Rodriguez 的建议):在客户将商品添加到购物车时扣除库存.

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.

推荐答案

如果是我,我会介绍一种中间状态,在选择数量的那一刻,糖果被视为已售出".根据其他购物车功能(例如,为以后保存您的糖果"),您可能希望在一段时间后将它们重新分配回可用的库存池......但我相信客户需要它们的那一刻,作为在商店中,如果他们将它们放入购物车(即使没有购买),那么下一位顾客只能看到可用的东西.

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.

这篇关于购物车 - 结账时售罄或可用商品较少的流程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆