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

#   Adding extra detail in Order Confirmation emails

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 4 months ago [\#110906](#110906) by [simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")  *[Adding extra detail in Order Confirmation emails](/forum/4-how-to/84179-adding-extra-detail-in-order-confirmation-emails#110906 "Hi, just purchased HikaShop Business having played around with Starter and deciding this is definitely the way to go. Having been slogging through several issues brought about by the upgrade and am...")* was created by *[simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")*

Hi, just purchased HikaShop Business having played around with Starter and deciding this is definitely the way to go. Having been slogging through several issues brought about by the upgrade and am now just getting to the bits that I purchased Business for, mainly customising email confirmations.

I have found where to update the content of these but need some guidance:-

1. Which is the email that is sent to the shop owner when an order has been confirmed (is it different to the one sent to the customer)?

2. How can I add the payment method used on the confirmation email so that the shop owner can tell this without having to log in to the back-end to find out? (My shop owner is not IT literate and does not want to know anything about Joomla or HikaShop, he just wants email notifications of sales!)

3. When the check payment method is used, I need to add payment instructions to the order confirmation. I know I can display a post checkout message to appear on the screen but need to repeat this in the confirmation email. I do not want this to appear in the confirmation email when any other payment method has been used. This is something that I have done in Zen Cart (albeit by manually editing language files etc.) but cant see a way to do it here.

I have loads of other issues that I'm working through, but the above are the only one's stopping my shop going live so I would appreciate any pointers that might speed my fix of this.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MTc5LWFkZGluZy1leHRyYS1kZXRhaWwtaW4tb3JkZXItY29uZmlybWF0aW9uLWVtYWlscz90bXBsPW1hcmtkb3du) 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 4 months ago [\#110999](#110999) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Adding extra detail in Order Confirmation emails](/forum/4-how-to/84179-adding-extra-detail-in-order-confirmation-emails#110999 "Hi, just purchased HikaShop Business having played around with Starter and deciding this is definitely the way to go. Having been slogging through several issues brought about by the upgrade and am...")*

Hi,

1. The mail sent to the administrator is not the same email thant the one received by the customers.
It's the mail: Order administrator notification

2. To display the Payment method used, you can use the code: echo $data-&gt;order_payment_method;

3. You have to edit the mail "Order status notification" and use the same variable $data-&gt;order_payment_method to check if the payment method is by check, if it is, display the instructions again.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 4 months ago [\#111158](#111158) by [simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")  Replied by *[simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")* on topic *[Adding extra detail in Order Confirmation emails](/forum/4-how-to/84179-adding-extra-detail-in-order-confirmation-emails#111158 "Hi, just purchased HikaShop Business having played around with Starter and deciding this is definitely the way to go. Having been slogging through several issues brought about by the upgrade and am...")*

Thanks Xavier,

I am not very confident programming in php but have managed to sort the first one thanks to you.

I am struggling with editing the 'order status notification' as I am not familiar with the syntax of the 'if' statement. I have found putting it in wrong crashes the whole checkout process. Nevertheless I am copying the syntax from elsewhere and will keep trying until I get it right.

Am I right in thinking I need to add another entry in the language file (en-GB.com_hikashop.ini) that contains the payment instruction text to be displayed or can I just echo it straight in the 'order status notification' email once I've got the syntax right?

Thanks for your help. Love the product.

Simon

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MTc5LWFkZGluZy1leHRyYS1kZXRhaWwtaW4tb3JkZXItY29uZmlybWF0aW9uLWVtYWlscz90bXBsPW1hcmtkb3du) 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 4 months ago [\#111224](#111224) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Adding extra detail in Order Confirmation emails](/forum/4-how-to/84179-adding-extra-detail-in-order-confirmation-emails#111224 "Hi, just purchased HikaShop Business having played around with Starter and deciding this is definitely the way to go. Having been slogging through several issues brought about by the upgrade and am...")*

Hi,

You can probably use: Code:

if( $data-&gt;order_payment_method == 'check'){ echo JText::_('CHECK_PAYMENT_INSTRUCTIONS'); }

And add a translation like:
CHECK_PAYMENT_INSTRUCTIONS="Send the check to the address ..."

in HikaShop &gt; Configuration &gt; Languages, select the desired language and add this in the override part.

It's better to add it in the translation file, by this way you can translate it in many languages.
Else an echo in the mail works too.

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 4 months ago [\#111321](#111321) by [simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")  Replied by *[simoncole67](/forum/user/22969-simoncole67 "View simoncole67's Profile")* on topic *[Adding extra detail in Order Confirmation emails](/forum/4-how-to/84179-adding-extra-detail-in-order-confirmation-emails#111321 "Hi, just purchased HikaShop Business having played around with Starter and deciding this is definitely the way to go. Having been slogging through several issues brought about by the upgrade and am...")*

Thanks again,

Just cant seem to get the syntax right for the if statement, it either crashes the checkout process completely or just doesn't return what I expect.

No matter, I have added the payment instructions to the translation file, and am echoing it as standard in the 'order creation notification' email. It just means that all customers will see these instructions and not just those that elect to pay by check. That is not the end of the world and will do until I can learn a bit more about how to code php properly.

Thanks for your help, and for pointing me in the right direction to do a work around.

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

13 years 4 months ago [\#111506](#111506) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding extra detail in Order Confirmation emails](/forum/4-how-to/84179-adding-extra-detail-in-order-confirmation-emails#111506 "Hi, just purchased HikaShop Business having played around with Starter and deciding this is definitely the way to go. Having been slogging through several issues brought about by the upgrade and am...")*

Hi,

The syntax Xavier gave is correct. However, note that you need to add a &lt;?php tag before and a ?&gt; tag after the code so it get interpreted, if you're adding it inside HTML code.

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

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

[](#top)
