- Posts: 35
- Thank you received: 0
PAYPAL - address line missing
14 years 11 months ago #26270
by Laceup
PAYPAL - address line missing was created by Laceup
The shop has been working well but have received a number of customer comments regards the address displayed in PayPal.
The client wanted a extra address line so on the registration process we now have 'address line one' and 'address line two' this all works fine and I have added the new field to all the relavant views.
BUT when PayPal pulls through the address the address line one is missing which confuses/worries the customer as the address looks complete. How can I get PayPal to display this custom field?
Many thanks in advance
The client wanted a extra address line so on the registration process we now have 'address line one' and 'address line two' this all works fine and I have added the new field to all the relavant views.
BUT when PayPal pulls through the address the address line one is missing which confuses/worries the customer as the address looks complete. How can I get PayPal to display this custom field?
Many thanks in advance
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26278
by nicolas
Replied by nicolas on topic Re: PAYPAL - address line missing
You should have kept the address_street field for the line 1 and just changed it's label and add a new field with the column name "address_street2" for the second line. That way, they would have been given by HikaShop to paypal automatically without changing anything.
You need to edit the paypal plugin file plugins/hikashoppayment/paypal.php and change the code below to adapt it to your custom fields:
$vars["address1"]=$address1;
$vars["address2"]=$address2;
You need to edit the paypal plugin file plugins/hikashoppayment/paypal.php and change the code below to adapt it to your custom fields:
$vars["address1"]=$address1;
$vars["address2"]=$address2;
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26296
by Laceup
Replied by Laceup on topic Re: PAYPAL - address line missing
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26298
by nicolas
Replied by nicolas on topic Re: PAYPAL - address line missing
You should use that:
$vars["address1"]= $order->cart->$address_type->address;
$vars["address2"]= $order->cart->$address_type->address_street;
$vars["address1"]= $order->cart->$address_type->address;
$vars["address2"]= $order->cart->$address_type->address_street;
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26303
by Laceup
Replied by Laceup on topic Re: PAYPAL - address line missing
many thanks Nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.162 seconds