首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >促销目录价格规则1.8.0.0中存在错误

促销目录价格规则1.8.0.0中存在错误
EN

Stack Overflow用户
提问于 2014-03-18 00:25:34
回答 1查看 1.2K关注 0票数 0

目录定价规则中的Magento 1.8.0.0中是否存在错误。我试图获得一个合适的价格的数据馈送,但1.8.0.0没有吐出任何东西,而1.8.1.0给了我想要的东西。

代码语言:javascript
复制
$store_id = 1; // Use the default store
$discounted_price = Mage::getResourceModel('catalogrule/rule')->getRulePrice( 
                Mage::app()->getLocale()->storeTimeStamp($store_id), 
                Mage::app()->getStore($store_id)->getWebsiteId(), 
                Mage::getSingleton('customer/session')->getCustomerGroupId(), 
                $_product->getId());

// if the product isn't discounted then default back to the original price
echo $discounted_price;`

不幸的是,我的开发服务器是在1.8.1.0上,而我的实时站点运行的是1.8.0.0,有人能建议修复吗?我应该补充说,前端价格和促销价格都是正确显示的,所以数据就在那里,现在不知道从哪里检索它。

EN

回答 1

Stack Overflow用户

发布于 2014-03-20 20:22:42

这是Magento CE 1.8.0.0中的一个错误,已在1.8.1.0中修复

如果你只想要补丁而不是升级你的实时站点,请使用这个补丁:

https://bitbucket.org/gferon/magento-1.8-catalogrule-fix/overview

这是对产品应用现有规则的另一个修复方法。

http://www.techytalk.info/catalog-price-rules-not-being-applied-after-product-save-magento-ce-1-8-0-0/

希望能对你有所帮助

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22459857

复制
相关文章

相似问题

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