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

#   User order info

##

- **[the\_g](/forum/user/58424-the-g "View the&#95;g's Profile")**
- [![the&#95;g's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58424-the-g "View the&#95;g's Profile") Topic Author
- [ Offline](/forum/user/58424-the-g)

Less More

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

7 years 5 months ago [\#307482](#307482) by [the\_g](/forum/user/58424-the-g "View the&#95;g's Profile")  *[User order info](/forum/31-development/897643-user-order-info#307482 "Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin Is it something like $user-&gt;address1? P.S I am new to Joomla development  &quot;first&#95;name&quot; &quot;last&#95;name&quot; &quot;email&quot; &quot;phone&quot; &quot;country&quot; &quot;region&quot; &quot;address1&quot; &quot;address2&quot; &quot;city&quot; &quot;zip&quot;")* was created by *[the\_g](/forum/user/58424-the-g "View the&#95;g's Profile")*

Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin
Is it something like $user-&gt;address1?
P.S I am new to Joomla development

"first_name"
"last_name"
"email"
"phone"
"country"
"region"
"address1"
"address2"
"city"
"zip"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NzY0My11c2VyLW9yZGVyLWluZm8/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 5 months ago [\#307486](#307486) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[User order info](/forum/31-development/897643-user-order-info#307486 "Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin Is it something like $user-&gt;address1? P.S I am new to Joomla development  &quot;first&#95;name&quot; &quot;last&#95;name&quot; &quot;email&quot; &quot;phone&quot; &quot;country&quot; &quot;region&quot; &quot;address1&quot; &quot;address2&quot; &quot;city&quot; &quot;zip&quot;")*

Hi,

The exact code to get the address of the user will depend in which trigger you want to do that. Could you provide more information on that ?
Supposing that you have the user_id of the user from the hikashop_user table in the variable $user_id, and supposing that HikaShop is already loaded, you can use such code to get the addresses of the user: Code:

$addressClass = hikashop_get('class.address'); $addresses = $addressClass-&gt;loadUserAddresses($user_id);

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

7 years 5 months ago [\#307540](#307540) by [the-g](/forum/user/58423-the-g "View the-g's Profile")  Replied by *[the-g](/forum/user/58423-the-g "View the-g's Profile")* on topic *[User order info](/forum/31-development/897643-user-order-info#307540 "Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin Is it something like $user-&gt;address1? P.S I am new to Joomla development  &quot;first&#95;name&quot; &quot;last&#95;name&quot; &quot;email&quot; &quot;phone&quot; &quot;country&quot; &quot;region&quot; &quot;address1&quot; &quot;address2&quot; &quot;city&quot; &quot;zip&quot;")*

After a user pays I want his info to be sent via post

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NzY0My11c2VyLW9yZGVyLWluZm8/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 5 months ago [\#307544](#307544) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[User order info](/forum/31-development/897643-user-order-info#307544 "Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin Is it something like $user-&gt;address1? P.S I am new to Joomla development  &quot;first&#95;name&quot; &quot;last&#95;name&quot; &quot;email&quot; &quot;phone&quot; &quot;country&quot; &quot;region&quot; &quot;address1&quot; &quot;address2&quot; &quot;city&quot; &quot;zip&quot;")*

Hi,

So in that case, I would recommend to implement the "onAfterOrderUpdate(&amp;$order)" trigger in a plugin of the group "hikashop".
In it, you would first check the new and old status, and then load the order data and get the info of the billing address: Code:

if($order-&gt;order_status != $order-&gt;old-&gt;order_status &amp;&amp; $order-&gt;order_status == 'confirmed') { $orderClass = hikashop_get('class.order'); $orderData = $orderClass-&gt;loadFullOrder($order-&gt;order_id, false, false); echo $orderData-&gt;billing_address-&gt;address_city; // etc }

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

7 years 5 months ago [\#307566](#307566) by [the-g](/forum/user/58423-the-g "View the-g's Profile")  Replied by *[the-g](/forum/user/58423-the-g "View the-g's Profile")* on topic *[User order info](/forum/31-development/897643-user-order-info#307566 "Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin Is it something like $user-&gt;address1? P.S I am new to Joomla development  &quot;first&#95;name&quot; &quot;last&#95;name&quot; &quot;email&quot; &quot;phone&quot; &quot;country&quot; &quot;region&quot; &quot;address1&quot; &quot;address2&quot; &quot;city&quot; &quot;zip&quot;")*

What about name and other info?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NzY0My11c2VyLW9yZGVyLWluZm8/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 5 months ago [\#307573](#307573) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[User order info](/forum/31-development/897643-user-order-info#307573 "Hi am developing a plugin for hikashop and I do not know how to get the following info for my plugin Is it something like $user-&gt;address1? P.S I am new to Joomla development  &quot;first&#95;name&quot; &quot;last&#95;name&quot; &quot;email&quot; &quot;phone&quot; &quot;country&quot; &quot;region&quot; &quot;address1&quot; &quot;address2&quot; &quot;city&quot; &quot;zip&quot;")*

Hi,

It's the same as for the city, just replace the address_city with the column name of the custom address field you want. You can see the column names in the menu Display&gt;Custom fields of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5NzY0My11c2VyLW9yZGVyLWluZm8/dG1wbD1tYXJrZG93bg==) 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.060 seconds

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