php - Compare two CSV files and update prices on the main CSV -
magento csv
sku,price bfj182h,£89.85 bfj135y,£163.10 ec32,£100.00 ec37,£104.00
price update sheet
sku,price bfj182h,£109.47 bfj135y,£180.28 ec32,£150.69 ec37,£200.73
basically want run query searches sku codes in price update sheet , compares price price update sheet against price magento csv , if price different in magento csv price in price update sheet regardless of if lower or higher , update price on magento csv same price update sheet.
how can go doing this?
which can put full csv , re upload site update prices.
use magmi instead. http://sourceforge.net/projects/magmi/
it takes little while learn -- when around learning import processes using tool, you'll never back.
read docs! http://sourceforge.net/apps/mediawiki/magmi/index.php?title=main_page
for magmi, price update sheet alone sufficient update. (you don't need original csv really, assuming have values magento csv current prices on magento store). need 'store' column after sku e.g.:
sku,store,price bfj182h,admin,109.47 bfj135y,admin,180.28 ec32,admin,150.69 ec37,admin,200.73
the above assumes default store currency gbp (£) , store value set @ 'admin' tells magmi update default values. replace appropriate store code(s). more @ documentation specific feature: http://sourceforge.net/apps/mediawiki/magmi/index.php?title=magmi_behaviour_-_store_column
good luck!
Comments
Post a Comment