Hey guys, so over the weekend I worked on a transactions (txnid) script to convert our ec_system over to ubercart.
Attached is the VERY ALPHA script. Some notes:
1) This is tested on a CLEAN ubercart database -- you should NOT use this script to convert an ec database to ubercart with data already in it!
2) This is tested only on POSTGRES, YMMV with MySQL.
3) It'd be cool to put this conversion script inside the 'import/export' tools in ubercart someday. But right now its a standalone script (like cron.php)
4) Payments from Authorize.net and Purchase Orders are only converted
-- Look in support for the Purchaseorder Patch
5) This is a script for those only who are well versed with PHP and SQL.
6) This script has not been optimized whatsoever -- I imported 2000 txns fine--but I have no clue what will happen with more.
INSTALL NOTES:
1) unzip/tar the script to your DOCROOT
2) make sure you have ubercart version ALPHA7 installed with the Authorize.Net and Credit card payment modules installed (plus all the core modules)
3) execute the script
-- if you have DEBUG=TRUE you will see tables spit out the data from ec and how it should look in uc
4) check your Store Administration utility for your orders--hope they're there!
Comments, patches, or suggestions? let me know
TODO:
Product import? I dunno, the products in Ubercart look way different than in ecommerce so I don't know if this will be possible.
| Preview | Attachment | Size |
|---|---|---|
| ec_ubercart_convert.tar.gz | 3.45 KB |



