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

#   display selected addresses during cart status

##

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 6 months ago -  10 years 6 months ago [\#239410](#239410) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  *[display selected addresses during cart status](/forum/27-checkout/884370-display-selected-addresses-during-cart-status#239410 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8  Hi, I am trying to customize the cart&#95;status view to display the addresses that customer selected for order, I looked in other views to know how to display the address, I got this,  it worked for simple address fields, but the state and the country aren't displayed correctly (they are only displayed with word Array) can you please assist me on this?")* was created by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.4.8

Hi,
I am trying to customize the cart_status view to display the addresses that customer selected for order,
I looked in other views to know how to display the address, I got this, Code:

$addressClass = hikashop_get('class.address'); echo $addressClass-&gt;displayAddress($this-&gt;full_cart-&gt;fields,$this-&gt;full_cart-&gt;shipping_address,'address');

it worked for simple address fields, but the state and the country aren't displayed correctly (they are only displayed with word Array)
can you please assist me on this?

Last edit: 10 years 6 months ago by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDM3MC1kaXNwbGF5LXNlbGVjdGVkLWFkZHJlc3Nlcy1kdXJpbmctY2FydC1zdGF0dXM/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 6 months ago [\#239436](#239436) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[display selected addresses during cart status](/forum/27-checkout/884370-display-selected-addresses-during-cart-status#239436 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8  Hi, I am trying to customize the cart&#95;status view to display the addresses that customer selected for order, I looked in other views to know how to display the address, I got this,  it worked for simple address fields, but the state and the country aren't displayed correctly (they are only displayed with word Array) can you please assist me on this?")*

Hi,

You want to do like that: Code:

$addressClass = hikashop_get('class.address'); $addresses = array('shipping_address'=&gt;$this-&gt;full_cart-&gt;shipping_address); $addressClass-&gt;loadZone($addresses); echo $addressClass-&gt;displayAddress($this-&gt;full_cart-&gt;fields,$addresses['shipping_address'],'address');

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 6 months ago [\#239447](#239447) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  Replied by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")* on topic *[display selected addresses during cart status](/forum/27-checkout/884370-display-selected-addresses-during-cart-status#239447 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8  Hi, I am trying to customize the cart&#95;status view to display the addresses that customer selected for order, I looked in other views to know how to display the address, I got this,  it worked for simple address fields, but the state and the country aren't displayed correctly (they are only displayed with word Array) can you please assist me on this?")*

thank you,I did exactly as you suggested, but i actually didn't solve my problem,
the state and country are still being displayed by word "Array"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDM3MC1kaXNwbGF5LXNlbGVjdGVkLWFkZHJlc3Nlcy1kdXJpbmctY2FydC1zdGF0dXM/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 6 months ago [\#239458](#239458) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[display selected addresses during cart status](/forum/27-checkout/884370-display-selected-addresses-during-cart-status#239458 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8  Hi, I am trying to customize the cart&#95;status view to display the addresses that customer selected for order, I looked in other views to know how to display the address, I got this,  it worked for simple address fields, but the state and the country aren't displayed correctly (they are only displayed with word Array) can you please assist me on this?")*

Hi,

Ah yes, I had forgotten something. You need to add the line: Code:

if(is_array($address-&gt;$namekey)) $address-&gt;$namekey = reset($address-&gt;$namekey);

before: Code:

$zones[$address-&gt;$namekey] = $address-&gt;$namekey; $quoted_zones[$address-&gt;$namekey] = $this-&gt;database-&gt;Quote($address-&gt;$namekey);

in administrator/components/com_hikashop/classes/address.php and that code will work.
That modification will be in the next version of HikaShop.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 6 months ago [\#239473](#239473) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  Replied by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")* on topic *[display selected addresses during cart status](/forum/27-checkout/884370-display-selected-addresses-during-cart-status#239473 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.4.8  Hi, I am trying to customize the cart&#95;status view to display the addresses that customer selected for order, I looked in other views to know how to display the address, I got this,  it worked for simple address fields, but the state and the country aren't displayed correctly (they are only displayed with word Array) can you please assist me on this?")*

Thanks , Now it's solved ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NDM3MC1kaXNwbGF5LXNlbGVjdGVkLWFkZHJlc3Nlcy1kdXJpbmctY2FydC1zdGF0dXM/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.049 seconds

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