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

#   Custom entry in E-mails on order change

##

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

Less More

- Posts: 139
- Thank you received: 1
-
-

12 years 4 months ago [\#162202](#162202) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  *[Custom entry in E-mails on order change](/forum/33-customers/869351-custom-entry-in-e-mails-on-order-change#162202 "I am wanting to add another field in the dictionary called CUSTOMMESSAGE=&quot;My custom message&quot;  I want this message to be displayed in the email that is sent out when the order status is changed to &quot;Confirmed&quot;  How do I go about this?")* was created by *[abasel](/forum/user/6302-abasel "View abasel's Profile")*

I am wanting to add another field in the dictionary called
CUSTOMMESSAGE="My custom message"

I want this message to be displayed in the email that is sent out when the order status is changed to "Confirmed"

How do I go about this?

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

12 years 4 months ago [\#162215](#162215) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom entry in E-mails on order change](/forum/33-customers/869351-custom-entry-in-e-mails-on-order-change#162215 "I am wanting to add another field in the dictionary called CUSTOMMESSAGE=&quot;My custom message&quot;  I want this message to be displayed in the email that is sent out when the order status is changed to &quot;Confirmed&quot;  How do I go about this?")*

Hi,

The simplest is to directly write your text in the order status notification email template that you can edit in the HTML version area of the email via the menu System&gt;Emails.
And if you want to use translations, then you want to add instead such code in there:
&lt;?php echo JText::_('CUSTOMMESSAGE'); ?&gt;
and then add your translation line to the override area of your HikaShop translation file via the Languages tab of the HikaShop configuration.

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

12 years 4 months ago [\#162335](#162335) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[Custom entry in E-mails on order change](/forum/33-customers/869351-custom-entry-in-e-mails-on-order-change#162335 "I am wanting to add another field in the dictionary called CUSTOMMESSAGE=&quot;My custom message&quot;  I want this message to be displayed in the email that is sent out when the order status is changed to &quot;Confirmed&quot;  How do I go about this?")*

Ok, just one more question on this part. I am only wanting this custom message to display when the Purchase status changes to "confirmed"

What would the PHP if statement look like? I have looked at the code but seem to be missing the part that deals with the status.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 4 months ago [\#162337](#162337) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Custom entry in E-mails on order change](/forum/33-customers/869351-custom-entry-in-e-mails-on-order-change#162337 "I am wanting to add another field in the dictionary called CUSTOMMESSAGE=&quot;My custom message&quot;  I want this message to be displayed in the email that is sent out when the order status is changed to &quot;Confirmed&quot;  How do I go about this?")*

Hello,
The solution will be to use some php code like : Code:

&lt;?php if ($data-&gt;oder_status == 'YOUR_STATUS' )echo JText::_('CUSTOMMESSAGE'); ?&gt;

Note that you'll have to replace the "YOUR_STATUS" string by the order status.

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