安装最新的Magento:1.4.1.1,如果禁用Sales模块,以及GiftMessage模块,但保留Product模块,当你试图删除产品和新增产品时会出现
Invalid backend model specified: giftmessage/entity_attribute_backend_boolean_config
的错误,
Go to /app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
注释掉337-339,将340行换成如下代码:
if(is_object($backend)){
$this->_backend = $backend->setAttribute($this);
}
Go to /app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Abstract.php
将140行换成如下代码:
if (is_object($attribute->getBackend()))
{
$attribute->getBackend()->setValueId($valueId);
}
阅读(1929) | 评论(0) | 转发(0) |