Script to migrate product catalog from Opencart to Square POS. Just change the variables at the top of the script and run.
- All opencart catagories are already in Square
- Opencart database tables are prefixed with "oc_"
- Queries the opencart mysql data for a list of products
- Checks that the main image for all products actually exist
- Converts the product data into Square's Product/Variant structure
- Creates the product with it's variants in Square with inventory enabled
- Updates the inventory of each product
- Uploads and assigns master image for each product based on opencart's main image
- Enables tax fee on all products
- Assumes all opencart catagories already exists in square
- Where a product has multiple options, inventory is not recorded correctly since opencart does not record this
- Assumes Tax fee is the first fee in the list
- Cannot resume a migration, all products have to be deleted and migration needs to start again. But, updating of tax fees can be done in isolation.