Zencart客户资料转移合并工具精简版Customers Populate v1.0 亚洲服务器

Zencart客户资料转移合并工具精简版Customers Populate v1.0

很久没给大家分享点有用的东西了,今天抽空写了一个zencart客户资料转移合并工具,感觉还是有点用的,就分享给大家 主要的用途就是就一个zencart网站的客户全部迁移到另一个网站 1 <?php 2 // +---------------------------------------------------------------------- 3 // | Project:Zencart客户资料转移合并工具简版 Customers Populate v1.0 4 // +---------------------------------------------------------------------- 5 // | Explanation:2014-12-1 6 // +---------------------------------------------------------------------- 7 // | Version: V1.0 8 // +---------------------------------------------------------------------- 9 // | Authors: ezencart <[email protected] QQ:40309022> 10 // +---------------------------------------------------------------------- 11 12 header('Content-Type:text/html;charset=UTF-8'); 13 require('includes/application_top.php'); 14 15 function ez_get_customers_books($customers_id,$customers_default_address_id){ 16   global $db; 17   $books_data=array(); 18   $books=$db->Execute("SELECT * FROM ".TABLE_ADDRESS_BOOK." WHERE customers_id=".$customers_id); 19   while(!$books->EOF){ 20     $books->fields['primary'] = ($books->fields['address_book_id']==$customers_default_address_id) ? 1 : 0; 21     $books_data[]=$books->fields; 22     $books->MoveNext(); 23   } 24   return $books_data;...
阅读全文