萨奇莫捐款

发布于 2024-07-22 03:28:38 字数 148 浏览 1 评论 0原文

谁能分享一些关于为 Satchmo 构建捐赠模块的建议吗? 我很乐意定制 Satchmo 的产品模型等,但无法找到与捐赠相关的任何内容,

我意识到可以创建捐赠虚拟产品,但据我所知,这仍然需要预先设置金额(5 美元、10 美元等)。 我希望用户能够捐赠任意金额

Can anyone share some pointers on building a Donations module for Satchmo? I'm comfortable customizing Satchmo's product models etc but unable to find anything related to Donations

I realize it's possible to create a Donations virtual product but as far as I can tell this still requires setting the amount beforehand ($5, $10 etc). I want users to be able to donate arbitrary amounts

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

梦中的蝴蝶 2024-07-29 03:28:38

看起来 satchmo_cart_details_query 信号就是执行此操作的方法。 它允许您向购物车项目添加价格变化值(在我的例子中为捐赠金额),

如果有人感兴趣,我将发布完整的解决方案

It looks like the satchmo_cart_details_query signal is the way to go about doing this. It allows you to add a price change value (in my case, donation amount) to a cart item

I'll post the full solution if anyone is interested

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