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

#   customers last name on order email

##

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

Less More

- Posts: 254
- Thank you received: 2
-
-

14 years 4 months ago [\#54855](#54855) by [bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")  *[customers last name on order email](/forum/2-general-talk-about-hikashop/54855-customers-last-name-on-order-email#54855 "How do I get the customers last name along with the order number on the invoice I receive?")* was created by *[bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")*

How do I get the customers last name along with the order number on the invoice I receive?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 4 months ago [\#54887](#54887) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: customers last name on order email](/forum/2-general-talk-about-hikashop/54855-customers-last-name-on-order-email#54887 "How do I get the customers last name along with the order number on the invoice I receive?")*

Hi,

You can get the customer Lastname by editing the mails "Order Admin Notification" (only on commercial version of hikashop) in HikaShop &gt; System &gt; Emails.
And add the line: Code:

echo $data-&gt;cart-&gt;shipping_address-&gt;address_lastname;

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

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

Less More

- Posts: 254
- Thank you received: 2
-
-

14 years 4 months ago [\#54931](#54931) by [bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")  Replied by *[bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")* on topic *[Re: customers last name on order email](/forum/2-general-talk-about-hikashop/54855-customers-last-name-on-order-email#54931 "How do I get the customers last name along with the order number on the invoice I receive?")*

I found the fle but I am not sure where to put the code - at the very top?? anywhere on the page??

this is what I receive when I get an order: "A new order has been created on your website"

I would like it to read something like "New Order# 5003 - customer last name"

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 4 months ago [\#54995](#54995) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: customers last name on order email](/forum/2-general-talk-about-hikashop/54855-customers-last-name-on-order-email#54995 "How do I get the customers last name along with the order number on the invoice I receive?")*

So you will have to add such code:

&lt;?php $mail-&gt;subject = 'New Order# '.$data-&gt;order_number.' - '.$data-&gt;cart-&gt;shipping_address-&gt;address_lastname; ?&gt;

You can add it at the end.

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

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

Less More

- Posts: 254
- Thank you received: 2
-
-

10 years 10 months ago [\#224398](#224398) by [bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")  Replied by *[bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")* on topic *[Re: customers last name on order email](/forum/2-general-talk-about-hikashop/54855-customers-last-name-on-order-email#224398 "How do I get the customers last name along with the order number on the invoice I receive?")*

After a 3.5 years with Hikashop - many revisions - something happened to my email that I get and I want it like I had before. Now I am using Joomla 3.4.6 &amp; HikaShop Business: 2.6.0.

Is this what I add to the bottom of the file?
"So you will have to add such code:

&lt;?php $mail-&gt;subject = 'New Order# '.$data-&gt;order_number.' - '.$data-&gt;cart-&gt;shipping_address-&gt;address_lastname; ?&gt;

You can add it at the end."
and which one, the HTML, text or preload version?

Seems like I tried pasting it in and orders would not go through.

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 10 months ago [\#224404](#224404) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: customers last name on order email](/forum/2-general-talk-about-hikashop/54855-customers-last-name-on-order-email#224404 "How do I get the customers last name along with the order number on the invoice I receive?")*

Hi,

It should be in the HTML version.

What do you mean by "orders would not go through" ? Did you get an error message ? A blank page ? If you turn on the error reporting of the Joomla configuration, do you get an error message ?
What error message is that ?

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

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

Less More

- Posts: 254
- Thank you received: 2
-
-

10 years 10 months ago [\#224492](#224492) by [bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")  Replied by *[bigfoot](/forum/user/7488-bigfoot "View bigfoot's Profile")* on topic *[Re: customers last name on order email](/forum/2-general-talk-about-hikashop/54855-customers-last-name-on-order-email#224492 "How do I get the customers last name along with the order number on the invoice I receive?")*

Thank you - it is fine now - I must have pasted it into the wrong part.

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

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

[](#top)
