Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal not bringing in Second Address Line on 2.3.1


JoshBowe

Recommended Posts

Hi guys, I've read a few threads on this but all the problems/solutions were for 2.2 and wouldn't work with my 2.3.1 install.

 

What is happening is, when a customer who doesn't have an account pays using the PayPal Express checkout, it's not including the second address line (the optional one).

 

I've read this thread on it: http://www.oscommerce.com/forums/topic/345559-paypal-express-missing-address-line/

 

And their solution was to change 'suburb' => '', to 'suburb' => $response_array['SHIPTOSTREET2'], in ext/modules/payment/paypal/express.php, however this doesn't work in osCommerce 2.3.1. Is their a similar tweak for osCommerce 2.3.1 to fix this issue?

 

Thank you.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • 1 month later...

i tried to fix it today:

 

in file:

/ext/modules/payment/paypal/express.php

 

search this line:

$params['SHIPTOSTREET'] = $order->delivery['street_address'];

 

replace with:

$params['SHIPTOSTREET'] = $order->delivery['street_address'];
if (($order->delivery['suburb']!=null) && ($order->delivery['suburb']!=''))
	 $params['SHIPTOSTREET2'] = $order->delivery['suburb'];

 

Let me know if it works :rolleyes:

Edited by admire123
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...