测试产品导入到Magento 1.9,"产品类型无效或不受支持"无论?

时间:2017-12-06 20:14:00

标签: php csv magento import

所以我是Magento的新手,但从我收集的产品类型是导入的必填字段。我的csv内容如下:

from turtle import Turtle, Screen

screen = Screen()

s13 = Turtle('square')
s13.color('red', 'blue')
s13.shapesize(1, 3, 2)
s13.penup()

def jump():
    s13.color(*reversed(s13.color()))

# moving platform
def move_platform():
    s13.backward(3)

    if s13.xcor() > 250:
        s13.setheading(0)
    if s13.xcor() < -200:
        s13.setheading(180)

    screen.ontimer(move_platform, 100)

# ...
screen.onkey(jump, "Up")
screen.listen()

move_platform()

screen.mainloop()

这是由一个单独的实体提供的,最初每个产品的列数多于标题。有了这些,检查数据返回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,产品行中的值与现在相同,1。请注意,还有一个product_type列,其值为&#34;简单&#34 ;.在意识到这一点之前,我尝试了价值观&#34;简单产品&#34;,&#34;简单&#34;和&#34;简单&#34;为type。我还尝试将这些值与列标题的变体结合起来,例如当前product_typetype_id,这两个都是我在线研究此问题时遇到的。

我也试过完全删除该列。没有任何区别。除了编写自己繁琐的导入脚本之外,我该怎么办?

更新:这个错误已经让位给另一个人了,谁会想到......(type_id = 1 ok)

现在它告诉我

_type

当所述专栏逐字逐字存在时。我试着移动专栏。我尝试更改[虽然有效]值。我甚至尝试将字段Can not find required columns: sku Please fix errors and re-upload file 设置为目录&gt;中不需要属性&gt;管理属性。我仍然得到同样悲伤的结果。

我讨厌Magento,但这对我和其他任何人都没有好处。如何解决将一个简单的产品导入这个愚蠢的系统?

我甚至尝试通过MageBees模块,它给出了错误:产品SKU字段&#34; sku&#34;是空的。不,它不是空的;它的111-1-BK-GG。该死。

2 个答案:

答案 0 :(得分:0)

  

type_id或_type - 此字段应包含该信息   指定产品属于哪种类型,换句话说,如果是   一个组件或复杂的。这里应该指定:简单,   可配置,虚拟,可下载,分组或捆绑值。注意   它区分大小写,值不应大写。

您的date字段应改为type。我不确定你为什么更改名称type_id,但我认为你应该保留原样或删除它。

这是一个很好的指南(我引用了上面的文字),它将对您有所帮助:https://www.mag-manager.com/useful-articles/tipstricks/required-csv-file-values-for-error-free-magento-import-via-admin/

答案 1 :(得分:0)

停止为这些问题尝试解决方案,一旦找到解决方案,大多数情况下,您最终会再遇到一个问题&amp;等等。

那么,如何解决?去Magmi,学习它&amp;一旦完成模式,您就可以轻松上传数百万种产品....