zencart注册审核二次开发
2010-06-03 23:45 来源:www.chinab4c.com 作者:admin
zencart注册功能其实和ecshop注册功能一样。我们可以通过zencart二次开发,对zencart进行登陆审核。注册的时候,默认未审核.当后台审核的时候,才能让zencart会员正常登陆。这个有利于将zencart用来做批发等功能.
1:
alter table zen_customers add column status int(1) default 0;
2:
elseif($check_customer->fields['status']=='0'){
$messageStack->add('login', '没被审核通过');
}
3:includes/modules/create_account.php
unset($_SESSION['customer_id']);
4:admin/customers.php
<tr>
<td class="main">审核</td>
<td class="main">
<input type="radio" value="1" name="status" <? if($cInfo->status == 1){ echo 'checked="checked"';}?>>通过
<input type="radio" value="0" name="status" <? if($cInfo->status == 0){ echo 'checked="checked"';}?> >未通过
</td>
</tr>
case 'update':
$status = zen_db_prepare_input($_POST['status']);
'status' => $status,
$customers = $db->Execute("select c.customers_id,c.status, c.customers_gender, c.customers_firstname,
c.customers_lastname, c.customers_dob, c.customers_email_address,
a.entry_company, a.entry_street_address, a.entry_suburb,
a.entry_postcode, a.entry_city, a.entry_state, a.entry_zone_id,
a.entry_country_id, c.customers_telephone, c.customers_fax,
c.customers_newsletter, c.customers_default_address_id,
c.customers_email_format, c.customers_group_pricing,
c.customers_authorization, c.customers_referral
from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a
on c.customers_default_address_id = a.address_book_id
where a.customers_id = c.customers_id
and c.customers_id = '" . (int)$customers_id . "'");
最近更新
常用插件
- ecshop降价通知登记插件
ecshop降价通知登记插件,主要是为了方便某些客户,对商品价格要求比...
- ecshop通用红包编码
很多时候,为了结合促销,必须扩展一下ecshop的红包功能。ecshop的红包...
- ecshop红包修改成满多少减
我们在长期使用ecshop的时候,我们可以发现。ecshop的红包是一个非常强...
- ecshop分类树中统计商品数
最近忙于开发其他项目,在不少朋友不断要求和催促的情况下,做出了该小...
- ecshop购物车功能改进[插件
ecshop购物车功能改进[插件套餐]主要是我们最近开发工作和开发项目中。...