Post by airetechit » Mon Feb 15, 2010 11:12 pm

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.

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by airetechit » Tue Mar 09, 2010 9:30 pm


Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by basics » Tue Mar 30, 2010 11:41 pm

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

........................................................................
http://www.basicsdesignerclothing.co.uk
........................................................................


User avatar
Newbie

Posts

Joined
Fri Mar 26, 2010 4:44 pm

Post by airetechit » Tue Mar 30, 2010 11:59 pm

Zip File :)

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by basics » Wed Mar 31, 2010 12:02 am

airetechit wrote:Zip File :)
Thanks for that, ironically nothing would open it and when prompted for a web search, the results were negative! Bizarre!

::)

........................................................................
http://www.basicsdesignerclothing.co.uk
........................................................................


User avatar
Newbie

Posts

Joined
Fri Mar 26, 2010 4:44 pm

Post by SmallWalrus » Thu Apr 01, 2010 4:11 am

Does the new script preserve user passwords?

Newbie

Posts

Joined
Wed Mar 17, 2010 9:43 am

Post by airetechit » Thu Apr 01, 2010 4:53 pm

No, it doesn't convert passwords over, I haven't had chance to code this yet but it is on my list to do :)

Best Regards,
David Catherall,
AireTech IT.


New member

Posts

Joined
Fri Feb 05, 2010 1:46 am
Location - Goole, United Kingdom

Post by hellsmash » Fri Jun 04, 2010 10:27 pm

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

From and To Opencart Data Migration services | XML/CSV/XLS/TXT to Opencart data entry service | Opencart Update | Viste Bulgaria


New member

Posts

Joined
Wed Jan 20, 2010 10:24 pm


Post by Gorilla » Fri Jun 25, 2010 7:39 pm

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

mike = http://www.gorillagear.ca


New member

Posts

Joined
Fri Jun 25, 2010 7:14 am

Post by SteveSherry » Fri Jun 25, 2010 7:41 pm

I've heard good things about these guys:
http://www.shopping-cart-migration.com/ ... d=9355af29

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by vjcoop » Fri Jul 16, 2010 5:14 am

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

Newbie

Posts

Joined
Fri Jul 16, 2010 5:11 am

Post by Daniel » Fri Jul 16, 2010 5:19 am

you can download all the old contributions on the main page.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Xsecrets » Fri Jul 16, 2010 6:32 am

speaking of import. Wasn't algzone supposed to provide us with an oscommerce import script as part of their partnership or something like that?

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by IBBoard » Mon Sep 13, 2010 2:51 am

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.

New member

Posts

Joined
Sun Sep 12, 2010 3:30 am

Post by thegeneral » Sun Sep 19, 2010 12:03 am

I wish I found this thread a lot earlier it would have saved me some time pff ::) ::)

Manchester United


User avatar
Newbie

Posts

Joined
Sat Sep 18, 2010 10:52 pm

Post by IBBoard » Sun Sep 19, 2010 3:25 am

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.

New member

Posts

Joined
Sun Sep 12, 2010 3:30 am

Post by johnzhang » Sat May 14, 2011 11:04 pm

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

China Buy Dropship Buy From China Ebay Taobao


New member

Posts

Joined
Sun Apr 18, 2010 11:02 am


Post by IBBoard » Sun May 15, 2011 12:04 am

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.

New member

Posts

Joined
Sun Sep 12, 2010 3:30 am

Post by johnzhang » Sun May 15, 2011 10:03 am

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
...........................................................

China Buy Dropship Buy From China Ebay Taobao


New member

Posts

Joined
Sun Apr 18, 2010 11:02 am


Post by Gorilla » Thu Apr 12, 2012 12:27 am

picked up this http://stscript.info/useful-scripts/zen ... ol-support and it worked like a charm plus the support was awesome.

mike = http://www.gorillagear.ca


New member

Posts

Joined
Fri Jun 25, 2010 7:14 am
Who is online

Users browsing this forum: No registered users and 9 guests