Ubercart - 基于购物车中所有产品总数的产品折扣

发布于 2024-09-27 09:03:26 字数 244 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

执笔绘流年 2024-10-04 09:03:26

检查规则+Ubercart模块。或者在创建订单时编写自定义代码

Check Rules + Ubercart module. Or write custom code on order creation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文