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

#   How can we ONLY get an email with the status confirmed??

##

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338191](#338191) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338191 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")* was created by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")*

-- url of the page with the problem -- : sal-mon.nl

Hi,

How can we ONLY get an email with the status confirmed??

regards,
Michiel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMzcyMC1ob3ctY2FuLXdlLW9ubHktZ2V0LWFuLWVtYWlsLXdpdGgtdGhlLXN0YXR1cy1jb25maXJtZWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

4 years 10 months ago [\#338194](#338194) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338194 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

I suppose that you're asking how to not send an email to the user when the order is created, before the payment is made.
Is that correct ?
In that case, you want to disable "order creation notification" email in the System&gt;Emails menu.

Merry Christmas

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338209](#338209) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338209 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi Nicolas,

Thanks for your answer, i think what we forgot to mention is that we don't want the admin get the order created notification, only the confirmed e-mails, this because when someone goes to ideal and does not do the payment he gets a created email.. but this isn't paid.. so that is confusing for our client..(admin)
How can we accomplish that??

Hope you can help..
Thanks

Mark
[ ![screenshot-sal-mon.nl-2021.12.27-10&#95;35&#95;42.png](/forum/attachment/54094) ](/forum/attachment/54094 "...7-10&#95;35&#95;42.png")

[ ![screenshot-sal-mon.nl-2021.12.27-10&#95;37&#95;05.png](/forum/attachment/54093) ](/forum/attachment/54093 "...7-10&#95;37&#95;05.png")

- [ ![screenshot-sal-mon.nl-2021.12.27-10&#95;37&#95;05.png](/forum/attachment/54093) ](/forum/attachment/54093 "...7-10&#95;37&#95;05.png") [ ](/forum/attachment/54093?download=1 "...7-10&#95;37&#95;05.png")
- [ ![screenshot-sal-mon.nl-2021.12.27-10&#95;35&#95;42.png](/forum/attachment/54094) ](/forum/attachment/54094 "...7-10&#95;35&#95;42.png") [ ](/forum/attachment/54094?download=1 "...7-10&#95;35&#95;42.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMzcyMC1ob3ctY2FuLXdlLW9ubHktZ2V0LWFuLWVtYWlsLXdpdGgtdGhlLXN0YXR1cy1jb25maXJtZWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

4 years 10 months ago [\#338210](#338210) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338210 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

For the admin, you want to disable the "order administrator notification" email there.
The admin will still get the "payment notification" email when the order is confirmed by the payment gateway, after the payment.

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338220](#338220) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338220 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

That i understand, but when someone orders on a cash / door payment, the admin will not be notified of this order...
I want him to get the "order administrator notification" email, but then only when the order is confirmed so he won't get the created email.

In short we have two options in checkout:
1. payment via ideal -&gt; admin gets two emails by "order administrator notification" -&gt; created and confirmed -&gt; we only want it to sent when is confirmed.
2. payment on cash when deliverd or is picked up at the door.. -&gt; admin now only gets one email -&gt; confirmed.

Hope you can help ..
Thanks.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

4 years 10 months ago -  4 years 10 months ago [\#338222](#338222) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338222 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hello,

Did you try to remove the administrator email address, in your **Main HikaShop Configuration** =&gt; **Emails** part :
[ ![alt](https://i.ibb.co/6s75VW2/creat-email.png) ](https://i.ibb.co/6s75VW2/creat-email.png "alt")

Hope this can allow you to achieved your needs.
Regards

Last edit: 4 years 10 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338240](#338240) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338240 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi Philip,

I tried this. But then no email will be sent.. not even the cash on delivery ..
So it does not achieve what we need..

As i explained we have to checkout options.
1. cash on delivery, -&gt; this one goes well and sent only the confirm email.
2. iDeal-&gt; here we get three emails when payment is successfull 1 created and 1 confirmed, and also the notifcation of the transaction is succesfull.

When nothing is done through iDeal so no payment what so ever the created email is sent. But we don't want that to happen, this is confusing for the admin..

Regards,
Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMzcyMC1ob3ctY2FuLXdlLW9ubHktZ2V0LWFuLWVtYWlsLXdpdGgtdGhlLXN0YXR1cy1jb25maXJtZWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

4 years 10 months ago [\#338252](#338252) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338252 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

So what you can do is keep the "order admin notification" email activated.
And in its "preload" section (when you edit it via the System&gt;Emails menu), at the end, you can add such code: Code:

if($data-&gt;cart-&gt;order_payment_id == XX) { $mail-&gt;published = false; }

where XX is the id of the payment method for which you want to disable the email.
You can see the payment_id of the payment method in the URL of the browser's address bar when you're looking at the options of the payment method:
[ i.imgur.com/FQnapM2.png](https://i.imgur.com/FQnapM2.png)

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338266](#338266) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338266 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi Nicolas,

I will try this .. but will it keep sending the confirmed emails?

Regards,
Mark

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

4 years 10 months ago [\#338268](#338268) 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 *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338268 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hello Mark,

> but will it keep sending the confirmed emails?

About which confirmed emails are you talking about ? Emails sent to the admin or to customers ?

Emails sent to customers won't be affected by that modification.

Kind regards,
Mohamed.

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338286](#338286) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338286 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

I am talking about the emails sent to the admin.
They only need to get the confirmed email..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMzcyMC1ob3ctY2FuLXdlLW9ubHktZ2V0LWFuLWVtYWlsLXdpdGgtdGhlLXN0YXR1cy1jb25maXJtZWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

4 years 10 months ago [\#338289](#338289) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338289 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

The "payment notification" email which is sent when a payment plugin confirms an order automatically will be sent regardless of whether you do this modification or not as long as the "payment notification" email is published.

This modification is only for not sending the "order admin notification" to the admin when an order is created with a particular payment method.

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338307](#338307) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338307 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

We want the order **admin notifaction email** to be sent only when the status of the order is **confirmed**. NOT when it is created,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMzcyMC1ob3ctY2FuLXdlLW9ubHktZ2V0LWFuLWVtYWlsLXdpdGgtdGhlLXN0YXR1cy1jb25maXJtZWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

4 years 10 months ago [\#338314](#338314) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338314 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

This should almost never happen as the status is normally not "confirmed" when an order is created.
But still, it's possible, you just need to adapt a bit the code I gave previously: Code:

if($data-&gt;cart-&gt;order_status != 'confirmed') { $mail-&gt;published = false; }

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 10 months ago [\#338350](#338350) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338350 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi Nicolas,

I did some testing with your code.. but then we only get the payment notification email and not the admin notification email confirmed,
What we now get is for one order 3 emails:
1. one created (this one we do not want to be sent.
2. one confirmed
3. The payment notification
The first two are generated in the order administrator notification email..

Is there something i forget??

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

4 years 10 months ago [\#338489](#338489) 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 *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338489 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hello,

We'll need more information about how you used that code ? For example, in which function you used it and how.

Kind regards,
Mohamed

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

4 years 9 months ago [\#338557](#338557) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338557 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

hi,
I used that peace of code in the pre load of the administrator notifaction email..
But this didn't help then i only get the created emails when a payment is done by iDeal.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMzcyMC1ob3ctY2FuLXdlLW9ubHktZ2V0LWFuLWVtYWlsLXdpdGgtdGhlLXN0YXR1cy1jb25maXJtZWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

4 years 9 months ago [\#338561](#338561) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#338561 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

What that means is that the order status is not "confirmed" when the "order creation notification" email is sent.
If that is the case, then what you request

> We want the order admin notifaction email to be sent only when the status of the order is confirmed. NOT when it is created,

is not possible since the order admin notification email is sent beofre the status of the order is "confirmed".
In that case, what I recommended before is better:
[ www.hikashop.com/forum/2-general-talk-ab...onfirmed.html#338252](https://www.hikashop.com/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed.html#338252)
This will not send the email when the order is created with the iDeal payment method, and thus it will send it for the "cash on delivery" payment method.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwMzcyMC1ob3ctY2FuLXdlLW9ubHktZ2V0LWFuLWVtYWlsLXdpdGgtdGhlLXN0YXR1cy1jb25maXJtZWQ/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

1 year 2 months ago [\#368320](#368320) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How can we ONLY get an email with the status confirmed??](/forum/2-general-talk-about-hikashop/903720-how-can-we-only-get-an-email-with-the-status-confirmed#368320 "-- url of the page with the problem -- : sal-mon.nl  Hi,  How can we ONLY get an email with the status confirmed??  regards, Michiel")*

Hi,

For anyone reading this thread, note that since HikaShop 6.1.0, you can directly restrict order emails based on the payment method linked to the order with the interface available when editing an email in the System&gt;Emails menu. No need for custom code anymore.
[ www.hikashop.com/home/blog/525-hikashop-6-1-0.html#email](https://www.hikashop.com/home/blog/525-hikashop-6-1-0.html#email)

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

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