Post by shojol80 » Sun Oct 26, 2014 1:55 pm

i have installed opencart and i was trying to add a custom field in usr registration page,,but its showing error after regi,,any idea how to solve it?

Notice: Undefined index: address in /home/rapid/public_html/demo/catalog/controller/account/register.php on line 281
Fatal error: Unsupported operand types in /home/rapid/public_html/demo/catalog/controller/account/register.php on line 281


thanks

Newbie

Posts

Joined
Sun Oct 26, 2014 1:50 pm

Post by bachelor » Thu Oct 30, 2014 3:54 am

Find
$data['register_custom_field'] = $this->request->post['custom_field']['account'] + $this->request->post['custom_field']['address'];

Replace
if(isset($this->request->post['custom_field']['address'])){
$data['register_custom_field'] = $this->request->post['custom_field']['account'] + $this->request->post['custom_field']['address'];
} else {
$data['register_custom_field'] = $this->request->post['custom_field']['account'];
}

Newbie

Posts

Joined
Wed Apr 16, 2014 2:19 am

Post by shojol80 » Tue Nov 04, 2014 2:22 am

thanks,,,problem solved,,also there are some bug in custom field uploader php file,,,i hope we will not get those bugs in next update ..

Newbie

Posts

Joined
Sun Oct 26, 2014 1:50 pm
Who is online

Users browsing this forum: No registered users and 191 guests