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

#   Status Emails

##

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

10 years 7 months ago [\#234630](#234630) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  *[Status Emails](/forum/35-orders-management/883438-status-emails#234630 "-- HikaShop version -- : 2.6.1. -- Joomla version -- : 3.5.0. -- PHP version -- : 5.4.38  I have a question about the status emails. The problem i am having is that we are selling in europe with a lot of different payment types. We have a 3rd party that we are also dealing with. Normally when the payment is complete the status of the order will go to &quot;Confirmed&quot;. At that time an email will be send to the customer with an invoice attached. Now for the 3rd party i have several emailaddresses which they also need to receive the invoice. So i created another orderstatus called processing. What i am trying to do is when i change the status to processing, that an email will be send to the 3rd parties including the invoice pdf as attachement but not to the customer.  So 2 problems. Attach invoice pdf to another status and send email to 3rd part on processing status without sending it to the customer.  Some of the things i found where from 3-4 years ago, so not for sure if this is still valid.")* was created by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")*

-- HikaShop version -- : 2.6.1.
-- Joomla version -- : 3.5.0.
-- PHP version -- : 5.4.38

I have a question about the status emails.
The problem i am having is that we are selling in europe with a lot of different payment types. We have a 3rd party that we are also dealing with. Normally when the payment is complete the status of the order will go to "Confirmed".
At that time an email will be send to the customer with an invoice attached.
Now for the 3rd party i have several emailaddresses which they also need to receive the invoice.
So i created another orderstatus called processing.
What i am trying to do is when i change the status to processing, that an email will be send to the 3rd parties including the invoice pdf as attachement but not to the customer.

So 2 problems. Attach invoice pdf to another status and send email to 3rd part on processing status without sending it to the customer.

Some of the things i found where from 3-4 years ago, so not for sure if this is still valid.

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

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

10 years 7 months ago [\#234645](#234645) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  Replied by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")* on topic *[Status Emails](/forum/35-orders-management/883438-status-emails#234645 "-- HikaShop version -- : 2.6.1. -- Joomla version -- : 3.5.0. -- PHP version -- : 5.4.38  I have a question about the status emails. The problem i am having is that we are selling in europe with a lot of different payment types. We have a 3rd party that we are also dealing with. Normally when the payment is complete the status of the order will go to &quot;Confirmed&quot;. At that time an email will be send to the customer with an invoice attached. Now for the 3rd party i have several emailaddresses which they also need to receive the invoice. So i created another orderstatus called processing. What i am trying to do is when i change the status to processing, that an email will be send to the 3rd parties including the invoice pdf as attachement but not to the customer.  So 2 problems. Attach invoice pdf to another status and send email to 3rd part on processing status without sending it to the customer.  Some of the things i found where from 3-4 years ago, so not for sure if this is still valid.")*

I sovled the problem for sending the email to 3rd party on processing status by adding the below code to the bottom of the HTML part of the email.

&lt;?php
if($data-&gt;order_status=='processing') {
$data-&gt;customer-&gt;user_email = 'email1,email2';
$data-&gt;customer-&gt;name = 'Some Name';
}
?&gt;

Only thing now is that i need to attach the invoice also to this email (order status = Processing)

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

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

10 years 7 months ago [\#234735](#234735) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  Replied by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")* on topic *[Status Emails](/forum/35-orders-management/883438-status-emails#234735 "-- HikaShop version -- : 2.6.1. -- Joomla version -- : 3.5.0. -- PHP version -- : 5.4.38  I have a question about the status emails. The problem i am having is that we are selling in europe with a lot of different payment types. We have a 3rd party that we are also dealing with. Normally when the payment is complete the status of the order will go to &quot;Confirmed&quot;. At that time an email will be send to the customer with an invoice attached. Now for the 3rd party i have several emailaddresses which they also need to receive the invoice. So i created another orderstatus called processing. What i am trying to do is when i change the status to processing, that an email will be send to the 3rd parties including the invoice pdf as attachement but not to the customer.  So 2 problems. Attach invoice pdf to another status and send email to 3rd part on processing status without sending it to the customer.  Some of the things i found where from 3-4 years ago, so not for sure if this is still valid.")*

I found this piece of code in the attachinvoice.php file.

//We only add the invoice to confirmed orders... and for the status notification e-mail only!
$config =&amp; hikashop_config();
$confirmed = $this-&gt;params-&gt;get('status_override');
if(!empty($confirmed)){
$confirmed = explode(',',$confirmed);
}else{
$confirmed = array($config-&gt;get('order_confirmed_status','confirmed'));
}

How can i change this to make it that it will both attach the invoice to the confirmed status and the processing status?

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

10 years 7 months ago [\#234746](#234746) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Status Emails](/forum/35-orders-management/883438-status-emails#234746 "-- HikaShop version -- : 2.6.1. -- Joomla version -- : 3.5.0. -- PHP version -- : 5.4.38  I have a question about the status emails. The problem i am having is that we are selling in europe with a lot of different payment types. We have a 3rd party that we are also dealing with. Normally when the payment is complete the status of the order will go to &quot;Confirmed&quot;. At that time an email will be send to the customer with an invoice attached. Now for the 3rd party i have several emailaddresses which they also need to receive the invoice. So i created another orderstatus called processing. What i am trying to do is when i change the status to processing, that an email will be send to the 3rd parties including the invoice pdf as attachement but not to the customer.  So 2 problems. Attach invoice pdf to another status and send email to 3rd part on processing status without sending it to the customer.  Some of the things i found where from 3-4 years ago, so not for sure if this is still valid.")*

Hi,

In the settings of the PDF invoice plugin, you have a setting to enter the name of the order statuses (separated by a comma) for which the PDF should be included in the emails. So write the statuses you want there and that should do it.

The following user(s) said Thank You: [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")

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

- **[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")**
- [![rkuiper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg)](/forum/user/28454-rkuiper "View rkuiper's Profile") Topic Author
- [ Offline](/forum/user/28454-rkuiper)

Less More

- Posts: 79
- Thank you received: 2
-
-

10 years 7 months ago [\#234760](#234760) by [rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")  Replied by *[rkuiper](/forum/user/28454-rkuiper "View rkuiper's Profile")* on topic *[Status Emails](/forum/35-orders-management/883438-status-emails#234760 "-- HikaShop version -- : 2.6.1. -- Joomla version -- : 3.5.0. -- PHP version -- : 5.4.38  I have a question about the status emails. The problem i am having is that we are selling in europe with a lot of different payment types. We have a 3rd party that we are also dealing with. Normally when the payment is complete the status of the order will go to &quot;Confirmed&quot;. At that time an email will be send to the customer with an invoice attached. Now for the 3rd party i have several emailaddresses which they also need to receive the invoice. So i created another orderstatus called processing. What i am trying to do is when i change the status to processing, that an email will be send to the 3rd parties including the invoice pdf as attachement but not to the customer.  So 2 problems. Attach invoice pdf to another status and send email to 3rd part on processing status without sending it to the customer.  Some of the things i found where from 3-4 years ago, so not for sure if this is still valid.")*

Thanks nicolas,
Thats and awesome feature. I didnt realize it was there.
Its working great thanks.

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

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