SEE EXAMPLE HERE: https://www.rockmebabyclothing.com/stor ... t/register
Note: You must enter the codes below at the end of the code I am telling you to find.
(To easily find code, press control f on a pc, or command f on a mac)
------------------------------------------------------------------------------------------------------------
1st.
GO TO: catalog/view/theme/"default or your custom theme folder"/template/account/register.tpl (after newsletter code, around line 200)
*FIND THIS CODE:
Code: Select all
<h2><?php echo $text_newsletter; ?></h2>
<div class="content">
<table class="form">
<tr>
<td><?php echo $entry_newsletter; ?></td>
<td><?php if ($newsletter == 1) { ?>
<input type="radio" name="newsletter" value="1" checked="checked" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" />
<?php echo $text_no; ?>
<?php } else { ?>
<input type="radio" name="newsletter" value="1" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" checked="checked" />
<?php echo $text_no; ?>
<?php } ?></td>
</tr>
</table>
</div>
Code: Select all
<div class="content">
<span class="required">*</span> <b><?php echo $entry_captcha; ?></b><br />
<input type="text" name="captcha" value="<?php echo $captcha; ?>" />
<br />
<img src="index.php?route=information/contact/captcha" alt="" />
<?php if ($error_captcha) { ?>
<span class="error"><?php echo $error_captcha; ?></span>
<?php } ?>
</div>
LETS GET'ER DONE!
------------------------------------------------------------------------------------------------------------
2nd.
GO TO: catalog/language/english/account.register.php
*FIND THIS CODE:
Code: Select all
$_['entry_confirm'] = 'Password Confirm:';
Code: Select all
$_['entry_captcha'] = 'Enter the code in the box below:';
Code: Select all
$_['error_agree'] = 'Warning: You must agree to the %s!';
Code: Select all
$_['error_captcha'] = 'The captcha code was entered incorrectly, please try again!';
3rd.
GO TO: catalog/controller/account/register.php
*FIND THIS CODE:
Code: Select all
$this->data['button_continue'] = $this->language->get('button_continue');
Code: Select all
$this->data['entry_captcha'] = $this->language->get('entry_captcha');
Code: Select all
if (isset($this->error['zone'])) {
$this->data['error_zone'] = $this->error['zone'];
} else {
$this->data['error_zone'] = '';
}
Code: Select all
if (isset($this->error['captcha'])) {
$this->data['error_captcha'] = $this->error['captcha'];
} else {
$this->data['error_captcha'] = '';
}
*NEXT FIND THIS CODE:
Code: Select all
if (isset($this->request->post['newsletter'])) {
$this->data['newsletter'] = $this->request->post['newsletter'];
} else {
$this->data['newsletter'] = '';
}
Code: Select all
if (isset($this->request->post['captcha'])) {
$this->data['captcha'] = $this->request->post['captcha'];
} else {
$this->data['captcha'] = '';
}
Code: Select all
private function validate() {
if ((strlen(utf8_decode($this->request->post['firstname'])) < 1) || (strlen(utf8_decode($this->request->post['firstname'])) > 32)) {
$this->error['firstname'] = $this->language->get('error_firstname');
}
Code: Select all
if (!isset($this->session->data['captcha']) || ($this->session->data['captcha'] != $this->request->post['captcha'])) {
$this->error['captcha'] = $this->language->get('error_captcha');
}
Code: Select all
if (!$this->error) {
return true;
} else {
return false;
}
}
Code: Select all
public function captcha() {
$this->load->library('captcha');
$captcha = new Captcha();
$this->session->data['captcha'] = $captcha->getCode();
$captcha->showImage();
}
THATS IT!!!
Now you can empty your cache then refresh your browser on your websites registration page.
YOU SHOULD BE GOOD TO GO...
PM me if you have any questions...
Daniel
http://www.whateverhealth.com (My 240 Page Health Book "The Synergy Diet Blueprint")
http://www.rockmebabyclothing.com (Custom Rock Kids Clothes Site)
http://www.christianindustries.com (Web Development Contact)