当前位置: 首页>>代码示例>>PHP>>正文


PHP customer::set_zone_id方法代码示例

本文整理汇总了PHP中customer::set_zone_id方法的典型用法代码示例。如果您正苦于以下问题:PHP customer::set_zone_id方法的具体用法?PHP customer::set_zone_id怎么用?PHP customer::set_zone_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在customer的用法示例。


在下文中一共展示了customer::set_zone_id方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

             $error = true;
             $messageStack->add('account_edit', $error_text, '');
         }
     }
 }
 if ($error === false) {
     $customerInfo->set_firstname($customer_first_name);
     $customerInfo->set_lastname($lastname);
     $customerInfo->set_email_address($email_address);
     $customerInfo->set_dob($dob);
     $customerInfo->set_street_address($street_address);
     $customerInfo->set_postcode($postcode);
     $customerInfo->set_city($city);
     $customerInfo->set_country_id($customer_country_id);
     $customerInfo->set_company($company);
     $customerInfo->set_zone_id($customer_zone_id);
     $customerInfo->set_state($state);
     $customerInfo->set_telephone($telephone);
     $customerInfo->set_tollfree($tollfree);
     $customerInfo->set_fax($fax);
     $customerInfo->set_newsletter($newsletter);
     if (isset($_POST['affiliate_id'])) {
         $customerInfo->set_affiliate_id($_POST['affiliate_id']);
     }
     $customerInfo->create($customer_id);
     if (smn_session_is_registered('customer_store_id')) {
         $customerInfo->update_store_admin();
         $customersStore->set_store_name($new_store_name);
         $customersStore->set_store_category($_POST['store_catagory']);
         $customersStore->set_store_description($_POST['store_description']);
         $customersStore->update_store_info();
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:account_edit.php

示例2:

 $profile_edit->set_firstname($_POST['firstname']);
 $profile_edit->set_lastname($_POST['lastname']);
 $profile_edit->set_email_address($_POST['email_address']);
 $profile_edit->set_telephone($_POST['telephone']);
 $profile_edit->set_fax($_POST['fax']);
 $profile_edit->set_newsletter($newsletter);
 $profile_edit->set_gender($_POST['customers_gender']);
 $profile_edit->set_dob($_POST['customers_dob']);
 $profile_edit->set_street_address($_POST['street_address']);
 $profile_edit->set_postcode($_POST['postcode']);
 $profile_edit->set_city($_POST['city']);
 $profile_edit->set_country_id($_POST['country']);
 $profile_edit->set_company($_POST['company']);
 if ($zone_id > 0) {
     $L_state = smn_get_zone_name($_POST['country'], $zone_id, '');
     $profile_edit->set_zone_id($zone_id);
     $profile_edit->set_state($L_state);
 } else {
     $profile_edit->set_zone_id('0');
     $profile_edit->set_state($_POST['state']);
 }
 $customer_id = $profile_edit->create($customer_id);
 if ($store->is_store_owner($customer_id)) {
     // file uploading class
     require DIR_WS_CLASSES . 'upload.php';
     if (function_exists('ini_get') && (bool) ini_get('file_uploads') == false) {
         $messageStack->add(WARNING_FILE_UPLOADS_DISABLED, 'warning');
     }
     $store_query = smn_db_query("select store_name from " . TABLE_STORE_DESCRIPTION . " WHERE store_name like '" . $_POST['store_edit_name'] . "'");
     if (smn_db_num_rows($store_query)) {
         $error = true;
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:account_edit_orig.php

示例3: customer

     $new_customer = new customer();
     $new_customer->set_firstname($customer_first_name);
     $new_customer->set_lastname($lastname);
     $new_customer->set_email_address($email_address);
     $new_customer->set_telephone($telephone);
     $new_customer->set_fax($fax);
     $new_customer->set_newsletter($newsletter);
     $new_customer->set_password($password);
     $new_customer->set_gender($gender);
     $new_customer->set_dob($dob);
     $new_customer->set_street_address($street_address);
     $new_customer->set_postcode($postcode);
     $new_customer->set_city($city);
     $new_customer->set_country_id($customer_country_id);
     $new_customer->set_company($company);
     $new_customer->set_zone_id($customer_zone_id);
     $new_customer->set_state($state);
     $customer_id = $new_customer->create();
     $customer_default_address_id = $new_customer->get_default_address();
     smn_session_register('customer_id');
     smn_session_register('customer_first_name');
     smn_session_register('customer_default_address_id');
     smn_session_register('customer_country_id');
     smn_session_register('customer_zone_id');
 }
 //CREATE STORE IN THE DATABASE.....
 // systemsmanager begin - Dec 5, 2005
 $new_store = new store();
 $new_store->set_store_type($new_store_type);
 $new_store->set_customers_id($customer_id);
 $new_store->set_store_name($new_store_name);
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:create_store_account.php

示例4:

 $customer_info->set_email_address($email_address);
 $customer_info->set_telephone($telephone);
 $customer_info->set_fax($fax);
 $customer_info->set_newsletter($newsletter);
 $customer_info->set_gender($gender);
 //    $customer_info->set_dob($dob);
 $customer_info->set_street_address($street_address);
 $customer_info->set_postcode($postal_code);
 $customer_info->set_city($city);
 $customer_info->set_country_id($country);
 $customer_info->set_company($company);
 if ($_GET['action'] == 'process') {
     $customer_info->set_password($password);
 }
 if ($zone_id > 0) {
     $customer_info->set_zone_id($zone_id);
     $customer_info->set_state('');
 } else {
     $customer_info->set_zone_id('0');
     $customer_info->set_state($state);
 }
 //ADD THE STORE OWNER DATA ....
 if ($_GET['action'] == 'update') {
     $customers_id = $customer_info->create($customers_id);
 } else {
     $customers_id = $customer_info->create();
 }
 $store_info->set_store_type($new_store_type);
 $store_info->set_customers_id($customers_id);
 $store_info->set_customers_data($customers_id);
 $store_info->set_store_name($new_store_name);
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:management.php


注:本文中的customer::set_zone_id方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。