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

#   How to customize email according to order status?

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 9 months ago [\#226235](#226235) by [sasa](/forum/user/40373-sasa "View sasa's Profile")  *[How to customize email according to order status?](/forum/35-orders-management/881508-how-to-customize-email-according-to-order-status#226235 "Hi, i would like to customize my email when i update the order status to notify customer. I would want to remove the summary of order for only certain order status that i created my own. (refer to my attachment for clearer picture). I am aware that i am required to do some editing in the php file, however i am not so sure of coding. Could you please help me? Thank you so much!")* was created by *[sasa](/forum/user/40373-sasa "View sasa's Profile")*

Hi, i would like to customize my email when i update the order status to notify customer.
I would want to **remove** the summary of order for **only** certain order status that i created my own. (refer to my attachment for clearer picture). I am aware that i am required to do some editing in the php file, however i am not so sure of coding.
Could you please help me? Thank you so much!

- [ ![summary12.png](/forum/attachment/28830) ](/forum/attachment/28830 "summary12.png") [ ](/forum/attachment/28830?download=1 "summary12.png")

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

10 years 9 months ago [\#226293](#226293) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to customize email according to order status?](/forum/35-orders-management/881508-how-to-customize-email-according-to-order-status#226293 "Hi, i would like to customize my email when i update the order status to notify customer. I would want to remove the summary of order for only certain order status that i created my own. (refer to my attachment for clearer picture). I am aware that i am required to do some editing in the php file, however i am not so sure of coding. Could you please help me? Thank you so much!")*

Hi,

You can add the following php if condition: Code:

&lt;?php if(!in_array($data-&gt;order-&gt;order_status,array('X','Y'))){ ?&gt;

Around the code: Code:

&lt;h1 style="color:#1c8faf !important;font-size:16px;font-weight:bold;border-bottom:1px solid #ddd;padding-top:10px;padding-bottom:10px;"&gt; {TXT:SUMMARY_OF_YOUR_ORDER} &lt;/h1&gt; &lt;!--{START:VENDOR_LINE}--&gt; &lt;!--{IF:VENDOR_CONTENT}--&gt;{VAR:VENDOR_CONTENT}&lt;!--{ENDIF:VENDOR_CONTENT}--&gt; &lt;table class="w550" border="0" cellspacing="0" cellpadding="0" width="550" style="margin-top:10px;margin-bottom:10px;font-family: Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;"&gt; &lt;tr&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:left;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_NAME}&lt;/td&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_PRICE}&lt;/td&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_QUANTITY}&lt;/td&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_TOTAL}&lt;/td&gt; &lt;/tr&gt; &lt;!--{START:PRODUCT_LINE}--&gt; &lt;tr&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;"&gt; {LINEVAR:PRODUCT_IMG} {LINEVAR:PRODUCT_NAME}&lt;!--{IF:ORDER_PRODUCT_CODE}--&gt; {LINEVAR:PRODUCT_CODE}&lt;!--{ENDIF:ORDER_PRODUCT_CODE}--&gt; {LINEVAR:PRODUCT_DOWNLOAD} {LINEVAR:PRODUCT_DETAILS} &lt;/td&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;{LINEVAR:PRODUCT_PRICE}&lt;/td&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;{LINEVAR:PRODUCT_QUANTITY}&lt;/td&gt; &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;{LINEVAR:PRODUCT_TOTAL}&lt;/td&gt; &lt;/tr&gt; &lt;!--{END:PRODUCT_LINE}--&gt; &lt;!--{START:ORDER_FOOTER}--&gt; &lt;tr&gt; &lt;td colspan="3" style="text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{LINEVAR:NAME}&lt;/td&gt; &lt;td style="text-align:right"&gt;{LINEVAR:VALUE}&lt;/td&gt; &lt;/tr&gt; &lt;!--{END:ORDER_FOOTER}--&gt; &lt;/table&gt; &lt;!--{END:VENDOR_LINE}--&gt;

Don't forget to add: Code:

&lt;?php } ?&gt;

Right after this code, else it will return an error.

In the given code, you have to replace the "X" and the "Y" by the order status for which you don't want to see the summary.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 9 months ago [\#226393](#226393) by [sasa](/forum/user/40373-sasa "View sasa's Profile")  Replied by *[sasa](/forum/user/40373-sasa "View sasa's Profile")* on topic *[How to customize email according to order status?](/forum/35-orders-management/881508-how-to-customize-email-according-to-order-status#226393 "Hi, i would like to customize my email when i update the order status to notify customer. I would want to remove the summary of order for only certain order status that i created my own. (refer to my attachment for clearer picture). I am aware that i am required to do some editing in the php file, however i am not so sure of coding. Could you please help me? Thank you so much!")*

Thank you so much xavier! I really appreciate it ![:)](/media/kunena/emoticons/8.png ":)")
Which file should i put this line of code into? I'm using hikashop version 2.6, joomla version 2.5

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MTUwOC1ob3ctdG8tY3VzdG9taXplLWVtYWlsLWFjY29yZGluZy10by1vcmRlci1zdGF0dXM/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: 14266
-
-

10 years 9 months ago [\#226430](#226430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to customize email according to order status?](/forum/35-orders-management/881508-how-to-customize-email-according-to-order-status#226430 "Hi, i would like to customize my email when i update the order status to notify customer. I would want to remove the summary of order for only certain order status that i created my own. (refer to my attachment for clearer picture). I am aware that i am required to do some editing in the php file, however i am not so sure of coding. Could you please help me? Thank you so much!")*

Hi,

You can do that in the HTML version of the email that you'll find when you edit the email via the menu System&gt;Emails (Business edition only).

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

10 years 9 months ago [\#226711](#226711) by [sasa](/forum/user/40373-sasa "View sasa's Profile")  Replied by *[sasa](/forum/user/40373-sasa "View sasa's Profile")* on topic *[How to customize email according to order status?](/forum/35-orders-management/881508-how-to-customize-email-according-to-order-status#226711 "Hi, i would like to customize my email when i update the order status to notify customer. I would want to remove the summary of order for only certain order status that i created my own. (refer to my attachment for clearer picture). I am aware that i am required to do some editing in the php file, however i am not so sure of coding. Could you please help me? Thank you so much!")*

Hi, I am using the starter pack.
Would really hoping for it to work. Is there any way i can implement it into the codes? I want to adjust the template of the order status email. I am hoping to get the template follows the order status each time when i update the order status.
Please help me with this.

Thank you ![:D](/bigsmile.gif ":D")

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

10 years 9 months ago [\#226735](#226735) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to customize email according to order status?](/forum/35-orders-management/881508-how-to-customize-email-according-to-order-status#226735 "Hi, i would like to customize my email when i update the order status to notify customer. I would want to remove the summary of order for only certain order status that i created my own. (refer to my attachment for clearer picture). I am aware that i am required to do some editing in the php file, however i am not so sure of coding. Could you please help me? Thank you so much!")*

Hi,

We already gave you some code and we already told you that the email edition is provided by HikaShop Business.
I am sorry but our support won't be able to help you further for your request.

Regards,

---

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

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

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

[](#top)
