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

#   \[SOLVED\] Add ORDER NUMBER to the Subject Line

##

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-05.jpeg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

14 years 1 week ago -  14 years 1 week ago [\#71814](#71814) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#71814 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")* was created by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")*

We use Google Business email for our domain emails.
While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.

HikaShop sends the email "A new order has been created on your website" but there isn't any ORDER NUMBER in that subject line.
SO -- Gmail threads ALL of our orders together in one huge thread.
It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.

Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email?
The order number appears in the Payment Received emails subject line...

Thanks!

Last edit: 14 years 1 week ago by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile").

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

14 years 1 week ago [\#71838](#71838) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#71838 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Hi,

As it's explained [ in this topic](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/69210-ordner-number-in-mail-subject.html#69635), you have to replace the following lines in administrator/component/com_hikashop/class/order.php
Code:

$order-&gt;mail-&gt;subject = trim($order-&gt;mail-&gt;subject); if(empty($order-&gt;mail-&gt;subject)) { $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,HIKASHOP_LIVE); }

by these lines: Code:

$order-&gt;mail-&gt;subject = ''; if(empty($order-&gt;mail-&gt;subject)) { $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,HIKASHOP_LIVE); }

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

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-05.jpeg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

14 years 1 week ago [\#71990](#71990) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#71990 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

There is a quotation mark missing from that code example.
I used the other code explained in that topic and it works terrific!

Might suggest that this become an option in the configuration as it is quite helpful.

Thank you.

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

13 years 8 months ago [\#91898](#91898) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#91898 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Which file would I put this in so that the customer also has the order number in their subject? Also is there a way to have the orders come to us with the customers e-mail address as the FROM instead of having our own e-mail address as the FROM information.

Thanks
Iain

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

13 years 8 months ago [\#91931](#91931) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#91931 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

For the customers, you have to edit the mails "Order creation notification" and "Order status notification".
To change the sender email you can use the code:
&lt;?php $mails-&gt;sender = $data-&gt;cart-&gt;customer-&gt;email; ?&gt;
At the end of the mail.

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

13 years 8 months ago [\#91932](#91932) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#91932 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

For the customers, you have to edit the mails "Order creation notification" and "Order status notification".
To change the sender email you can use the code:
&lt;?php $mail-&gt;sender = $data-&gt;cart-&gt;customer-&gt;email; ?&gt;
At the end of the mail.

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

13 years 8 months ago [\#91981](#91981) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#91981 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Hello,

I have put that at the end of the email and it doesn't change. When you say at the end, do you mean the very last line?

Iain

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

13 years 8 months ago [\#92022](#92022) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#92022 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Can you try with "$this-&gt;mailer-&gt;Sender" instead of "$mail-&gt;sender" ?

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

13 years 8 months ago [\#92034](#92034) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#92034 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

That is the same, no change. I am putting this at the bottom of System&gt;email&gt;Order administrator notification.

Yours
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcxODE0LXNvbHZlZC1hZGQtb3JkZXItbnVtYmVyLXRvLXRoZS1zdWJqZWN0LWxpbmU/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: 86320
- Thank you received: 14279
-
-

13 years 8 months ago [\#92389](#92389) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#92389 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

There is no need to do that change.

The From is indeed not the user email but the Reply-To is. Which means that if you click on reply on the order admin email, you will send the reply to the user email address automatically.

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

13 years 8 months ago [\#92413](#92413) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#92413 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Nicolas

Thank you but I find it annoying when looking down a list of e-mails not to see the customers name but only Draganfly Motorcycles.

Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcxODE0LXNvbHZlZC1hZGQtb3JkZXItbnVtYmVyLXRvLXRoZS1zdWJqZWN0LWxpbmU/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: 86320
- Thank you received: 14279
-
-

13 years 8 months ago [\#92430](#92430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#92430 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

In that case add such code at the end of the order admin email: Code:

&lt;?php $userClass = hikashop_get('class.user'); $userClass-&gt;get(false); $user = $userClass-&gt;get($data-&gt;order_user_id); $mail-&gt;from_email = $user-&gt;user_email; $mail-&gt;from_name = $user-&gt;name;

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

- **[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")**
- [![cpaschen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-25.jpg)](/forum/user/12420-cpaschen "View cpaschen's Profile")
- [ Offline](/forum/user/12420-cpaschen)

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

12 years 2 months ago -  12 years 2 months ago [\#166743](#166743) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#166743 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Needing to revive this old thread ....

I'm using HS Business 2.3.2.

I've made the change to the /administrator/components/com_hikashop/classes/order.php file as indicated here in this thread.

Here is the code that I inserted:
Code:

$order-&gt;mail-&gt;subject = ''; if(empty($order-&gt;mail-&gt;subject)) { $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,'HIKASHOP_LIVE'); }

However, when the emails are sent, the subject line is being sent like this:

> New order No. 03390 created on HIKASHOP\_LIVE

I have added 'HIKASHOP_LIVE' to the lanugage overrides area of Joomla, but it isn't being 'translated' (although 'NEW_ORDER_SUBJECT' IS).

Any ideas why this isn't working?

Last edit: 12 years 2 months ago by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile"). Reason: fixing code indenting

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

- **[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")**
- [![cpaschen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-25.jpg)](/forum/user/12420-cpaschen "View cpaschen's Profile")
- [ Offline](/forum/user/12420-cpaschen)

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

12 years 2 months ago [\#166744](#166744) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#166744 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

OK... I've narrowed it down.

The current language string for NEW_ORDER_SUBJECT is "New order N0. %s created on %s"

I've removed the quotes around 'HIKASHOP_LIVE'.

(I saw a mention of quote missing earlier in this thread and though that 'hikashop_live' was a language string to be handled by JText) Hopefully this will help.

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

- **[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")**
- [![cpaschen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-25.jpg)](/forum/user/12420-cpaschen "View cpaschen's Profile")
- [ Offline](/forum/user/12420-cpaschen)

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

12 years 2 months ago [\#166762](#166762) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#166762 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

OK ... it was the quotes on that 2nd entry.

So the working version of the code should be:
Code:

$order-&gt;mail-&gt;subject = ''; if(empty($order-&gt;mail-&gt;subject)) { $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,HIKASHOP_LIVE); }

However, that HIKASHOP_LIVE variable inserts the URL to the site.

Anybody know if there is a way (a different variable) to insert the 'Name' of the site (instead of the URL)?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcxODE0LXNvbHZlZC1hZGQtb3JkZXItbnVtYmVyLXRvLXRoZS1zdWJqZWN0LWxpbmU/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 2 months ago [\#166777](#166777) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#166777 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Hi,

HIKASHOP_LIVE is the url to the live site ; if you want to display something else you should put something else in the code.

Regards,

---

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

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

- **[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")**
- [![cpaschen's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-25.jpg)](/forum/user/12420-cpaschen "View cpaschen's Profile")
- [ Offline](/forum/user/12420-cpaschen)

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

12 years 2 months ago [\#166808](#166808) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#166808 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Jerome,

Thanks, but that doesn't answer my question - WHAT variable can I use for the 'name' of the site?

Or better yet, is there a doc somewhere that lists any variables that are specific to Hikashop that could be used here (or other places of HS/Joomla)?

I'm guessing that I could just use standard Joomla variables/resources here, but I could have done that instead of 'HIKASHOP_LIVE'.

So what other variables like this (specific to HS) are also available?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzcxODE0LXNvbHZlZC1hZGQtb3JkZXItbnVtYmVyLXRvLXRoZS1zdWJqZWN0LWxpbmU/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: 86320
- Thank you received: 14279
-
-

12 years 2 months ago [\#166821](#166821) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add ORDER NUMBER to the Subject Line of Emails](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#166821 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Hi,

HikaShop does not have any variable for the website name, only for the website URL.
If you want to get the website name, that's a setting of the Joomla configuration, so you can access it with Joomla code:
$conf = JFactory::getConfig();
echo $conf-&gt;get('sitename');

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

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

Less More

- Posts: 80
- Thank you received: 0
-
-

11 years 10 months ago [\#183195](#183195) by [Lynn](/forum/user/1579-lynn "View Lynn's Profile")  Replied by *[Lynn](/forum/user/1579-lynn "View Lynn's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#183195 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

Id really like to request an easier way to do this as a feature, such as field in CONFIG that lets you enter macros and text.

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

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-05.jpeg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

11 years 10 months ago [\#183211](#183211) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[\[SOLVED\] Add ORDER NUMBER to the Subject Line](/forum/2-general-talk-about-hikashop/71814-solved-add-order-number-to-the-subject-line#183211 "We use Google Business email for our domain emails. While it is good, the whole concept of conversation and email THREADS is based on the SUBJECT LINE of the email.  HikaShop sends the email &quot;A new order has been created on your website&quot; but there isn't any ORDER NUMBER in that subject line. SO -- Gmail threads ALL of our orders together in one huge thread. It makes it very difficult to look at the latest order received, have a conversation with the purchaser, etc.  Would it be possible to add the ORDER NUMBER to the Subject Line of that first 'A new order...' email? The order number appears in the Payment Received emails subject line...  Thanks!")*

I've made this a feature request:

[ www.hikashop.com/forum/feature-request/8...f-emails.html#183210](http://www.hikashop.com/forum/feature-request/873631-add-order-number-to-the-subject-line-of-emails.html#183210)

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

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

[](#top)
