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

#   Custom email confirmation based on product

##

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 1 month ago [\#250998](#250998) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#250998 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")* was created by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.5.38
-- Browser(s) name and version -- : FF &amp; Chrome - Updated

I read this post [ Modify "confirmed order" email based on purchase](https://hikashop.com/support/forum/customers/873349-modify-confirmed-order-email-based-on-purchase.html) and have edited the 'en-GB.com_hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.

Here is the 'pertinent' fields in the language file:
Code:

THANK_YOU_FOR_YOUR_ORDER="Once again, thank you for your order at %s. We hope to see you again soon." THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL="&lt;br /&gt;&lt;strong&gt;NEXT STEP: &lt;/strong&gt;Now that you have completed your purchase, the next step is to send the coupon code to your client with instructions for them to come to this website, create an account, purchased the pertinent Client program, either Divorcing with Children or Divorcing without Children, and apply the coupon to their purchase which will provide the program to them at no cost." THANK_YOU_FOR_YOUR_ORDER_CLIENT="&lt;br /&gt;&lt;strong&gt;NEXT STEP: &lt;/strong&gt;Now that you have completed your purchase, the next step is log into our website, view the instructions on the right sidebar after logging in and click the link to begin viewing the program that you have purchased."

Here is the edits to the Text version section of the email (fully displayed here):
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.3 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php echo JText::sprintf('HI_CUSTOMER',@$data-&gt;customer-&gt;name)."\n"."\n";?&gt; &lt;?php $url = $data-&gt;order-&gt;order_number; if($config-&gt;get('simplified_registration',0) != 2) { $url .= "\n".'( '.$data-&gt;order_url.' )'."\n"; } echo JText::sprintf('ORDER_STATUS_CHANGED_TO',$url,$data-&gt;mail_status)."\n"."\n";?&gt; &lt;?php echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE)."\n"."\n"."\n"; ?&gt; &lt;?php /* adding additional text based on which product was ordered. */ foreach($data-&gt;cart-&gt;products as $product){ if($product-&gt;product_id==1){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==2){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==3){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==4){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)."\n"."\n"."\n"; } } ?&gt; &lt;?php echo str_replace('&lt;br/&gt;',"\n",JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name));?&gt;

When I did a test, the order confirmation email did not display the additional text.

Can you tell me what I am doing incorrectly?

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

10 years 1 month ago [\#251046](#251046) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251046 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Hi,

The "text version" of the email will only be displayed by your email client if there is no HTML version or if your email client doesn't support HTML. But these days, almost all the email clients out there support HTML versions, and unless you force the setting in the email to not send the HTML version, HikaShop will send either the HTML version only or both the HTML and the text version.
So if you add custom code in the text version, it's normal you don't see it.
I would recommend to put that in the HTML version.

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 1 month ago [\#251101](#251101) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251101 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Nicolas,

I do not see any coding for the 'THANK_YOU_FOR_YOUR_ORDER' in the HTML version section. The only area that I see dealing with the end of order messaging is as follows:
Code:

&lt;!--{ENDIF:ORDER_SUMMARY}--&gt; &lt;p&gt; {TXT:ORDER_END_MESSAGE} &lt;/p&gt;

I assumed that the "{TXT:ORDER_END_MESSAGE}" was internal code to insert what has been coded in the 'Text version' section. If this is incorrect, then do I simply replace the code "&lt;p&gt; {TXT:ORDER_END_MESSAGE} &lt;/p&gt;" with the 'entire' Text version' code?

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

10 years 1 month ago [\#251129](#251129) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251129 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Hi,

It's almost that. It's an "internal code to insert what has been coded in the" preload version section.

So yes, you can replace the code with your custom PHP. Or modify the code of the preload. Both are possible.

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 1 month ago [\#251194](#251194) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251194 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Nicolas,

You comments are cryptic. I don't want to be critical here as I have 'very high' respect and admiration for the HikaShop team but please remember that most of the people who come to the forums are either not developers themselves, are beginner or intermediate level developers or people, like myself, who are advanced developers (yep, been doing it for 40+ years).

Naturally, someone who is not a developer needs a higher level of guidance but so too does beginner to advanced developers. Why? Because they didn't code HikaShop. You can give an instruction like this but, as a developer, I can't just go half-cocked (American term for jumping off a cliff) and hope that what I do will work. It is important to me that I do more good than harm. I may 'think' I understand exactly what to do but without knowing what some underlying code may be doing to the changes I make, I could cause more harm because I do not know 'fully' the underlying structure / coding and, to be honest, I really don't have time to 'reverse engineer' HikaShop. ![:P](/media/kunena/emoticons/14.png ":P") As much as I hate to say this but give feedback like you're speaking to a dummy, call it "HikaShop for Dummies". :lol: :lol:

So you say "you can replace the code with your custom PHP.". Are you talking about the PHP that is in the 'Text Version'? If so, why not just simply say "you can replace the {TXT:ORDER_END_MESSAGE} with the entire contents in your edited 'Text Version' ". I am assuming that is what you are saying. If not, enlighten me.

As far as making the changes in the Preload version, If I decided to change that version, would I replace this code:
Code:

'ORDER_BEGIN_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE), 'ORDER_END_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '&lt;br/&gt;' . JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name),

With this code to accomplish the same thing:
Code:

'ORDER_BEGIN_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE), 'ORDER_END_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '&lt;br/&gt;' . foreach($data-&gt;cart-&gt;products as $product){ if($product-&gt;product_id==1){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE) } if($product-&gt;product_id==2){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE) } if($product-&gt;product_id==3){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE) } if($product-&gt;product_id==4){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE) } } . '&lt;br/&gt;' . JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name),

If I change either the "HTML version" or the "Preload version", should I remove the changes that I made in the "Text version"?

Again, I appreciate your efforts.

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

10 years 1 month ago [\#251236](#251236) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251236 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Hi,

We prefer to spend time on a new version of the documentation instead of writing the same elements in the forum.
You will be able to find a dozen of thread (or more) about the email edition and the "html / text / preload" elements.
So, I understand your message and your advice ; but also please understand that when we see an account with around 200 messages, we suppose that you already have some knowledge about HikaShop workarounds.

Now each time you edit an email it will create overrides for the three parts.
So, logically, you can delete the overrides if you did not make modification but you can keep them if you want to be sure that it will not be modified with an update.

Regards,

---

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

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 1 month ago -  10 years 1 month ago [\#251243](#251243) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251243 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

I feel your frustration. ![:(](/media/kunena/emoticons/22.png ":(")

In the "Order notification" email, I tried this in the Preload version with no success in the confirmation email.
Code:

'ORDER_BEGIN_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE), 'ORDER_END_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '&lt;br/&gt;' . foreach($data-&gt;cart-&gt;products as $product){ if($product-&gt;product_id==1){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE) } if($product-&gt;product_id==2){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE) } if($product-&gt;product_id==3){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE) } if($product-&gt;product_id==4){ JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE) } } . '&lt;br/&gt;' . JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name),

I tried this in the HTML version with no success in the confirmation email:
Code:

&lt;!--{ENDIF:ORDER_SUMMARY}--&gt; &lt;p&gt; &lt;!-- bypass text insert and post PHP in directly {TXT:ORDER_END_MESSAGE} --&gt; &lt;?php /** * @package HikaShop for Joomla! * @version 2.6.3 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php echo JText::sprintf('HI_CUSTOMER',@$data-&gt;customer-&gt;name)."\n"."\n";?&gt; &lt;?php $url = $data-&gt;order-&gt;order_number; if($config-&gt;get('simplified_registration',0) != 2) { $url .= "\n".'( '.$data-&gt;order_url.' )'."\n"; } echo JText::sprintf('ORDER_STATUS_CHANGED_TO',$url,$data-&gt;mail_status)."\n"."\n";?&gt; &lt;?php echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE)."\n"."\n"."\n"; ?&gt; &lt;?php /* adding additional text based on which product was ordered. */ foreach($data-&gt;cart-&gt;products as $product){ if($product-&gt;product_id==1){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==2){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==3){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==4){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)."\n"."\n"."\n"; } } ?&gt; &lt;?php echo str_replace('&lt;br/&gt;',"\n",JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name));?&gt; &lt;/p&gt; &lt;!-- end PHP insert --&gt;

I have confirmed that the 'en-GB.com_hikashop.ini' file has the reference language fields:
Code:

THANK_YOU_FOR_YOUR_ORDER="Once again, thank you for your order at %s. We hope to see you again soon." THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL="&lt;br /&gt;&lt;strong&gt;NEXT STEP: &lt;/strong&gt;Now that you have completed your purchase, the next step is to send the coupon code to your client with instructions for them to come to this website, create an account, purchased the pertinent Client program, either Divorcing with Children or Divorcing without Children, and apply the coupon to their purchase which will provide the program to them at no cost." THANK_YOU_FOR_YOUR_ORDER_CLIENT="&lt;br /&gt;&lt;strong&gt;NEXT STEP: &lt;/strong&gt;Now that you have completed your purchase, the next step is log into our website, view the instructions on the right sidebar after logging in and click the link to begin viewing the program that you have purchased."

It looks like I have tried the correct coding to insert this additional text but, so far, no luck. Any suggestions?

As far as I can see, it should be

Last edit: 10 years 1 month ago by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile").

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

10 years 1 month ago [\#251266](#251266) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251266 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Hi,

The code: Code:

&lt;?php /* adding additional text based on which product was ordered. */ foreach($data-&gt;cart-&gt;products as $product){ if($product-&gt;product_id==1){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==2){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==3){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_CLIENT',HIKASHOP_LIVE)."\n"."\n"."\n"; } if($product-&gt;product_id==4){ echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_PROFESSIONAL',HIKASHOP_LIVE)."\n"."\n"."\n"; } } ?&gt;

added to the HTML version should definitely display the text in the email if the product_id of one of the products in the order has that id. Note however that if your products have variants, when you purchase it the product_id will be the id of the variant, not the id of the main product. So that might be why it doesn't display.

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

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

Less More

- Posts: 332
- Thank you received: 6
-
-

10 years 1 month ago [\#251332](#251332) by [LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")  Replied by *[LukeDouglas](/forum/user/29032-lukedouglas "View LukeDouglas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#251332 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Nicolas,

I tested and it didn't work so I did some digging and found the issue. I was editing the 'Order notification' instead of the 'Order status notification'. Once I made the changes to that record, it worked. Sorry for all this back and forth when it was a much simpler issue. :woohoo:

Also, I like the style changes on the website. Very nice!

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

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

Less More

- Posts: 198
- Thank you received: 4
-
-

3 years 4 months ago [\#352795](#352795) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  Replied by *[arnask](/forum/user/6752-arnask "View arnask's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#352795 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

what i should add if i want this custom text not only on certain product ordered, but also only if order status changed to "confirmed".
Basically i need a custom text to appear in email for customer if order status is "conformed" and there is a custom product in order.

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

3 years 4 months ago [\#352796](#352796) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#352796 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

Hi,

When you edit the "order status notification" email, you have a "per status override" button for the HTML area.
Click on it and it will open a popup where you can select the order status and do your modifications of the HTML only for that particular order status. So you should be able to use the same code through that.

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

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

Less More

- Posts: 198
- Thank you received: 4
-
-

3 years 4 months ago -  3 years 4 months ago [\#352830](#352830) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  Replied by *[arnask](/forum/user/6752-arnask "View arnask's Profile")* on topic *[Custom email confirmation based on product](/forum/33-customers/886637-custom-email-confirmation-based-on-product#352830 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : FF &amp; Chrome - Updated  I read this post and have edited the 'en-GB.com&#95;hikashop.ini file as well as edited the order confirmation email. However, it does not seem to be working as the 'additional' text is not displayed.  Here is the 'pertinent' fields in the language file:  Here is the edits to the Text version section of the email (fully displayed here):  When I did a test, the order confirmation email did not display the additional text.  Can you tell me what I am doing incorrectly?")*

ok, but customer is stil getting "pending" email notifications, how to disable those completely? I need customer to get only one email - when status is "confirmed".

UPDATE: this was sent by payment plugin, Managed to get rid of that.

Last edit: 3 years 4 months ago by [arnask](/forum/user/6752-arnask "View arnask's Profile").

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

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