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

#   Put Order ref details in email subject

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 2 months ago -  10 years 2 months ago [\#247350](#247350) by [bobhawthorne](/forum/user/42917-bobhawthorne "View bobhawthorne's Profile")  *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#247350 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")* was created by *[bobhawthorne](/forum/user/42917-bobhawthorne "View bobhawthorne's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6

Hi

How can we get some order details put in the subject line of notification emails?

This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.

Thanks ![:)](/media/kunena/emoticons/8.png ":)")

Last edit: 10 years 2 months ago by [bobhawthorne](/forum/user/42917-bobhawthorne "View bobhawthorne's Profile").

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

10 years 2 months ago [\#247353](#247353) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#247353 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

There is no easy override system for that.
You'll have to edit the code of the file administrator/components/com_hikashop/classes/order.php to do it but the code will depends based on which email you want to modify exactly.
Actually, we're working on a modification for the next version of HikaShop so that you'll be able to add tags in the translation of the subject of emails like that {customer.name} to easily do that. So if it's not urgent, I would recommend to wait until then to do that.

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 1 week ago [\#252199](#252199) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252199 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi Nicholas,
When do you expect this new version to be available with the feature of being able to add the customer's name to the notification emails?

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

10 years 1 week ago [\#252203](#252203) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252203 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

The next version of my previous message has been released a few weeks ago and thus, if you have HikaShop 2.6.4, you already have that modification.

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 1 week ago [\#252256](#252256) by [bobhawthorne](/forum/user/42917-bobhawthorne "View bobhawthorne's Profile")  Replied by *[bobhawthorne](/forum/user/42917-bobhawthorne "View bobhawthorne's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252256 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Instructions / documentation please?

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

10 years 1 week ago [\#252265](#252265) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252265 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

Well, it's what I said two messages above:

> you'll be able to add tags in the translation of the subject of emails like that {customer.name}

So edit the email, and in the subject of the email, you can modify your text to have such tags.

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 1 week ago [\#252308](#252308) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252308 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,
Tried modifying the subject line of the Order Administrator Notification email with the line "Web Order - {customer.name}" and it came back with only "Web Order - " as the subject in the email. Is there something else that needs to be done to get this to work? I have already upgraded to 2.6.4

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

10 years 1 week ago [\#252386](#252386) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252386 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

Thanks for the feedback. Then, can you try changing the code: Code:

if(!empty($table) &amp;&amp; !empty($mail-&gt;data-&gt;$table)){ if(!empty($mail-&gt;data-&gt;$table-&gt;$var)){ $val = $mail-&gt;data-&gt;$table-&gt;$var; } }elseif(!empty($mail-&gt;data-&gt;$var)){ $val = $mail-&gt;data-&gt;$var; }

to: Code:

if(!empty($table) &amp;&amp; !empty($var)){ if(!empty($mail-&gt;data-&gt;$table-&gt;$var)){ $val = $mail-&gt;data-&gt;$table-&gt;$var; }elseif(!empty($mail-&gt;data-&gt;cart-&gt;$table-&gt;$var)){ $val = $mail-&gt;data-&gt;cart-&gt;$table-&gt;$var; } }elseif(!empty($mail-&gt;data-&gt;$table)){ $val = $mail-&gt;data-&gt;$table; }

in the file administrator/components/com_hikashop/classes/mail.php and try again ?

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 1 week ago [\#252390](#252390) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252390 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

HI,
Modified that code but am getting the same results. No customer name included on the subject line.

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

10 years 1 week ago [\#252465](#252465) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252465 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

Thanks. I've done additional tests and I think it comes from this line in my code:
list($table, $var) = explode($var, '.', 2);
Replace it by:
list($table, $var) = explode('.', $var, 2);
That fixes the problem on my end.

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 1 week ago -  10 years 1 week ago [\#252494](#252494) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252494 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

I think we are getting closer.

Now I get the word "Array" instead of the customer's name

Any more thoughts as to why it isn't working for me?

Last edit: 10 years 1 week ago by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile").

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

10 years 1 week ago [\#252540](#252540) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252540 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

I'm out of ideas. I've done the tests and fix myself on my end and it's now working for me.
Could you provide a backend access and FTP access and some instructions to easily reproduce the problem on your website so that we could have a look at it ?
You can send that with a link to this thread via our contact form:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

10 years 6 days ago [\#252645](#252645) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252645 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

We got your backend access but your mesage didn't contain information for a FTP access. Could you also provide a FTP access so that we can move forward please ?

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

10 years 5 days ago [\#252791](#252791) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252791 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

We got your FTP access but it doesn't allow us to access your website files:
[ take.ms/xZfvh](http://take.ms/xZfvh)
Could you do something about that please ?

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

10 years 4 days ago [\#252953](#252953) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252953 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

I've adapted the code to: Code:

if(!empty($table) &amp;&amp; !empty($var)){ if(!empty($mail-&gt;data-&gt;cart-&gt;$table-&gt;$var)){ $val = $mail-&gt;data-&gt;cart-&gt;$table-&gt;$var; }elseif(!empty($mail-&gt;data-&gt;$table-&gt;$var)){ $val = $mail-&gt;data-&gt;$table-&gt;$var; } }elseif(!empty($mail-&gt;data-&gt;$table)){ $val = $mail-&gt;data-&gt;$table; }

and it seems to be working on your end too.

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 4 days ago [\#252960](#252960) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#252960 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,
It still is not working. The subject line on the notification email still says "Array" instead of the customer's name.

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

10 years 3 days ago [\#253071](#253071) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#253071 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

I'm not able to reproduce the problem on your website.
I've changed temporarily your "order admin notification email address" to our contact email address and you can see that the subject of the email we receive correctly contains the name of the user account of our test user account:
[ take.ms/cTVn3](http://take.ms/cTVn3)
And that's the same with the tests we did on our local test server.

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

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 3 days ago -  10 years 3 days ago [\#253072](#253072) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#253072 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Ok,
Just figure a little bit more out.
It is working if the customer is registered. It is not if the customer checks out as guest. Also appears to be only using the First Name, Full name if possible, would be much more useful.

Also upon clicking "Finish" there is coding that comes up in the pop up window. Please see attached.  [ ![array&#95;error.jpg](/forum/attachment/34134) ](/forum/attachment/34134 "array&#95;error.jpg")

Thank you for all your attention to this.

- [ ![array&#95;error.jpg](/forum/attachment/34134) ](/forum/attachment/34134 "array&#95;error.jpg") [ ](/forum/attachment/34134?download=1 "array&#95;error.jpg")

Last edit: 10 years 3 days ago by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile").

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

10 years 2 days ago [\#253074](#253074) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#253074 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Hi,

It's normal that it doesn't work if the user is a guest since there user no user account for him and the name field of the user account that it used by that tag is not available.
Then, instead of that tag, you probably want to use the tags {billing_address.address_firstname} {billing_address.address_lastname}
so that the information comes from the billing address which is always there.

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

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

Less More

- Posts: 431
- Thank you received: 22
-

8 years 11 months ago [\#282370](#282370) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Put Order ref details in email subject](/forum/35-orders-management/885953-put-order-ref-details-in-email-subject#282370 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6  Hi  How can we get some order details put in the subject line of notification emails?  This is for the shop owner not the customer - they would like the customer name inserted in the subject I think.  Thanks :)")*

Nicolas,
where to put that tags {billing_address.address_firstname} {billing_address.address_lastname}?
In translations file or in email config email subject field?

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

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

[](#top)
