rss

eCommerce Import - Convert CSV to XML

The first line of the CSV must contain the names of the XML file attributes. The remaining lines should have the corresponding data - one line per product. This script expects data in the following format:

SKU,Name,Price,Image,Occasion,Flowers,Plants,Colors,,Description,Opt1 Name,Opt1 Delta,Opt2 Name,Opt2 Delta
FSN3-1,Rainbow of Blooms,55,VA02307lg.jpg,Any Occasion,,,,,,Token,-10,Premium,10
FSN3-2,Pretty Posy,55,VA2107lg.jpg,Any Occasion,,,,,,Token,-10,Premium,10
FSN3-3,Hello Sunshine,50,VA02607lg.jpg,Any Occasion,,,,,,Token,-10,Premium,10
FSN5-1,Flower Power,55,VA06908LG.jpg,Any Occasion,,,,,,Token,-10,Premium,10
FSN5-2,Very Special Delivery,50,VA06608LG.jpg,Any Occasion,,,,,,Token,-10,Premium,10
FSN5-3,High Style Blooms,50,AO00108lg.jpg,Any Occasion,,,,,,Token,-10,Premium,10
FSN7-1,Have A Sunny Day,60,BA00207lg.jpg,Any Occasion,,,,,,Token,-10,Premium,10
FSN7-2,Fruit Sorbet,45,VA02006lg.jpg,Any Occasion,,,,,,Token,-10,Premium,10