Post by iceptic » Wed May 13, 2015 6:12 am

so ive been scratching my head for the last couple of days and cannot for the life of me figure this out

previous before the upgrade to 2.0.2.0 i received paypal invoice in this format:
Image

but now i am getting them in this format:

Image


there isnt a delivery address on these invoices now, ive tried changing lines 77 - 88 of

Code: Select all

catalog/controller/payment/pp_standard.php
old code

Code: Select all

$data['first_name'] = html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8');
			$data['last_name'] = html_entity_decode($order_info['payment_lastname'], ENT_QUOTES, 'UTF-8');
			$data['address1'] = html_entity_decode($order_info['payment_address_1'], ENT_QUOTES, 'UTF-8');
			$data['address2'] = html_entity_decode($order_info['payment_address_2'], ENT_QUOTES, 'UTF-8');
			$data['city'] = html_entity_decode($order_info['payment_city'], ENT_QUOTES, 'UTF-8');
			$data['zip'] = html_entity_decode($order_info['payment_postcode'], ENT_QUOTES, 'UTF-8');
			$data['country'] = $order_info['payment_iso_code_2'];
			$data['email'] = $order_info['email'];
			$data['invoice'] = $this->session->data['order_id'] . ' - ' . html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8') . ' ' . html_entity_decode($order_info['payment_lastname'], ENT_QUOTES, 'UTF-8');
			$data['lc'] = $this->session->data['language'];
			$data['return'] = $this->url->link('checkout/success');
			$data['notify_url'] = $this->url->link('payment/pp_standard/callback', '', 'SSL');
			$data['cancel_return'] = $this->url->link('checkout/checkout', '', 'SSL');

new code

Code: Select all

$data['first_name'] = html_entity_decode($order_info['shipping_firstname'], ENT_QUOTES, 'UTF-8');
			$data['last_name'] = html_entity_decode($order_info['shipping_lastname'], ENT_QUOTES, 'UTF-8');
			$data['address1'] = html_entity_decode($order_info['shipping_address_1'], ENT_QUOTES, 'UTF-8');
			$data['address2'] = html_entity_decode($order_info['shipping_address_2'], ENT_QUOTES, 'UTF-8');
			$data['city'] = html_entity_decode($order_info['shipping_city'], ENT_QUOTES, 'UTF-8');
			$data['zip'] = html_entity_decode($order_info['shipping_postcode'], ENT_QUOTES, 'UTF-8');
			$data['country'] = $order_info['shipping_iso_code_2'];
			$data['email'] = $order_info['email'];
			$data['invoice'] = $this->session->data['order_id'] . ' - ' . html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8') . ' ' . html_entity_decode($order_info['payment_lastname'], ENT_QUOTES, 'UTF-8');
			$data['lc'] = $this->session->data['language'];
			$data['return'] = $this->url->link('checkout/success');
			$data['notify_url'] = $this->url->link('payment/pp_standard/callback', '', 'SSL');
			$data['cancel_return'] = $this->url->link('checkout/checkout', '', 'SSL');
i changed the above as i thought that paypal may just be picking it up and recognizing that it was the same address as the payment address so it was being lazy and not forwarding on the correct details, but changing the values to the shipping post data this doesn't seem to solve my problem...

anyone any idea's why this is doing this?

New member

Posts

Joined
Tue Mar 19, 2013 7:50 am

Post by iceptic » Fri May 15, 2015 4:09 am

Bump =)

someone must know the answer =)

New member

Posts

Joined
Tue Mar 19, 2013 7:50 am

Post by iceptic » Tue May 19, 2015 10:33 pm

still no idea?

New member

Posts

Joined
Tue Mar 19, 2013 7:50 am
Who is online

Users browsing this forum: No registered users and 10 guests