且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento:应用了购物车价格规则,但未从小计中减去折扣

更新时间:2023-11-29 21:44:22

我实际上只是想出出什么问题了,或者至少我想出了一个解决方案,尽管不确定为什么会影响购物车价格规则.没错,我什至没有办法制定一个简单的价格规则-无论我如何更改规则,它都根本没有用.无论如何,在处理另一个问题时,我意识到我在购物车的前端缺少小计/总计"框(我在本地主机上安装了版本1.4.1.1的完整副本,这是我注意到它的时候)在我的实时网站上丢失了).当我重新启用小计/总计"框时,规则再次开始工作. (我现在想想Magento在前端有一个位置,可以显示折扣,它实际上会应用折扣,而在此之前什么也做不了.)

I actually JUST figured out what was going wrong, or at least, I figured out a solution, though not sure exactly why this was affecting the shopping cart price rules. You're right that I wasn't even able to get a simple price rule to work - it simply wasn't working no matter how I changed the rule. Anyway, while working on another issue, I realized that I was missing the Subtotal/Grand Total box on the front-end of the shopping cart (I installed a clean copy of version 1.4.1.1 on my localhost, which is when I noticed it was missing from my live site). When I re-enabled the Subtotal/Grand Total box, the rules started working again. (I suppose now that Magento has a place on the front-end to show the discount, it actually applies it, whereas before it would just do nothing.)

因此,要重新启用小计/总计框,在后端,我转到系统>配置>高级>启用 Mage_Tax 模块.同样,不确定为什么首先要禁用它,我不确定这是否会影响网站上的其他任何内容,但是已经存在了一段时间,而且我还没有发现任何问题.以下是其工作的屏幕截图: http://i.stack.imgur.com/kjl6S.png

So, to re-enable the subtotal/grand total box, in the back end, I went to System > Configuration > Advanced > Enable the Mage_Tax module. Again, not sure why it was disabled in the first place, and I'm not sure if this affects anything else on the site, but it's been up for awhile now and I haven't noticed anything awry. Here's a screen capture of it working: http://i.stack.imgur.com/kjl6S.png