php - 未定义索引 : _attribute_set in magento product csv import from admin

标签 php mysql magento

我正在从 magento admin 导入产品 csv,然后当我在检查数据后单击导入按钮时,它会显示错误。

Notice: Undefined index: _attribute_set in /home/deleshop/public_html/v2/app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php on line 1394

一些产品示例数据是:

"sku","manufacturer_code","model","type_code","kba","category_code","mounting_space","part_number","reference_number","designation","custom_thumbnail","custom_image","price","note1","note2","supplier_id","_category","_root_category","_attribute_set","_type","_product_websites","custom_design","msrp_display_actual_price_type","msrp_enabled","name","options_container","status","visibility","weight","qty","use_config_min_qty","use_config_backorders","min_sale_qty","use_config_min_sale_qty","max_sale_qty","use_config_max_sale_qty","is_in_stock","notify_stock_qty","use_config_notify_stock_qty","manage_stock","use_config_manage_stock","use_config_qty_increments","use_config_enable_qty_inc"
"20M1","20","4368","16366","1004536","10190","","1","","anlasser Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)","","","120,00","Anlasser Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)"," laufleistung: 92300 Kmt<br>typen:<br>  Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)<br>kba: 1004536<br>   ","","","Root Catalog","Default","simple","base","default/galarainbow","Use config","Use config","anlasser Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)","Block after Info Column","1","4","1","1","1","1","1","1","1000","1","1","1","1","1","1","1","1"
"","","","","","","","","","","","","","","","","MOTOR","Root Catalog","","","","","","","","","","","","","","","","","","","","","","","","",""
"","","","","","","","","","","","","","","","","MOTOR/Startmotor","Root Catalog","","","","","","","","","","","","","","","","","","","","","","","","",""
"20M3","20","4368","16366","1004536","10230","","3","","lichtmaschine Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)","","","135,00","Lichtmaschine Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)"," laufleistung: 92300 Kmt<br>typen:<br>  Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)<br>kba: 1004536<br>   ","","","Root Catalog","Default","simple","base","default/galarainbow","Use config","Use config","lichtmaschine Chrysler Neon Ii (pl2000) 1.6  85 Kw  116 Ps (11.2001-12.2006)","Block after Info Column","1","4","1","1","1","1","1","1","1000","1","1","1","1","1","1","1","1"
"","","","","","","","","","","","","","","","","MOTOR","Root Catalog","","","","","","","","","","","","","","","","","","","","","","","","",""
"","","","","","","","","","","","","","","","","MOTOR/Dynamo","Root Catalog","","","","","","","","","","","","","","","","","","","","","","","","",""

最佳答案

在所有行中重复属性设置值(保留标题:_attribute_set),它为我解决了问题。

关于php - 未定义索引 : _attribute_set in magento product csv import from admin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24051916/

相关文章:

php - 如何使用 Imagemagick PHP API 将 .pdf 文件转换为 .png

mysql - 相似字符的唯一约束违规

php - "round"如何返回 float ?

php - undefined index 错误和数据未进入数据库

php - Linux SED 搜索每行替换多个

php - 如何将mysql表数据导出到excel 2007

python - WHERE 子句中的子查询

javascript - Magento 定制产品设计

php - Magento 模型保存方法更新记录而不是插入

php - Magento:在 pre_dispatch 观察者中停止调度