Категории |
импорт клиентской базы Zen-Cart в ShopOSЕсть действующий магазин на Zen-Cart. Хочу перевести на ShopOS. если структура таблицы клиентов похожая - тогда не возникнет проблем В зенкарте (насколько я понял), данные клиентов храняться в двух таблица.... в zen_cart вот такая структура CREATE TABLE customers ( customers_id int(11) NOT NULL auto_increment, customers_gender char(1) NOT NULL default '', customers_firstname varchar(32) NOT NULL default '', customers_lastname varchar(32) NOT NULL default '', customers_dob datetime NOT NULL default '0001-01-01 00:00:00', customers_email_address varchar(96) NOT NULL default '', customers_nick varchar(96) NOT NULL default '', customers_default_address_id int(11) NOT NULL default '0', customers_telephone varchar(32) NOT NULL default '', customers_fax varchar(32) default NULL, customers_password varchar(40) NOT NULL default '', customers_newsletter char(1) default NULL, customers_group_pricing int(11) NOT NULL default '0', customers_email_format varchar(4) NOT NULL default 'TEXT', customers_authorization int(1) NOT NULL default '0', customers_referral varchar(32) NOT NULL default '', customers_paypal_payerid VARCHAR(20) NOT NULL default '', customers_paypal_ec TINYINT(1) UNSIGNED DEFAULT 0 NOT NULL, PRIMARY KEY (customers_id), KEY idx_email_address_zen (customers_email_address), KEY idx_referral_zen (customers_referral(10)), KEY idx_grp_pricing_zen (customers_group_pricing), KEY idx_nick_zen (customers_nick), KEY idx_newsletter_zen (customers_newsletter) ) TYPE=MyISAM; в shopos такая: CREATE TABLE ".$DB_PREFIX."customers ( customers_id int NOT NULL auto_increment, customers_cid varchar(255), customers_vat_id varchar (20) DEFAULT NULL, customers_vat_id_status int(2) DEFAULT '0' NOT NULL, customers_warning varchar(255), customers_status int(5) DEFAULT '1' NOT NULL, customers_gender char(1) NOT NULL, customers_firstname varchar(255) NOT NULL, customers_secondname varchar(255) NOT NULL, customers_lastname varchar(255) NOT NULL, customers_dob datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, customers_email_address varchar(96) NOT NULL, customers_default_address_id int NOT NULL, customers_telephone varchar(255) NOT NULL, customers_fax varchar(255), customers_password varchar(40) NOT NULL, customers_newsletter char(1), customers_newsletter_mode char( 1 ) DEFAULT '0' NOT NULL, member_flag char(1) DEFAULT '0' NOT NULL, delete_user char(1) DEFAULT '1' NOT NULL, account_type int(1) NOT NULL default '0', password_request_key varchar(255) NOT NULL, payment_unallowed varchar(255) NOT NULL, shipping_unallowed varchar(255) NOT NULL, refferers_id int(5) DEFAULT '0' NOT NULL, customers_date_added datetime DEFAULT '0000-00-00 00:00:00', customers_last_modified datetime DEFAULT '0000-00-00 00:00:00', orig_reference text, login_reference text, login_tries char(2) NOT NULL default '0', login_time datetime NOT NULL default '0000-00-00 00:00:00', customers_username VARCHAR(64) DEFAULT NULL, customers_fid INT(5) DEFAULT NULL, customers_sid INT(5) DEFAULT NULL, PRIMARY KEY (customers_id) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci; если знаете php не так и сложно сделать выборку из одной базы данных клиентов. и загнать в другую спасибо, буду тренироваться ;D |
|