Php Magento:Can';t保存属性的选定值(另一个属性中使用的制造国属性)
我创建了下拉列表,并在SQL中更改了source_model列Php Magento:Can';t保存属性的选定值(另一个属性中使用的制造国属性),php,sql,magento,Php,Sql,Magento,我创建了下拉列表,并在SQL中更改了source_model列 catalog/product\u attribute\u source\u country of manufacture 我的新属性在后端显示国家/地区列表,但当我选择国家/地区并保存产品时,值消失 下拉列表中的所有参数都与“制造”属性的“国家/地区”相同 这可能有什么问题?我使用的是1.7.0.2版本。我在rood中创建了creadet file test.php,然后添加的属性是saves value!谢谢 check whe
catalog/product\u attribute\u source\u country of manufacture
我的新属性在后端显示国家/地区列表,但当我选择国家/地区并保存产品时,值消失
下拉列表中的所有参数都与“制造”属性的“国家/地区”相同
这可能有什么问题?我使用的是1.7.0.2版本。我在rood中创建了creadet file test.php,然后添加的属性是saves value!谢谢
check whether it returns or not
SELECT * FROM eav_attribute WHERE attribute_code = 'country_of_manufacture';
it's better to create attribute using installer for this you can refer below link
https://github.com/benmarks/magento-mirror/blob/1.7.0.2/app/code/core/Mage/Catalog/sql/catalog_setup/upgrade-1.6.0.0.1-1.6.0.0.2.php#L28