Post by jameserie » Wed Jan 18, 2012 6:45 pm

Opencart Version 1.5.1.3

After I've install the PayPal Website Payment Pro (UK) and Edit it I found this error on the Partner field.

Code: Select all

<b>Notice</b>: Undefined variable: pp_pro_uk_partner in <b>/home/user/public_html/user/admin/view/template/payment/pp_pro_uk.tpl</b> on line <b>42</b>
I'll look at the file in admin/controller/payment/pp_pro_uk.php. and found out theres something wrong to it

Code: Select all

if (isset($this->request->post['pp_pro_uk_partner'])) {
			$this->data['pp_pro_uk_partner'] = $this->request->post['pp_pro_uk_partner'];
		} elseif ($this->config->has('pp_pro_uk_partner')) {
			$this->data['pp_pro_uk_partner'] = $this->config->get('pp_pro_uk_partner');
		} else {
			$this->data['pp_pro_uk_test'] = 'PayPal';
		}
Notice the $this->data['pp_pro_uk_test'] = 'PayPal'; why sould say pp_pro_uk_test when it is referring to pp_pro_uk_partner. so I changed it to

Code: Select all

if (isset($this->request->post['pp_pro_uk_partner'])) {
			$this->data['pp_pro_uk_partner'] = $this->request->post['pp_pro_uk_partner'];
		} elseif ($this->config->has('pp_pro_uk_partner')) {
			$this->data['pp_pro_uk_partner'] = $this->config->get('pp_pro_uk_partner');
		} else {
			$this->data['pp_pro_uk_partner'] = 'PayPal';
		}
And the error is gone, I don't know if Im doing right or what. but thats removed the error

Newbie

Posts

Joined
Wed Jan 18, 2012 6:33 pm
Who is online

Users browsing this forum: No registered users and 64 guests