如何降低购物车页面上的产品价格?
如果用户有现有的帐户余额,我想让他选择指定将之前的余额中有多少应用于该商品,并将此信息与购物车和订单同步。我已经在前端和后端实现了用户的帐户余额。
类似优惠券的系统效果最好,还是我应该尝试其他方法?
提前致谢。
If the user has an existing account balance, I'd like to give him the option to specify how much of his previous balance to apply to the item and sync this info with the cart and order. I have already implemented the user's account balance, both on the front and back end.
Would a coupon-like system work best, or should I try something else?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会让客户减少其购物车总数,余额也会更简单/客户的逻辑也(?)
您使用什么电子商务解决方案? Magento(?)如果是这样,有优惠券扩展可以处理这个问题。
您还可以构建一个简单的余额系统,用户可以在其中看到帐户中的余额(如果实现了此类功能),或者只是向他们发送一条消息,其中包含您保存在数据库中的唯一代码+余额值,然后使用此代码作为结账时使用优惠券。
I would let the customer decrease its cart total with the balance would be more simple / logic for the customer also (?)
What E-commerce solution do you use? Magento(?) If so there are coupon extensions that can handle this.
You could also build a simple balance system where users would see there balance in there account ( if such feature is implemented) or just mail them a message with a unique code that you save in DB + the value of balance then use this code as a coupon on checkout.
迄今为止,我们已经创建了相当多的电子商务解决方案。通常,当涉及用户余额时,您要做的就是创建引用一张发票的两笔交易。在第一笔交易中指定从余额中提取的金额,而将另一笔交易留给您使用的任何结帐方法。从结帐回调后,查看支付的余额是否与发票相符,以将其标记为已支付。
或者,您可以使用折扣 - 减少用户余额并向订单添加“折扣”。这完全取决于您的会计需求和偏好。
We have created quite a few e-commerce solutions up to date. Usually, when user balance is involved, then what you do is create two transactions referred to one invoice. In the first transaction specify the amount taken from balance, where as leave the other transaction for whatever checkout method you use. Upon callback from the checkout, see if the balance paid matches the invoice to mark it as paid respectfully.
Alternatively, you can use discount - decrease user balance and add "discount" to the order. It all depends on your accounting needs and preferences.
在亚马逊上,它们允许您将任何未使用的余额应用于现有订单。当你结帐时,他们说你的帐户上有 150 美元的信用额,你想将其应用到你的订单中吗?在复选框中默认为“是”。
它非常整洁和简单,它不允许您应用我所看到的部分金额。
然后,当您付款时,您需要支付总计 $ 余额。
因此,如果您总共有 200 美元,则通过信用卡支付的金额将为 50 美元。
On Amazon they allow you to apply any unused balance to the existing order. Its when you checkout that they say you have $150 credit on your account, would you like to apply this to your order, it defaults to yes in a tick box.
Its quite neat and simple, it doesn't allow you to apply a part amount from what I've seen.
Then when you go to payment you pay $total - balance.
So if you have $200 total, the payment via credit card would be for the $50.