【发布时间】:2018-05-20 19:58:36
【问题描述】:
所以我是 Magento 的新手,但据我所知,产品类型是导入的必填字段。我的 csv 内容如下:
store,websites,attribute_set,type,sku,has_options,name,image,small_image,thumbnail,url_key,url_path,options_container,gift_message_available,page_layout,country_of_manufacture,msrp_enabled,msrp_display_actual_price_type,price,special_price,weight,status,tax_class_id,visibility,is_recurring,linen_type,enable_tabs,description,short_description,special_from_date,qty,min_qty,use_config_min_qty,is_qty_decimal,backorders,use_config_backorders,min_sale_qty,use_config_min_sale_qty,max_sale_qty,use_config_max_sale_qty,is_in_stock,low_stock_date,use_config_notify_stock_qty,manage_stock,use_config_manage_stock,stock_status_changed_auto,use_config_qty_increments,qty_increments,use_config_enable_qty_inc,enable_qty_increments,is_decimal_divided,stock_status_changed_automatically,use_config_enable_qty_increments,product_name,store_id,type_id,categories,gallery,img_label,has_color_picked,additional_catoverride,meta_title,meta_description
admin,base,Default,simple,111-1-BK-GG,0,HERCULES,Imperial,Series,Black,Leather,Chair,,,,,,Block,after,Info,Column,No,No,layout,updates,China,Use,config,Use,config,583,185.75,54,Disabled,Taxable,Goods,"Catalog, Search",No,UNKNOWN,No,"<ul class=""disc"">Your lobby or reception area is the forefront of your business and providing distinguished and comfortable seating is the first step towards making a great impression. The modern appeal of this chair will make a lasting impression with your visitors. Reception chairs are perfect for the office and as waiting room seating. The contemporary design of this furniture adapts in several different settings. This chair features streamlined stitching and elevated, curved hardwood feet. Not only will this chair fit in a professional environment, but will add a modern look to your home.<li>Contemporary Design<li>Office or Home Office Seating<li>Sloping Arms<li>Slightly Curved Seat and Back<li>Fixed Seat Cushion<li>1.8 High Density Foam<li>Sturdy Hardwood Construction<li>Cherry Stained Wood Feet<li>Black LeatherSoft Upholstery<li>LeatherSoft is leather and polyurethane for added Softness and Durability<li>CA117 Fire Retardant Foam</ul>","<ul class=""disc""><b>Black Leather Chair</b><li>Overall Dimensions: 33.50""W x 31""D x 29""H<li>Availability: In Stock. Usually ships within 24 business hours.</ul>",,0,0,1,0,0,1,1,1,0,1,0,,1,0,1,1,1,0,1,0
这是由一个单独的实体提供的,最初每个产品的列数比标题多。有了这些,检查数据返回"Column names have duplicates"。删除的内容返回了
Product Type is invalid or not supported in rows: 1
File is totally invalid. Please fix errors and re-upload file
Checked rows: 1, checked entities: 1, invalid rows: 1, total errors: 1
完全无效。
原来type_id 列改为product_type,产品行中的值与现在相同,1。请注意,还有一个type 列,其值为“simple”。在意识到这一点之前,我尝试了 product_type 的值“简单产品”、“简单”和“简单”。我还尝试将这些值与列标题的变体结合起来,例如当前的type_id 和_type,这两个都是我在网上研究这个问题时遇到的。
我也尝试过完全删除该列。没有任何区别。除了编写自己乏味的导入脚本,我还能做什么?
更新:该错误现在已经让位于另一个错误,谁会想到...(type_id=1 ok)
现在它告诉我
Can not find required columns: sku
Please fix errors and re-upload file
当所述列确实非常逐字存在时。我尝试移动列。我尝试更改 [albeit valid] 值。我什至尝试在目录 > 属性 > 管理属性中将字段 sku 设置为不需要。我仍然得到同样的悲惨结果。
我讨厌 Magento,但这仍然对我和其他任何人有任何好处。我该如何解决将一个简单的产品导入这个愚蠢的系统?
我什至通过 MageBees 模块尝试过,它给出了错误:产品 SKU 字段“sku”为空。不,它不是空的;它是 111-1-BK-GG。该死的。
【问题讨论】: