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

#   How to add/update user addresses from external source

##

- **[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")**
- [![cpaschen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-25.jpg)](/forum/user/12420-cpaschen "View cpaschen's Profile") Topic Author
- [ Offline](/forum/user/12420-cpaschen)

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

9 years 10 months ago [\#258182](#258182) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  *[How to add/update user addresses from external source](/forum/31-development/888031-how-to-add-update-user-addresses-from-external-source#258182 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.13 -- Browser(s) name and version -- : chrome  I'm maintaining both shipping and billing addresses within Community Builder, as well as several other custom fields that are in CB but also are in HS.  What is the best way to manage the interaction of addresses?  Is there any sort of API that I can use to push addresses over to HS via PHP code? Or should I just insert it manually into the &#95;address table?  Also, is there any way that I can attach some PHP code within HS so that if someone updates their address I can manually push that data back over to CB?")* was created by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.13
-- Browser(s) name and version -- : chrome

I'm maintaining both shipping and billing addresses within Community Builder, as well as several other custom fields that are in CB but also are in HS.

What is the best way to manage the interaction of addresses?

Is there any sort of API that I can use to push addresses over to HS via PHP code?
Or should I just insert it manually into the _address table?

Also, is there any way that I can attach some PHP code within HS so that if someone updates their address I can manually push that data back over to CB?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4ODAzMS1ob3ctdG8tYWRkLXVwZGF0ZS11c2VyLWFkZHJlc3Nlcy1mcm9tLWV4dGVybmFsLXNvdXJjZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")**
- [![cpaschen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-25.jpg)](/forum/user/12420-cpaschen "View cpaschen's Profile") Topic Author
- [ Offline](/forum/user/12420-cpaschen)

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

9 years 10 months ago [\#258183](#258183) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *[How to add/update user addresses from external source](/forum/31-development/888031-how-to-add-update-user-addresses-from-external-source#258183 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.13 -- Browser(s) name and version -- : chrome  I'm maintaining both shipping and billing addresses within Community Builder, as well as several other custom fields that are in CB but also are in HS.  What is the best way to manage the interaction of addresses?  Is there any sort of API that I can use to push addresses over to HS via PHP code? Or should I just insert it manually into the &#95;address table?  Also, is there any way that I can attach some PHP code within HS so that if someone updates their address I can manually push that data back over to CB?")*

And is there any way to indicate (either via API or by values in the data table) which address should be used as the default shipping address and which should be the default billing address?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4ODAzMS1ob3ctdG8tYWRkLXVwZGF0ZS11c2VyLWFkZHJlc3Nlcy1mcm9tLWV4dGVybmFsLXNvdXJjZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

9 years 10 months ago [\#258188](#258188) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add/update user addresses from external source](/forum/31-development/888031-how-to-add-update-user-addresses-from-external-source#258188 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.13 -- Browser(s) name and version -- : chrome  I'm maintaining both shipping and billing addresses within Community Builder, as well as several other custom fields that are in CB but also are in HS.  What is the best way to manage the interaction of addresses?  Is there any sort of API that I can use to push addresses over to HS via PHP code? Or should I just insert it manually into the &#95;address table?  Also, is there any way that I can attach some PHP code within HS so that if someone updates their address I can manually push that data back over to CB?")*

Hi,

1. When pushing addresses to HikaShop, you can directly add them in hikashop_address. It's the simplest.

2. To push the data the other way when the customer modify the address in HikaShop or create a new one or delete one, you can develop a small plugin of the group "hikashop" and implement the "after" triggers of the address API in it:
[ www.hikashop.com/support/documentation/6...ntation.html#address](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#address)

3. If you look at the hikashop_address table, you can see the address_default column which enables you to select the main address of the customer which will be used as default address for the billing and the shipping. There is no system for now to have different default addresses for shipping and billing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4ODAzMS1ob3ctdG8tYWRkLXVwZGF0ZS11c2VyLWFkZHJlc3Nlcy1mcm9tLWV4dGVybmFsLXNvdXJjZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")**
- [![cpaschen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-25.jpg)](/forum/user/12420-cpaschen "View cpaschen's Profile") Topic Author
- [ Offline](/forum/user/12420-cpaschen)

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

9 years 10 months ago [\#258239](#258239) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *[How to add/update user addresses from external source](/forum/31-development/888031-how-to-add-update-user-addresses-from-external-source#258239 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.13 -- Browser(s) name and version -- : chrome  I'm maintaining both shipping and billing addresses within Community Builder, as well as several other custom fields that are in CB but also are in HS.  What is the best way to manage the interaction of addresses?  Is there any sort of API that I can use to push addresses over to HS via PHP code? Or should I just insert it manually into the &#95;address table?  Also, is there any way that I can attach some PHP code within HS so that if someone updates their address I can manually push that data back over to CB?")*

That is WONDERFUL.
Guess I'll be coding a plugin over the holidays.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4ODAzMS1ob3ctdG8tYWRkLXVwZGF0ZS11c2VyLWFkZHJlc3Nlcy1mcm9tLWV4dGVybmFsLXNvdXJjZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Carmiel](/forum/user/49906-carmiel "View Carmiel's Profile")**
- [![Carmiel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49906-carmiel "View Carmiel's Profile")
- [ Offline](/forum/user/49906-carmiel)

Less More

- Posts: 1
- Thank you received: 0
-
-

9 years 5 months ago [\#268504](#268504) by [Carmiel](/forum/user/49906-carmiel "View Carmiel's Profile")  Replied by *[Carmiel](/forum/user/49906-carmiel "View Carmiel's Profile")* on topic *[How to add/update user addresses from external source](/forum/31-development/888031-how-to-add-update-user-addresses-from-external-source#268504 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.13 -- Browser(s) name and version -- : chrome  I'm maintaining both shipping and billing addresses within Community Builder, as well as several other custom fields that are in CB but also are in HS.  What is the best way to manage the interaction of addresses?  Is there any sort of API that I can use to push addresses over to HS via PHP code? Or should I just insert it manually into the &#95;address table?  Also, is there any way that I can attach some PHP code within HS so that if someone updates their address I can manually push that data back over to CB?")*

Hi cpaschen,
I have the same need as you. Did you success to do it ?
If yes, can you indicate me exactly what you did ?
Thank's a lot
Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4ODAzMS1ob3ctdG8tYWRkLXVwZGF0ZS11c2VyLWFkZHJlc3Nlcy1mcm9tLWV4dGVybmFsLXNvdXJjZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.237 seconds

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

[](#top)
