搜索
开启辅助访问 切换到宽版

QQ登录

只需一步,快速开始

扫一扫,访问微社区

注册 找回密码
查看: 6493|回复: 3
打印 上一主题 下一主题

请问会员注册时所填的资料

[复制链接]
楼主
发表于 2011-4-26 15:41:05 | 显示全部楼层
如果你觉得注册页面有些字段重复你可以在catalog/ view/ theme /default /template /account/ create.tpl里面注释相应代码就行了
下面以城市(city)为例:
<tr>
<td><span class="required">*</span> <?php echo $entry_city; ?></td>
<td><input type="text" name="city" value="<?php echo $city; ?>" />
<?php if ($error_city) { ?>
<span class="error"><?php echo $error_city; ?></span>
<?php } ?></td>
</tr>
回复 支持 反对

使用道具 举报

沙发
发表于 2011-4-27 11:05:56 | 显示全部楼层
还要在catalog/controller/account/create.php文件里面找到与之对应的代码
如你想是要城市成为不是必填项目就把下面这段代码注释掉就行了
if ((strlen(utf8_decode($this->request->post['city'])) < 3) || (strlen(utf8_decode($this->request->post['city'])) > 128)) {
                    $this->error['city'] = $this->language->get('error_city');
        }
最好把有city的代码段都注释,这样不容易出问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

QQ|手机版|OpenCart - 中文官方网站 ( 蜀ICP备09033774号|人工智能

GMT+8, 2024-5-19 08:13 , Processed in 0.221877 second(s), 21 queries , Gzip On.

快速回复 返回顶部 返回列表