[Skip to main content](#vessel-content)

#   PAYPAL - address line missing

##

- **[Laceup](/forum/user/890-laceup "View Laceup's Profile")**
- [![Laceup's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/890-laceup "View Laceup's Profile") Topic Author
- [ Offline](/forum/user/890-laceup)

Less More

- Posts: 35
- Thank you received: 0
-
-

15 years 1 month ago [\#26270](#26270) by [Laceup](/forum/user/890-laceup "View Laceup's Profile")  *[PAYPAL - address line missing](/forum/2-general-talk-about-hikashop/26270-paypal-address-line-missing#26270 "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")* was created by *[Laceup](/forum/user/890-laceup "View Laceup's Profile")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzI2MjcwLXBheXBhbC1hZGRyZXNzLWxpbmUtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 1 month ago [\#26278](#26278) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: PAYPAL - address line missing](/forum/2-general-talk-about-hikashop/26270-paypal-address-line-missing#26278 "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")*

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;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzI2MjcwLXBheXBhbC1hZGRyZXNzLWxpbmUtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Laceup](/forum/user/890-laceup "View Laceup's Profile")**
- [![Laceup's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/890-laceup "View Laceup's Profile") Topic Author
- [ Offline](/forum/user/890-laceup)

Less More

- Posts: 35
- Thank you received: 0
-
-

15 years 1 month ago [\#26296](#26296) by [Laceup](/forum/user/890-laceup "View Laceup's Profile")  Replied by *[Laceup](/forum/user/890-laceup "View Laceup's Profile")* on topic *[Re: PAYPAL - address line missing](/forum/2-general-talk-about-hikashop/26270-paypal-address-line-missing#26296 "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")*

OK I will do that in future.

So what exactly do I change in this code? - screen shot shows the custom fields I made image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/screen-20110928.jpg

- [ ![screen-20110928.jpg](/forum/attachment/1788) ](/forum/attachment/1788 "...n-20110928.jpg") [ ](/forum/attachment/1788?download=1 "...n-20110928.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzI2MjcwLXBheXBhbC1hZGRyZXNzLWxpbmUtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 1 month ago [\#26298](#26298) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: PAYPAL - address line missing](/forum/2-general-talk-about-hikashop/26270-paypal-address-line-missing#26298 "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")*

You should use that:

$vars["address1"]= $order-&gt;cart-&gt;$address_type-&gt;address;
$vars["address2"]= $order-&gt;cart-&gt;$address_type-&gt;address_street;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzI2MjcwLXBheXBhbC1hZGRyZXNzLWxpbmUtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Laceup](/forum/user/890-laceup "View Laceup's Profile")**
- [![Laceup's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/890-laceup "View Laceup's Profile") Topic Author
- [ Offline](/forum/user/890-laceup)

Less More

- Posts: 35
- Thank you received: 0
-
-

15 years 1 month ago [\#26303](#26303) by [Laceup](/forum/user/890-laceup "View Laceup's Profile")  Replied by *[Laceup](/forum/user/890-laceup "View Laceup's Profile")* on topic *[Re: PAYPAL - address line missing](/forum/2-general-talk-about-hikashop/26270-paypal-address-line-missing#26303 "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")*

many thanks Nicolas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzI2MjcwLXBheXBhbC1hZGRyZXNzLWxpbmUtbWlzc2luZz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.183 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
