详细信息页面上的可配置产品出错? [英] Error in configurable products on detail page?

查看:38
本文介绍了详细信息页面上的可配置产品出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Magento.我的产品详细信息页面上有错误.

I am working on Magento. There is an error on my product detail page.

致命错误:在第86行的app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php中的非对象上调用成员函数getId()

Fatal error: Call to a member function getId() on a non-object in app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php on line 86

但是此错误并非适用于所有产品,在某些情况下是这样.我该如何解决此错误?

But this error is not for all products, it's in some cases. How can I resolve this error?

推荐答案

似乎您在配置价格属性(应该为cost)时遇到了问题.确保将其属性用于所有类型的产品.

It seems that you have a problem in configuration of price attribute (that should be cost). Make sure what it attribute used for all types of product.

这篇关于详细信息页面上的可配置产品出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆