Page 1 of 2

ZenCart Import

Posted: Mon Feb 15, 2010 11:12 pm
by airetechit
Hi all,

Not really a new modification, however I was trying to import data from ZenCart to OpenCart, I found Franz-Peter's Oscommerce Data Importer module and made one slight edit to get it to import a ZenCart database.

Step 1. Download Franz-Peters contrib here:

http://www.opencart.com/index.php?route ... ion_id=276

Step 2. Follow install instructions provided regarding config file changes

Step 3. Make the following code change:

Replace: import_osc_orders.php (around line 237)

Code: Select all

$query_orders = "SELECT orders.orders_id, orders.customers_id, orders.customers_name, orders.customers_telephone, orders.customers_email_address, orders.delivery_name, orders.delivery_street_address, orders.delivery_suburb, orders.delivery_city, orders.delivery_postcode, orders.delivery_country, orders.billing_name, orders.billing_company, orders.billing_street_address, orders.billing_suburb, orders.billing_city, orders.billing_postcode, orders.billing_country, orders.payment_method, orders.cc_type, orders.cc_owner, orders.cc_number, orders.cc_expires, orders.last_modified, orders.date_purchased, orders.orders_status, orders.currency, orders.currency_value, orders_total.value, customers.customers_firstname, customers.customers_lastname  FROM  orders INNER JOIN (customers) ON (customers.customers_id = orders.customers_id) LEFT JOIN orders_total ON orders.orders_id = orders_total.orders_id AND orders_total.class = 'ot_total'" ;
with:

Code: Select all

$query_orders = "SELECT * FROM  " . $source_db_table_prefix . "orders INNER JOIN (" . $source_db_table_prefix . "customers) ON (" . $source_db_table_prefix . "customers.customers_id = " . $source_db_table_prefix . "orders.customers_id) LEFT JOIN " . $source_db_table_prefix . "orders_total ON " . $source_db_table_prefix . "orders.orders_id = " . $source_db_table_prefix . "orders_total.orders_id AND " . $source_db_table_prefix . "orders_total.class = 'ot_total'" ;
Imports Customers & Orders only. Does not import customer passwords correctly, maybe someone can code this? Works fine when importing from ZenCart 1.3.8 to OpenCart 1.3.4.

Re: ZenCart Import

Posted: Tue Mar 09, 2010 9:30 pm
by airetechit

Re: ZenCart Import

Posted: Tue Mar 30, 2010 11:41 pm
by basics
Hey

What is the file format is this contribution? The mac and pc do not recognise it.
Updated for 1.4.2 :)

http://www.opencart.com/index.php?route ... ion_id=465
Thanks

Re: ZenCart Import

Posted: Tue Mar 30, 2010 11:59 pm
by airetechit
Zip File :)

Re: ZenCart Import

Posted: Wed Mar 31, 2010 12:02 am
by basics
airetechit wrote:Zip File :)
Thanks for that, ironically nothing would open it and when prompted for a web search, the results were negative! Bizarre!

::)

Re: ZenCart Import

Posted: Thu Apr 01, 2010 4:11 am
by SmallWalrus
Does the new script preserve user passwords?

Re: ZenCart Import

Posted: Thu Apr 01, 2010 4:53 pm
by airetechit
No, it doesn't convert passwords over, I haven't had chance to code this yet but it is on my list to do :)

Re: ZenCart Import

Posted: Fri Jun 04, 2010 10:27 pm
by hellsmash
I have maked script to do this work. Its query based and moves products, categories, attributes, manufacturers and custumers to Opencart. You can find it here Klik

Re: ZenCart Import

Posted: Fri Jun 25, 2010 7:39 pm
by Gorilla
how good is this site at migrating the info from zencart? i've been a zencart user since 2006 and i'm thinking of crossing over to open cart as i really like what i've seen from peoples live sites

Re: ZenCart Import

Posted: Fri Jun 25, 2010 7:41 pm
by SteveSherry
I've heard good things about these guys:
http://www.shopping-cart-migration.com/ ... d=9355af29

Re: ZenCart Import

Posted: Fri Jul 16, 2010 5:14 am
by vjcoop
Hi:

Every link except the commercial one here is dead. I'd love to look at these tools, am testing Open Cart now and need to import some ZenCart data - sooooo.

Anyone got a current link to a free data conversion script? Or should I look to go CSV to CSV?

Thanks,

John

Re: ZenCart Import

Posted: Fri Jul 16, 2010 5:19 am
by Daniel
you can download all the old contributions on the main page.

Re: ZenCart Import

Posted: Fri Jul 16, 2010 6:32 am
by Xsecrets
speaking of import. Wasn't algzone supposed to provide us with an oscommerce import script as part of their partnership or something like that?

Re: ZenCart Import

Posted: Mon Sep 13, 2010 2:51 am
by IBBoard
It took me a while, but I found the download of the old mods. It's on the right-hand side of the Extensions page, under the "Submit" heading, where it says:
If you are looking for older extensions you can download them all as one zip file here.
The file is "ZEN import.zip.1268141378". I'm working my way through it now and have a couple of patches so far:

Import patch - Fixes a query syntax bug when your tables don't have a prefix
Password patch - Makes OpenCart use the Zen Cart password format, if the user uses them. It is impossible to convert the passwords from Zen Cart to OpenCart because Zen Cart salts its passwords, but it is possible to do the salting and check against the old password, which is what this does.

I'll post more when I get it :) Does anyone know what the license of the original importer? I'd like to redistribute my modified/completed version (preferably under the GPL, to match OpenCart), but I don't have any info on the old MOD.

Re: ZenCart Import

Posted: Sun Sep 19, 2010 12:03 am
by thegeneral
I wish I found this thread a lot earlier it would have saved me some time pff ::) ::)

Re: ZenCart Import

Posted: Sun Sep 19, 2010 3:25 am
by IBBoard
Okay, a couple of extras :)

Another patch for the old importer to put all customers in the "default" group (id 8 )

Product and currency importer v0.1 - started from the old importer, but extensively reworked for reduced repetition.

Hopefully someone will find them useful. I plan to finish them at some point and rewrite the old stuff using the new code, but they're GPLed so anyone can make their own changes.

Re: ZenCart Import

Posted: Sat May 14, 2011 11:04 pm
by johnzhang
which open version can use the import?
Notice: Undefined variable: target_db_table_prefix in D:\PC_webserver\phproot\zentcart\import_zen_functions.php on line 203
Field 'sku' doesn't have a default value
Incorrect date value: '' for column 'date_available' at row 1

Re: ZenCart Import

Posted: Sun May 15, 2011 12:04 am
by IBBoard
I was using the latest version of 1.4.x at the time. I'll see if I can investigate later, but it looks like you've got a missing variable at the least.

Re: ZenCart Import

Posted: Sun May 15, 2011 10:03 am
by johnzhang
Thanks For you replay ,
I have also got the error:
Notice: Undefined offset: 2 in D:\PC_webserver\phproot\zentcart\import_zen_functions.php on line 240
Notice: Undefined offset: 3 in D:\PC_webserver\phproot\zentcart\import_zen_functions.php on line 240

Notice: Undefined offset: 4 in D:\PC_webserver\phproot\zentcart\import_zen_functions.php on line 240
...........................................................

Re: ZenCart Import

Posted: Thu Apr 12, 2012 12:27 am
by Gorilla
picked up this http://stscript.info/useful-scripts/zen ... ol-support and it worked like a charm plus the support was awesome.