|
The convertor reads the Godaddy shopping cart CSV file to import your products, product categories, and prices into Virtuemart. Apparently, it is not possible to export your product images in bulk from the Godaddy shopping cart. The image download script will scrape your existing website and recover the full image files one by one from your Godaddy shop. It saves you from repeatedly copying and pasting the image files one by one.
The convertor has two script folders: load-productrecords and download-images.
You can download the converter here: godaddy2virtuemart.zip
1. load-productrecords
The configuration file (load-godaddy.config.php) for the script requires the following data:
<?php $dbserver=''; //virtuemart database server $user=''; //virtuemart database user $pwd=''; //virtuemart database password $dbname=''; //virtuemart database name $prefix='jos'; //table prefix $csvfile=''; //path to csv file to upload into virtuemart ?>
I seriously recommend to try this on a staging server first. Do not execute this kind of script on a live server without trying this in staging. Execute the script at the command line:
$ ./load-godaddy.php
Your Virtuemart database should now contain your godaddy categories, products, and prices.
2. download-images
The configuration file (dowload.config.sh) for the script requires the following data:
#!/bin/sh #site url, such as www.mysite.com url="" #categories separated by a space categories=""
First download the category pages:
$ ./download-catpages.sh
The script will download the category pages to the folder catpages.
Then download the product pages:
$ ./download-prodpages.sh
The script will download the product detail pages to the folder prodpages.
Then download the images:
$ ./download-images.sh
the script will download the full-size image pages to the folder images. The image filename will stored as [SKU].jpg; with SKU (Stock Keeping Unit==product identification code) the SKU stored in the product record.
Copy the images in the images subfolder to the subfolder components/com_virtuemart/shop_image/product in the joomla folder. Virtuemart will automatically create the thumbnails from these full images at first use.
Your Virtuemart shop should contain all your products and their images now. Enjoy!
|