【问题标题】:Testing product import to Magento 1.9, "Product Type is invalid or not supported" NO MATTER WHAT?测试到 Magento 1.9 的产品导入,“产品类型无效或不受支持” 没关系?
【发布时间】: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。该死的。

【问题讨论】:

    标签: php csv magento import


    【解决方案1】:

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

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

    【讨论】:

    • 我知道 Magento 绝对有 100% 的替代品,但现在这不是我的选择。
    【解决方案2】:

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

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

    这是一个很好的指南(我从中引用了上面的文字)可以帮助你:https://www.mag-manager.com/useful-articles/tipstricks/required-csv-file-values-for-error-free-magento-import-via-admin/

    【讨论】:

    • 好吧,我很肯定我已经尝试过 type_id=1,我必须拥有;但现在尝试它通过了那个障碍。我从未将列标题更改为 product_type,它就是这样来的。
    • 但现在显示“找不到所需的列:sku”
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多