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

#   Change subject title email

##

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

Less More

- Posts: 91
- Thank you received: 3
-
-

12 years 9 months ago [\#143495](#143495) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  *[Change subject title email](/forum/35-orders-management/865768-change-subject-title-email#143495 "Hi, I'm curious where to find the code for the titles of the emails, and especially the variables. In the language file I see: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT=&quot;Your order No. %s is now %s at %s&quot;  I want to know where is defined what the first %s will do, the second, et cetera. I know it is order number, status and shop-URL, but where is that defined?  My specific goal this time is to change the third %s from URL of the shop to name of the shop (which is not used in Hikashop as far as I know, so I will have to create SHOP&#95;NAME=&quot;&quot;)")* was created by *[miracle](/forum/user/17825-miracle "View miracle's Profile")*

Hi, I'm curious where to find the code for the titles of the emails, and especially the variables.
In the language file I see: ORDER_CREATION_NOTIFICATION_SUBJECT="Your order No. %s is now %s at %s"

I want to know where is defined what the first %s will do, the second, et cetera.
I know it is order number, status and shop-URL, but where is that defined?

My specific goal this time is to change the third %s from URL of the shop to name of the shop (which is not used in Hikashop as far as I know, so I will have to create SHOP_NAME="")

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

12 years 9 months ago [\#143508](#143508) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Change subject title email](/forum/35-orders-management/865768-change-subject-title-email#143508 "Hi, I'm curious where to find the code for the titles of the emails, and especially the variables. In the language file I see: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT=&quot;Your order No. %s is now %s at %s&quot;  I want to know where is defined what the first %s will do, the second, et cetera. I know it is order number, status and shop-URL, but where is that defined?  My specific goal this time is to change the third %s from URL of the shop to name of the shop (which is not used in Hikashop as far as I know, so I will have to create SHOP&#95;NAME=&quot;&quot;)")*

Hi there,

The problem is that this translation will be call multiple times and it's pretty boring to replace the third argument every time.
So I could do a search on our project and give you every time it appears but you may not like the number of time you'll have to edit the file (and there might be some in core files). If you plan to use the name of the shop you could simply replace the last %s by the name of the shop in the translation, it should work fine ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 91
- Thank you received: 3
-
-

12 years 9 months ago [\#143513](#143513) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  Replied by *[miracle](/forum/user/17825-miracle "View miracle's Profile")* on topic *[Change subject title email](/forum/35-orders-management/865768-change-subject-title-email#143513 "Hi, I'm curious where to find the code for the titles of the emails, and especially the variables. In the language file I see: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT=&quot;Your order No. %s is now %s at %s&quot;  I want to know where is defined what the first %s will do, the second, et cetera. I know it is order number, status and shop-URL, but where is that defined?  My specific goal this time is to change the third %s from URL of the shop to name of the shop (which is not used in Hikashop as far as I know, so I will have to create SHOP&#95;NAME=&quot;&quot;)")*

OK, thanks for the workaround, but I'm still curious for the file involved. Because there must be one piece of code telling for this specific email which variables to load...

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

12 years 9 months ago [\#143848](#143848) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Change subject title email](/forum/35-orders-management/865768-change-subject-title-email#143848 "Hi, I'm curious where to find the code for the titles of the emails, and especially the variables. In the language file I see: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT=&quot;Your order No. %s is now %s at %s&quot;  I want to know where is defined what the first %s will do, the second, et cetera. I know it is order number, status and shop-URL, but where is that defined?  My specific goal this time is to change the third %s from URL of the shop to name of the shop (which is not used in Hikashop as far as I know, so I will have to create SHOP&#95;NAME=&quot;&quot;)")*

Sorry about the delay, it took a bit of time.
The function is actually called once in administrator/components/com_hikashop/classes/order.php

Here is the line: Code:

$order-&gt;mail-&gt;subject = JText::sprintf($order-&gt;mail-&gt;subject,$order-&gt;order_number,$mail_status,HIKASHOP_LIVE);

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

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