| 
	使用过opencart的朋友们都知道,在给商品写评论时,会要求输入一个4位的验证码。应该如何去掉它呢。 
	首先要修改的文件:catalog/view/theme/template/product/product.tpl 
	搜索 captcha 找到相关行,删除相关的代码,不同主题可能不同: 
	<b><?php echo $entry_captcha; ?></b>  <br />
 <input type="text" name="captcha" value="" />
 <br />
 <img src="index.php?route=product/product/captcha" alt="" id="captcha" /><br />
 <br />
 
	然后要修改的文件是:catalog/controller/product/product.php 
	搜索 captcha 找到相关行,删除如下两段代码! 
	<!-- 第一段 -->  $this->data['entry_captcha'] = $this->language->get('entry_captcha');
 
 <!-- 第二段 -->
 if (emptyempty($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
 $json['error'] = $this->language->get('error_captcha');
 }
 
	然后替换这两个修改的文件,此时,我们在opencart里写商品评论时会再需要输入验证码了。(责任编辑:最模板) |