magento捆绑产品进口 [英] bundle product import in magento

查看:76
本文介绍了magento捆绑产品进口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了magento 1.7.2版本,现在我的要求是导入Bundle产品,但是默认情况下magento将不提供这些功能.

I have installed magento 1.7.2 version, now my requirement is to import Bundle products but by default magento won't provide these feature.

所以谁能知道我该如何从CSV文件导入捆绑产品,或者是否有其他解决方案,请提出建议.

So can anyone know that how can I import the bundle product from CSV file or if have any alternative solution then please advise.

谢谢您的时间和考虑.

CSV文件包含:

sku,_store,_attribute_set,_type,_category,_root_category,_product_websites,说明,enable_googlecheckout,has_options,image,image_label,msrp_enabled名称,bundle_options,bundle_selections,price,required_options,short_description,special_image,special_date,special_image,状态,tax_class_id,缩略图,thumbnail_label,Updated_at,url_key,url_path

sku , _store , _attribute_set, _type, _category , _root_category , _product_websites , description , enable_googlecheckout , has_options , image , image_label , msrp_enabled name , bundle_options , bundle_selections , price , required_options , short_description , small_image , small_image_label , special_from_date , special_price , special_to_date , status , tax_class_id , thumbnail , thumbnail_label , updated_at , url_key , url_path

bb2,默认,捆绑,家具,默认,类别,基本,这是2个捆绑产品,1,1,no_selection,No,BB,RAM,radio,1,0,ram:0:0.0000:1:1.0000 :0,1,捆绑测试产品2,no_selection,01-10-13 0:00,30-10-13 0:00,1,no_selection,07-10-13 14:38,bb2,bb.html

bb2 , Default , bundle , Furniture , Default , Category , base , This is 2 bundle product , 1 , 1 , no_selection , No , BB , RAM,radio,1,0 , ram:0:0.0000:1:1.0000:0 , 1 , Bundle Test Product 2 , no_selection , 01-10-13 0:00 , 30-10-13 0:00 , 1 , no_selection , 07-10-13 14:38 , bb2 , bb.html

推荐答案

您将需要使用Magento数据流(系统->导入/导出->数据流-高级配置文件).创建一个新的配置文件,并为您的配置文件操作XML添加以下内容:

You'll need to use the Magento Dataflow (System -> Import/Export -> Dataflow - Advanced Profiles). Create a new profile, and add in the following for your Profile Actions XML:

<action type="dataflow/convert_adapter_io" method="load">
    <var name="type">file</var>
    <var name="path">var/import</var>
    <var name="filename"><![CDATA[name_of_file.csv]]></var>
    <var name="format"><![CDATA[csv]]></var>
</action>

<action type="dataflow/convert_parser_csv" method="parse">
    <var name="delimiter"><![CDATA[,]]></var>
    <var name="enclose"><![CDATA["]]></var>
    <var name="fieldnames">true</var>
    <var name="store"><![CDATA[0]]></var>
    <var name="number_of_records">1</var>
    <var name="decimal_separator"><![CDATA[.]]></var>
    <var name="adapter">catalog/convert_adapter_productimport</var>
    <var name="method">parse</var>
</action>

接下来,您将要创建一个包含以下字段的CSV文件:store, websites, attribute, type, sku, name, price, bundle_options, bundle_selections和要上传的其他任何字段.

Next you'll want to create a CSV file with the following fields: store, websites, attribute, type, sku, name, price, bundle_options, bundle_selections and any other fields you want to upload.

现在是棘手的部分:填写这些字段.捆绑软件选项的格式如下:product1_name,selection_type,default_qty,position|product2_name,selection_type,default_qty,position.所以看起来像product1,radio,1,0|product2,radio,1,0

Now comes the tricky part: filling in those fields. The bundle options are in the following format: product1_name,selection_type,default_qty,position|product2_name,selection_type,default_qty,position. So it will look like product1,radio,1,0|product2,radio,1,0

Bundle_selections有点难,但是看起来像这样:

Bundle_selections is a bit tougher, but looks like this:

product1_sku:0:0.0000:1:1.0000:0|product2_sku:0:0.0000:1:1.0000:

示例CSV文件

商店,网站,属性集,类型,类别ID,SKU,名称,价格,简短描述,描述,值,图像,小图像,缩略图,保证书,重量,税种ID,邮政信箱,状态,可见性,分组的,捆绑选项,捆绑选择,价格类型,sku_type admin,基本",默认值,捆绑包,7,product_sku,我的产品名称,此处的详细描述",此处的另一个描述",此处的价格提供",/image.png,/image.png,/image.png,更多文本",19,无,否,已启用,目录,搜索","Name1,radio,1,0 | Name2,radio,1,0",Sku1:0:0.0000:1: 1.0000:0 | Sku2:0:0.0000:1:1.0000:,0,1

store,websites,attribute_set,type,category_ids,sku,name,price,short_description,description,value_offer,image,small_image,thumbnail,guarantee,weight,tax_class_id,po_box,status,visibility,grouped,bundle_options,bundle_selections,price_type,sku_type admin,"base",Default,bundle,7,product_sku,My Product Name,,"Really long description here","Another description bit here","value offer here",/image.png,/image.png,/image.png,"more text",19,None,no,Enabled,"Catalog, Search",,"Name1,radio,1,0|Name2,radio,1,0",Sku1:0:0.0000:1:1.0000:0|Sku2:0:0.0000:1:1.0000:,0,1

这篇关于magento捆绑产品进口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆