这张图片总结了这一点。折扣代码正在被识别并显示在所有框中,从查看购物车页面一直到出现在管理区域中的订单。但是,它不会出现在计算中。
有没有人知道这是什么原因?
发布于 2012-04-20 07:21:08
您的后端是否启用了mage_tax模块?
System > Configuration > Advanced > Enable the Mage_Tax module
如果是这样,并且您使用的是法师1.4,请尝试此修复
在您的Magento发行版中创建以下文件夹:app/code/local/Mage/CatalogRule
/Model
app/code/local/Mage/CatalogRule/Model
app/code/core/Mage/CatalogRule/Model/Observer.php
并转到第105行。更改此代码:从…
if ($observer->hasCustomerGroupId()) {
$gId = $observer->getEvent()->getCustomerGroupId();
} elseif ($product->hasCustomerGroupId()) {
$gId = $product->hasCustomerGroupId();
} else {
$gId = Mage::getSingleton('customer/session')->getCustomerGroupId();
}
至
if ($observer->hasCustomerGroupId()) {
$gId = $observer->getEvent()->getCustomerGroupId();
} elseif ($product->hasCustomerGroupId()) {
$gId = $product->getCustomerGroupId();
} else {
$gId = Mage::getSingleton('customer/session')->getCustomerGroupId();
}
https://stackoverflow.com/questions/10235974
复制相似问题