本文整理汇总了PHP中customer::set_password方法的典型用法代码示例。如果您正苦于以下问题:PHP customer::set_password方法的具体用法?PHP customer::set_password怎么用?PHP customer::set_password使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类customer
的用法示例。
在下文中一共展示了customer::set_password方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$messageStack->add('create_store_account', ENTRY_PASSWORD_ERROR);
} elseif ($password != $confirmation) {
$error = true;
$messageStack->add('create_store_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING);
}
if ($error == false) {
if (!smn_session_is_registered('customer_id')) {
//ADD THE STORE OWNER DATA ....
$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');
示例2:
}
$customer_info->set_firstname($firstname);
$customer_info->set_lastname($lastname);
$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);