Cis*_*nas 4 magento magento-1.8
我得到的错误是:指定了无效的后端模型:catalog/product_attribute_backend_startdate_specialprice
这是magento的本地副本,但我不想在现场网站上重新创建整个内容.我可以做些什么来解决这个问题?
Nav*_*war 11
上面的解决方案在我的情况下不起作用,因为我没有开发任何模块因此在上面提到的路径中找不到任何名为"specialprice"的文件.
我已经安装了一个模块,它将数据库中的"specialprice"后端路径更改为 catalog/product_attribute_backend_startdate_specialprice
如果你像我一样陷入同样的问题,这是解决方案:
运行数据库查询以检查specialprice属性的值,即
SELECT * FROM `<database-name>`.`eav_attribute`
WHERE (
`attribute_id` LIKE '%special_price%'
OR `entity_type_id` LIKE '%special_price%'
OR `attribute_code` LIKE '%special_special_price%'
OR `attribute_model` LIKE '%special_price%'
OR `backend_model` LIKE '%special_price%'
OR `backend_type` LIKE '%special_price%'
OR `backend_table` LIKE '%special_price%'
OR `frontend_model` LIKE '%special_price%'
OR `frontend_input` LIKE '%special_price%'
OR `frontend_label` LIKE '%special_price%'
OR `frontend_class` LIKE '%special_price%'
OR `source_model` LIKE '%special_price%'
OR `is_required` LIKE '%special_price%'
OR `is_user_defined` LIKE '%special_price%'
OR `default_value` LIKE '%special_price%'
OR `is_unique` LIKE '%special_price%'
OR `note` LIKE '%special_price%'
);
Run Code Online (Sandbox Code Playgroud)
注意:<database-name>用您的magento DB 替换.
您将在数据库中找到三行.导航到名为"Backend_model"的列,然后您将看到其中一个条目写为
catalog/product_attribute_backend_startdate_specialprice
所以,将上面的条目更改为
catalog/product_attribute_backend_startdate
保存数据库,然后在magento前端/后端刷新页面(创建并保存新产品).
我希望一切正常.祝好运!
干杯,Naveed.
PS:感谢所有帮助他人学习的人.
小智 6
打开phpMyadmin
来自你的magento db
选择eav_attribute表格
其中包含以下内容的行backend_model:
'目录/ product_attribute_backend_startdate_specialprice'
在phpMyadmin的SQL选项卡中试试这个:
SELECT * FROM `magentodbname`.`eav_attribute` WHERE `backend_model` = 'catalog/product_attribute_backend_startdate_specialprice'
Run Code Online (Sandbox Code Playgroud)
将后端模型更改为:
'EAV/entity_attribute_backend_datetime'
| 归档时间: |
|
| 查看次数: |
6309 次 |
| 最近记录: |