Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Magento:Can';t保存属性的选定值(另一个属性中使用的制造国属性)_Php_Sql_Magento - Fatal编程技术网

Php Magento:Can';t保存属性的选定值(另一个属性中使用的制造国属性)

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

我创建了下拉列表,并在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 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