首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >优惠券代码出现在Magento网站的计算中,但不包括在内

优惠券代码出现在Magento网站的计算中,但不包括在内
EN

Stack Overflow用户
提问于 2012-04-20 04:10:41
回答 1查看 379关注 0票数 0

这张图片总结了这一点。折扣代码正在被识别并显示在所有框中,从查看购物车页面一直到出现在管理区域中的订单。但是,它不会出现在计算中。

有没有人知道这是什么原因?

EN

回答 1

Stack Overflow用户

发布于 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

  • copy app/code/local/Mage/CatalogRule/Model

  • open to
  1. /
    1. app/code/core/Mage/CatalogRule/Model/Observer.php并转到第105行。更改此代码:

从…

代码语言:javascript
运行
复制
if ($observer->hasCustomerGroupId()) {
    $gId = $observer->getEvent()->getCustomerGroupId();
} elseif ($product->hasCustomerGroupId()) {
    $gId = $product->hasCustomerGroupId();
} else {
    $gId = Mage::getSingleton('customer/session')->getCustomerGroupId();
}

代码语言:javascript
运行
复制
if ($observer->hasCustomerGroupId()) {
    $gId = $observer->getEvent()->getCustomerGroupId();
} elseif ($product->hasCustomerGroupId()) {
    $gId = $product->getCustomerGroupId();
} else {
    $gId = Mage::getSingleton('customer/session')->getCustomerGroupId();
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10235974

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档