php - bundle product import in magento -


i have installed magento 1.7.2 version, requirement import bundle products default magento won't provide these feature.

so can know how can import bundle product csv file or if have alternative solution please advise.

thank time , consideration.

csv files contains:

fields:

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

values:

bb2 , default , bundle , furniture , default , category , base , 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

you'll need use magento dataflow (system -> import/export -> dataflow - advanced profiles). create new profile, , add in following 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> 

next you'll want create csv file following fields: store, websites, attribute, type, sku, name, price, bundle_options, bundle_selections , other fields want upload.

now comes tricky part: filling in fields. bundle options in following format: product1_name,selection_type,default_qty,position|product2_name,selection_type,default_qty,position. product1,radio,1,0|product2,radio,1,0

bundle_selections bit tougher, looks this:

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

edit:

example csv file

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


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -