Post by GameShopAU » Fri Jan 23, 2015 2:22 pm

Hey Guys
I am putting together a register page for my shop
I have gotten ridden of the fax field but tried to replace with a field for Steam ID

I have the text box there but not the text next to the field saying Steam ID
To see what I am talking about - http://gameshopau.com/index.php?route=account/register


For the steps I took I followed - http://cartadvisor.com/blog/2014/05/22/ ... tion-form/

Here is the code from my register.tpl

Code: Select all

<div class="form-group">
<label class="col-sm-2 control-label" for="input-steam_id"><?php echo $steam_id; ?></label>
<div class="col-sm-10">
<input type="text" name="steam_id" value="<?php echo $steam_id; ?>" placeholder="<?php echo $steam_id; ?>" id="input-steam_id" class="form-control" />
</div>
Here is the code from my register.php

Code: Select all

		if (isset($this->request->post['steam_id'])) {
			$data['steam_id'] = $this->request->post['steam_id'];
		} else {
			$data['steam_id'] = '';
		}
And here is a picture of my database
Image

Any help you guys could give me would be awesome
Thanks

Newbie

Posts

Joined
Fri Jan 16, 2015 7:03 am

Post by yuno » Fri Jan 23, 2015 5:50 pm

have your also edited here?

catalog\language\english\account\register.php

Code: Select all

$_['entry_fax']            = 'Fax';
catalog/model/account/customer.php

Code: Select all

fax = '" . $this->db->escape($data['fax']) 

OpenCart®
PHP Developer.
更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815


Active Member

Posts

Joined
Tue Feb 11, 2014 9:24 am

Post by GameShopAU » Tue Jan 27, 2015 7:39 pm

Yeah I have updated both of those files

While testing the register sheet - Now get this error as well

Code: Select all

Notice: Undefined index: company in /home/gameshopau/public_html/catalog/model/account/customer.php on line 20Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Connection refused) in /home/gameshopau/public_html/system/library/mail.php on line 169Notice: Error: Connection refused (111) in /home/gameshopau/public_html/system/library/mail.php on line 172

Newbie

Posts

Joined
Fri Jan 16, 2015 7:03 am

Post by yuno » Wed Jan 28, 2015 2:17 pm

GameShopAU wrote:Yeah I have updated both of those files

While testing the register sheet - Now get this error as well

Code: Select all

Notice: Undefined index: company in /home/gameshopau/public_html/catalog/model/account/customer.php on line 20Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Connection refused) in /home/gameshopau/public_html/system/library/mail.php on line 169Notice: Error: Connection refused (111) in /home/gameshopau/public_html/system/library/mail.php on line 172
Undefined index: company
find the variable and define it before use.
ie isset("company") or @company.....

fsockopen(): unable to connect to ssl://smtp.gmail.com:465..
this is your mail problem.
Login as admin>system> setting> mail> make sure your information is correct

OpenCart®
PHP Developer.
更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815


Active Member

Posts

Joined
Tue Feb 11, 2014 9:24 am
Who is online

Users browsing this forum: No registered users and 44 guests