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

#   Display address data in user account mail

##

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

Less More

- Posts: 107
- Thank you received: 0
-
-

13 years 8 months ago [\#93110](#93110) by [cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")  *[Display address data in user account mail](/forum/2-general-talk-about-hikashop/78974-display-address-data-in-user-account-mail#93110 "Hallo,  I want to display Address Data in user account mail I added followed code:  username;?&gt; password;?&gt;  user&#95;id;?&gt; address&#95;title;?&gt; address&#95;firstname;?&gt; address&#95;lastname;?&gt; address&#95;company;?&gt; address&#95;post&#95;code;?&gt; address&#95;city;?&gt; address&#95;telephone;?&gt; address&#95;fax;?&gt; address&#95;state;?&gt; address&#95;country;?&gt; email;?&gt;  username, password, user&#95;id und email is displayed Other Fields are not displayed What is wrong?")* was created by *[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")*

Hallo,

I want to display Address Data in user account mail
I added followed code:

&lt;?php echo JText::sprintf('HIKA_USERNAME').' : '.$data-&gt;username;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('HIKA_PASSWORD').' : '.$data-&gt;password;?&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;?php echo JText::sprintf('HKASHOP_USER_ID').' : '.$data-&gt;user_id;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('TITLE').' : '.$data-&gt;address_title;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('FIRSTNAME').' : '.$data-&gt;address_firstname;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('LASTNAME').' : '.$data-&gt;address_lastname;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('COMPANY').' : '.$data-&gt;address_company;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('POST_CODE').' : '.$data-&gt;address_post_code;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('CITY').' : '.$data-&gt;address_city;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('TELEPHONE').' : '.$data-&gt;address_telephone;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('FAX').' : '.$data-&gt;address_fax;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('STATE').' : '.$data-&gt;address_state;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('COUNTRY').' : '.$data-&gt;address_country;?&gt;&lt;br/&gt;
&lt;?php echo JText::sprintf('HIKA_EMAIL').' : '.$data-&gt;email;?&gt;&lt;br/&gt;

username, password, user_id und email is displayed
Other Fields are not displayed
What is wrong?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4OTc0LWRpc3BsYXktYWRkcmVzcy1kYXRhLWluLXVzZXItYWNjb3VudC1tYWlsP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

13 years 8 months ago [\#93246](#93246) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display address data in user account mail](/forum/2-general-talk-about-hikashop/78974-display-address-data-in-user-account-mail#93246 "Hallo,  I want to display Address Data in user account mail I added followed code:  username;?&gt; password;?&gt;  user&#95;id;?&gt; address&#95;title;?&gt; address&#95;firstname;?&gt; address&#95;lastname;?&gt; address&#95;company;?&gt; address&#95;post&#95;code;?&gt; address&#95;city;?&gt; address&#95;telephone;?&gt; address&#95;fax;?&gt; address&#95;state;?&gt; address&#95;country;?&gt; email;?&gt;  username, password, user&#95;id und email is displayed Other Fields are not displayed What is wrong?")*

Hi,

You can't just guess the variables...

Do a var_dump of $data and you will see that the address data is not in $data, but in $data-&gt;address_data.

So you need to do actually $data-&gt;address_data-&gt;address_firstname and not $data-&gt;address_firstname in your code.

The following user(s) said Thank You: [cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")

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

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

Less More

- Posts: 107
- Thank you received: 0
-
-

13 years 8 months ago [\#93549](#93549) by [cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")  Replied by *[cobinet\_edv](/forum/user/9990-cobinet-edv "View cobinet&#95;edv's Profile")* on topic *[Display address data in user account mail](/forum/2-general-talk-about-hikashop/78974-display-address-data-in-user-account-mail#93549 "Hallo,  I want to display Address Data in user account mail I added followed code:  username;?&gt; password;?&gt;  user&#95;id;?&gt; address&#95;title;?&gt; address&#95;firstname;?&gt; address&#95;lastname;?&gt; address&#95;company;?&gt; address&#95;post&#95;code;?&gt; address&#95;city;?&gt; address&#95;telephone;?&gt; address&#95;fax;?&gt; address&#95;state;?&gt; address&#95;country;?&gt; email;?&gt;  username, password, user&#95;id und email is displayed Other Fields are not displayed What is wrong?")*

Hallo,

and where is adress_data in "Order creation notification" mail?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc4OTc0LWRpc3BsYXktYWRkcmVzcy1kYXRhLWluLXVzZXItYWNjb3VudC1tYWlsP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

13 years 8 months ago [\#93810](#93810) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display address data in user account mail](/forum/2-general-talk-about-hikashop/78974-display-address-data-in-user-account-mail#93810 "Hallo,  I want to display Address Data in user account mail I added followed code:  username;?&gt; password;?&gt;  user&#95;id;?&gt; address&#95;title;?&gt; address&#95;firstname;?&gt; address&#95;lastname;?&gt; address&#95;company;?&gt; address&#95;post&#95;code;?&gt; address&#95;city;?&gt; address&#95;telephone;?&gt; address&#95;fax;?&gt; address&#95;state;?&gt; address&#95;country;?&gt; email;?&gt;  username, password, user&#95;id und email is displayed Other Fields are not displayed What is wrong?")*

There are two address_data in the order creation email.

The billing address data: $data-&gt;cart-&gt;billing_address
and the shipping address data: $data-&gt;cart-&gt;shipping_address

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