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

#   Function to print the country for an address

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

8 years 11 months ago -  8 years 11 months ago [\#282872](#282872) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Function to print the country for an address](/forum/23-market-how-to/892844-function-to-print-the-country-for-an-address#282872 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hi, I'm printing outside Hikamarket the information about a customer address.  I have used this code:  But only appears the state of the order.  Which function I have to use to retrieve the country name (and not the namekey)?  Thanks in advance, -- Victor")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2

Hi, I'm printing outside Hikamarket the information about a customer address.

I have used this code:
Code:

$addressClass = hikashop_get('class.address'); $address = $addressClass-&gt;get($this-&gt;order-&gt;order_shipping_address_id); $zones = $addressClass-&gt;loadZone($address); $zoneClass = hikashop_get('class.zone'); $state = $zoneClass-&gt;getOrderZones($this-&gt;order);

But only appears the state of the order.

Which function I have to use to retrieve the country name (and not the namekey)?

Thanks in advance,
--
Victor

Last edit: 8 years 11 months ago by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 11 months ago [\#282878](#282878) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Function to print the country for an address](/forum/23-market-how-to/892844-function-to-print-the-country-for-an-address#282878 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hi, I'm printing outside Hikamarket the information about a customer address.  I have used this code:  But only appears the state of the order.  Which function I have to use to retrieve the country name (and not the namekey)?  Thanks in advance, -- Victor")*

Hello,

Would it be possible to have more about the context ?
What do you mean by "outside of HikaMarket" ? Where is it ?

Because I'm not really sure that it's related to HikaMarket but maybe only to the HikaShop core functions.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

8 years 11 months ago [\#282930](#282930) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Function to print the country for an address](/forum/23-market-how-to/892844-function-to-print-the-country-for-an-address#282930 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hi, I'm printing outside Hikamarket the information about a customer address.  I have used this code:  But only appears the state of the order.  Which function I have to use to retrieve the country name (and not the namekey)?  Thanks in advance, -- Victor")*

Hi,

Yes,

I'm changing the template for the iframe for changing the order status ("edit status") on the show layout for a order in the hikamarket frontend vendor view and I wanted to make appear the address of the customer (with other information).

Regards,

--
Victor

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 11 months ago [\#282935](#282935) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Function to print the country for an address](/forum/23-market-how-to/892844-function-to-print-the-country-for-an-address#282935 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2  Hi, I'm printing outside Hikamarket the information about a customer address.  I have used this code:  But only appears the state of the order.  Which function I have to use to retrieve the country name (and not the namekey)?  Thanks in advance, -- Victor")*

Hello,

> I'm changing the template for the iframe for changing the order status ("edit status") on the show layout for a order in the hikamarket frontend vendor view and I wanted to make appear the address of the customer (with other information).

I'm afraid it still not possible to understand clearly what you're doing and what you're excepting from me regarding the HikaMarket support.

The HikaMarket order details already contains all the required information about the order, including the customer address.
Even in the "ordermarket / status", "ordermarket / invoice" views you have an access to the HikaShop full order object.
Afterwards, if the elements that you have in that object are not enough ; you need to load manually what you want. But I still don't understand what or why... So I'm afraid that I can't help you if you still do not provide me the requested elements.

> Because I'm not really sure that it's related to HikaMarket but maybe only to the HikaShop core functions.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODkyODQ0LWZ1bmN0aW9uLXRvLXByaW50LXRoZS1jb3VudHJ5LWZvci1hbi1hZGRyZXNzP3RtcGw9bWFya2Rvd24=) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/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)
