Ubercart - 基于购物车中所有产品总数的产品折扣
我在 Drupal 中使用 Ubercart 作为一个简单的网络商店。我无法根据购物车中所有产品的总数计算产品折扣。例如,如果用户使用 uc_custom_price 模块购买多件相同产品,我可以轻松定义折扣。但如果他们购买超过一种产品,我想给予折扣。如果他们以 10 美元购买商品 1,然后以 10 美元添加商品 2,那么我希望这两种商品现在都花费 8 美元。
希望这是有道理的。我搜索了论坛并用谷歌搜索了几个小时,但我就是无法让它正常工作。感谢您的帮助。
I'm using Ubercart in Drupal for a simple web store. I'm having trouble calculating a product discount based on the total number of all products in the cart. For example, I'm easily able to define discounts for if a user buys more than one of the same product, using the uc_custom_price module. But I want to give the discount if they buy more than one of any product. If they buy item 1 for 10 dollars and then add item 2 for 10 dollars, then I want both items to now cost 8 dollars.
Hopefully this makes sense. I searched the forums and googled for a couple of hours, but I just can't get this to work correctly. Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查规则+Ubercart模块。或者在创建订单时编写自定义代码
Check Rules + Ubercart module. Or write custom code on order creation