2013-05-31 40 views
0

我創建下拉列表,並在SQL改變source_model列(在另一個屬性中使用國家制造屬性的)屬性的設定值Magento的:無法保存

catalog/product_attribute_source_countryofmanufacture

我的新屬性顯示在後臺的國家列表,但是當我選擇國家和保存產品價值消失

下拉菜單的所有參數與country_of_manufacture屬性相同。

什麼可能是一個問題呢?我正在使用1.7.0.2版本。

回答

0
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 
+0

我在rood中創建了test.php文件,並添加了屬性然後保存了值!謝謝! –