Forums / Managing Customers and Orders / Importing Users, order, and products from OsCommerce

Importing Users, order, and products from OsCommerce

Locked

Views: 9,736

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
5 Oct 2007, 12:09 AM
#1
christiansees avatar

christiansees

New Zenner

Join Date:
Oct 2007
Posts:
5
Plugin Contributions:
0

Importing Users, order, and products from OsCommerce

Hello,
I am trying to import all my users, orders, and products, from OsCommerce. I know that there is probably already a thread here regarding this but I can't seem to get any useful results from the search. I also searched the wiki and had worse results there. Any pointers would be appreciated. Links to threads etc.
Thanks

5 Oct 2007, 3:07 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Importing Users, order, and products from OsCommerce

In the top bar far right is tutorials/FAQ's - a quick search nets this How do I import my OSC database into Zen Cart

Zen-Venom Get Bitten

5 Oct 2007, 10:39 PM
#3
christiansees avatar

christiansees

New Zenner

Join Date:
Oct 2007
Posts:
5
Plugin Contributions:
0

Re: Importing Users, order, and products from OsCommerce

Kobra
Thanks for your reply. I did look over this faq.
And it says "*This only copies over your categories and products..!" Which is less than I need. Surely as Zen cart is an "Upgrade" from OsCommerce there are people who have made the complete conversion?
Christian

5 Oct 2007, 11:38 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,682
Plugin Contributions:
0

Re: Importing Users, order, and products from OsCommerce

... use the same principals from the FAQ to import the rest of your information.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

8 Oct 2007, 7:48 PM
#5
christiansees avatar

christiansees

New Zenner

Join Date:
Oct 2007
Posts:
5
Plugin Contributions:
0

Re: Importing Users, order, and products from OsCommerce

I should have remembered from the OsCommerce forums that the search function is bunk and that you get much better results from google.
Here is the thread that I needed for all others future reference.
http://www.zen-cart.com/forum/showthread.php?t=20788

9 Oct 2007, 6:31 PM
#7
christiansees avatar

christiansees

New Zenner

Join Date:
Oct 2007
Posts:
5
Plugin Contributions:
0

Re: Importing Users, order, and products from OsCommerce

christiansees:

And this http://www.zen-cart.com/forum/showthread.php?t=15667

Isn't there anyone else out there working on this? I would post to the thread listed above but it seems I don't have permission. So here goes messing about with multiple threads.
When I try to run the script ```
Convert OSC to ZENCART CUSTOMER; CATEGORY; PRODUCTS and ORDERS

ALTER TABLE customers ADD customers_nick VARCHAR( 96 ) NOT NULL AFTER customers_email_address;
ALTER TABLE customers ADD customers_group_pricing INT( 11 ) DEFAULT '0' NOT NULL;
ALTER TABLE customers ADD customers_email_format VARCHAR( 4 ) DEFAULT 'TEXT' NOT NULL;
ALTER TABLE customers ADD customers_authorization int(1) NOT NULL default '0';
ALTER TABLE customers ADD customers_referral VARCHAR(32) NOT NULL default '';

ALTER TABLE orders ADD payment_module_code varchar(32) NOT NULL default ''AFTER payment_method;
ALTER TABLE orders ADD shipping_method varchar(128) NOT NULL default '' AFTER payment_module_code;
ALTER TABLE orders ADD shipping_module_code varchar(32) NOT NULL default '' AFTER shipping_method;
ALTER TABLE orders ADD coupon_code varchar(32) NOT NULL default '' AFTER shipping_module_code;
ALTER TABLE orders ADD cc_cvv blob AFTER cc_expires;
ALTER TABLE orders ADD order_total decimal(14,2) default NULL;
ALTER TABLE orders ADD order_tax decimal(14,2) default NULL;
ALTER TABLE orders ADD paypal_ipn_id INT( 11 ) DEFAULT '0' NOT NULL;
ALTER TABLE orders ADD ip_address varchar(15) NOT NULL default '';

ALTER TABLE orders_products CHANGE products_quantity products_quantity FLOAT DEFAULT '0' NOT NULL;
ALTER TABLE orders_products ADD onetime_charges decimal(15,4) NOT NULL default '0.0000';
ALTER TABLE orders_products ADD products_priced_by_attribute tinyint(1) NOT NULL default '0';
ALTER TABLE orders_products ADD product_is_free tinyint(1) NOT NULL default '0';
ALTER TABLE orders_products ADD products_discount_type tinyint(1) NOT NULL default '0';
ALTER TABLE orders_products ADD products_discount_type_from tinyint(1) NOT NULL default '0';

ALTER TABLE products ADD products_type INT( 11 ) DEFAULT '1' NOT NULL AFTER products_id;
ALTER TABLE products ADD products_virtual TINYINT( 1 ) DEFAULT '0' NOT NULL AFTER products_price;
ALTER TABLE products CHANGE products_weight products_weight FLOAT DEFAULT '0' NOT NULL;
ALTER TABLE products CHANGE products_ordered products_ordered FLOAT DEFAULT '0' NOT NULL;
ALTER TABLE products ADD products_quantity_order_min FLOAT DEFAULT '1' NOT NULL;
ALTER TABLE products ADD products_quantity_order_units FLOAT DEFAULT '1' NOT NULL;
ALTER TABLE products ADD products_priced_by_attribute tinyint(1) NOT NULL default '0';
ALTER TABLE products ADD product_is_free tinyint(1) NOT NULL default '0';
ALTER TABLE products ADD product_is_call tinyint(1) NOT NULL default '0';
ALTER TABLE products ADD products_quantity_mixed tinyint(1) NOT NULL default '0';
ALTER TABLE products ADD product_is_always_free_shipping tinyint(1) NOT NULL default '0';
ALTER TABLE products ADD products_qty_box_status tinyint(1) NOT NULL default '1';
ALTER TABLE products ADD products_quantity_order_max FLOAT DEFAULT '0' NOT NULL;
ALTER TABLE products ADD products_sort_order int(11) NOT NULL default '0';
ALTER TABLE products ADD products_discount_type tinyint(1) NOT NULL default '0';
ALTER TABLE products ADD products_discount_type_from tinyint(1) NOT NULL default '0';
ALTER TABLE products ADD products_price_sorter decimal(15,4) NOT NULL default '0.0000';
ALTER TABLE products ADD master_categories_id int(11) NOT NULL default '0';
ALTER TABLE products ADD products_mixed_discount_quantity tinyint(1) NOT NULL default '1';
ALTER TABLE products ADD metatags_title_status TINYINT( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE products ADD metatags_products_name_status TINYINT( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE products ADD metatags_model_status TINYINT( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE products ADD metatags_price_status TINYINT( 1 ) DEFAULT '0' NOT NULL;
ALTER TABLE products ADD metatags_title_tagline_status TINYINT( 1 ) DEFAULT '0' NOT NULL;

ALTER TABLE categories ADD categories_status TINYINT( 1 ) DEFAULT '1' NOT NULL;
ALTER TABLE categories_description ADD categories_description TEXT NOT NULL;

ALTER TABLE banners_history ADD INDEX idx_banners_id_zen ( banners_id );
ALTER TABLE banners ADD INDEX idx_status_group_zen ( status, banners_group );

ALTER TABLE specials ADD INDEX idx_status_zen ( status );
ALTER TABLE specials ADD INDEX idx_products_id_zen ( products_id );
ALTER TABLE specials ADD INDEX idx_date_avail_zen ( specials_date_available );

ALTER TABLE featured ADD INDEX idx_status_zen ( status );
ALTER TABLE featured ADD INDEX idx_products_id_zen ( products_id );
ALTER TABLE featured ADD INDEX idx_date_avail_zen ( featured_date_available );

ALTER TABLE salemaker_sales ADD INDEX idx_sale_status_zen ( sale_status );

ALTER TABLE categories ADD INDEX idx_categories_parent_id_TEST ( parent_id );
ALTER TABLE categories ADD INDEX idx_parent_id_cat_id_zen ( parent_id, categories_id );
ALTER TABLE categories ADD INDEX idx_status_zen ( categories_status );

ALTER TABLE product_types_to_category ADD INDEX idx_category_id_zen ( category_id );
ALTER TABLE product_types_to_category ADD INDEX idx_product_type_id_zen ( product_type_id );
ALTER TABLE product_types ADD INDEX idx_type_master_type_zen ( type_master_type );

ALTER TABLE products ADD INDEX idx_products_status_zen ( products_status );

ALTER TABLE products_to_categories ADD INDEX idx_cat_prod_id_zen (categories_id, products_id);
ALTER TABLE products_attributes ADD INDEX idx_id_options_id_values_zen ( products_id, options_id, options_values_id );

ALTER TABLE products_discount_quantity ADD INDEX idx_id_qty_zen ( products_id, discount_qty );
ALTER TABLE products_options_values_to_products_options ADD INDEX idx_prod_opt_val_id_zen ( products_options_values_id );
ALTER TABLE products_options ADD INDEX idx_lang_id_zen ( language_id );

ALTER TABLE tax_rates ADD INDEX idx_tax_zone_id_zen ( tax_zone_id );
ALTER TABLE tax_rates ADD INDEX idx_tax_class_id_zen ( tax_class_id );

ALTER TABLE configuration ADD INDEX idx_key_value_zen ( configuration_key, configuration_value(10) );
ALTER TABLE configuration_group ADD INDEX idx_visible_zen ( visible );
ALTER TABLE configuration ADD INDEX idx_cfg_grp_id_zen ( configuration_group_id );
ALTER TABLE product_type_layout ADD INDEX idx_key_value_zen ( configuration_key, configuration_value(10) );

ALTER TABLE customers ADD INDEX idx_email_address_zen ( customers_email_address );
ALTER TABLE customers ADD INDEX idx_referral_zen ( customers_referral(10) );
ALTER TABLE customers ADD INDEX idx_grp_pricing_zen ( customers_group_pricing );
ALTER TABLE customers ADD INDEX idx_nick_zen ( customers_nick );
ALTER TABLE customers ADD INDEX idx_newsletter_zen ( customers_newsletter );
ALTER TABLE customers_basket ADD INDEX idx_customers_id_zen ( customers_id );
ALTER TABLE customers_basket_attributes ADD INDEX idx_cust_id_prod_id_zen ( customers_id, products_id(36) );

ALTER TABLE orders ADD INDEX idx_status_orders_cust_zen ( orders_status, orders_id, customers_id );
#ALTER TABLE orders ADD INDEX idx_customers_id_zen ( customers_id );
ALTER TABLE orders_status_history ADD INDEX idx_orders_id_status_id_zen ( orders_id, orders_status_id );
ALTER TABLE orders_products ADD INDEX idx_orders_id_zen ( orders_id );
ALTER TABLE orders_products ADD INDEX orders_id_prod_id_zen ( orders_id , products_id );
ALTER TABLE orders_products_attributes ADD INDEX idx_orders_id_prod_id_zen ( orders_id , orders_products_id );
ALTER TABLE orders_products_download ADD INDEX idx_orders_id_zen ( orders_id );
ALTER TABLE orders_products_download ADD INDEX idx_orders_products_id_zen ( orders_products_id );

ALTER TABLE layout_boxes ADD INDEX idx_name_template_zen ( layout_template, layout_box_name );

ALTER TABLE coupon_gv_queue ADD INDEX idx_release_flag_zen ( release_flag );
ALTER TABLE coupons ADD INDEX idx_active_type_zen ( coupon_active, coupon_type );
ALTER TABLE coupons_description DROP INDEX coupon_id;
ALTER TABLE coupons_description ADD PRIMARY KEY (coupon_id, language_id);
ALTER TABLE coupon_restrict ADD INDEX idx_coup_id_prod_id_zen (coupon_id, product_id);
ALTER TABLE coupon_redeem_track ADD INDEX idx_coupon_id_zen ( coupon_id );
ALTER TABLE coupon_gv_queue DROP INDEX uid;
ALTER TABLE coupon_gv_queue ADD INDEX idx_cust_id_order_id_zen ( customer_id , order_id );
ALTER TABLE coupon_email_track ADD INDEX idx_coupon_id_zen ( coupon_id );

ALTER TABLE reviews ADD INDEX idx_products_id_zen ( products_id );
ALTER TABLE reviews ADD INDEX idx_customers_id_zen ( customers_id );

ALTER TABLE admin ADD INDEX idx_admin_name_zen ( admin_name );

ALTER TABLE files_uploaded ADD INDEX idx_customers_id_zen ( customers_id );

ALTER TABLE email_archive DROP INDEX email_to;
ALTER TABLE email_archive ADD INDEX idx_email_to_address_zen ( email_to_address );
ALTER TABLE email_archive DROP INDEX module;
ALTER TABLE email_archive ADD INDEX idx_module_zen ( module );

ALTER TABLE media_to_products ADD INDEX idx_media_product_zen ( media_id, product_id );
ALTER TABLE media_clips ADD INDEX idx_media_id_zen ( media_id );
ALTER TABLE product_music_extra ADD INDEX idx_music_genre_id_zen ( music_genre_id );

ALTER TABLE paypal ADD INDEX idx_zen_order_id_zen ( zen_order_id );
ALTER TABLE paypal_payment_status_history ADD INDEX idx_paypal_ipn_id_zen ( paypal_ipn_id );
ALTER TABLE paypal_session ADD INDEX idx_session_id_zen ( session_id(36) );

First I found several end of line errors. Then I got this error ALTER TABLE specials ADD INDEX idx_date_avail_zen( specials_date_available ) ; no such item.
Suggestions, constructive help?
thanks
9 Oct 2007, 10:43 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Importing Users, order, and products from OsCommerce

If you view the date on that thread it is 2005 and there have been b'out 6 updates since then so you must check the tables & names

Zen-Venom Get Bitten

5 Nov 2007, 12:15 AM
#9
Join Date:
Nov 2007
Location:
oregon
Posts:
70
Plugin Contributions:
0

Re: Importing Users, order, and products from OsCommerce

hi christiansees

did you get everything all worked out ok? If so any pointers I am just thanking of converting over myself from osc I have mainly all downloadable products and services in my store.

15 Nov 2007, 5:28 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Importing Users, order, and products from OsCommerce

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Nov 2007, 5:35 AM
#12
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Importing Users, order, and products from OsCommerce

Thank You for pointing this out..bookmarked
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

20 Nov 2007, 4:04 PM
#13
david_paul avatar

david_paul

New Zenner

Join Date:
Nov 2007
Posts:
5
Plugin Contributions:
0

Re: Importing Users, order, and products from OsCommerce

Okay...
I have an excel spreadsheet with customer (member) info.
I need to import that into ZenCart so that our 4000 members start with the "wholesale" price group as per dual pricing mod.

Username: (membernumber)
Password: (TBD)
Email: (email)
wholesale price group: (1)

I don't know what fields to create or how to go about importing the data. I have a csv file that I used for an import tool into the CMS we're using, but still need some more info.

Edit: I've already used easy populate to import our inventory for sale, all that remains is the memberbase.