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

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
3 weeks 5 days ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 74554
  • Thank you received: 11499
  • MODERATOR
3 weeks 4 days ago #338194

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>Emails menu.

Merry Christmas

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
3 weeks 2 days ago #338209

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 74554
  • Thank you received: 11499
  • MODERATOR
3 weeks 1 day ago #338210

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 or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
3 weeks 1 day ago #338220

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 -> admin gets two emails by "order administrator notification" -> created and confirmed -> we only want it to sent when is confirmed.
2. payment on cash when deliverd or is picked up at the door.. -> admin now only gets one email -> confirmed.

Hope you can help ..
Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 3444
  • Thank you received: 456
  • MODERATOR
3 weeks 17 hours ago #338222

Hello,

Did you try to remove the administrator email address, in your Main HikaShop Configuration => Emails part :



Hope this can allow you to achieved your needs.
Regards

Last edit: 3 weeks 1 day ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
3 weeks 4 hours ago #338240

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, -> this one goes well and sent only the confirm email.
2. iDeal-> 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 or Create an account to join the conversation.

  • Posts: 74554
  • Thank you received: 11499
  • MODERATOR
2 weeks 6 days ago #338252

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>Emails menu), at the end, you can add such code:

if($data->cart->order_payment_id == XX) {
$mail->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

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
2 weeks 6 days ago #338266

Hi Nicolas,

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

Regards,
Mark

Please Log in or Create an account to join the conversation.

  • Posts: 12943
  • Thank you received: 1774
  • MODERATOR
2 weeks 5 days ago #338268

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 or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
2 weeks 5 days ago #338286

Hi,

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

Please Log in or Create an account to join the conversation.

  • Posts: 74554
  • Thank you received: 11499
  • MODERATOR
2 weeks 4 days ago #338289

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 or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
2 weeks 2 days ago #338307

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 or Create an account to join the conversation.

  • Posts: 74554
  • Thank you received: 11499
  • MODERATOR
2 weeks 1 day ago #338314

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:

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

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
2 weeks 2 hours ago #338350

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 or Create an account to join the conversation.

  • Posts: 12943
  • Thank you received: 1774
  • MODERATOR
1 week 11 hours ago #338489

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 or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 5
  • Hikashop Business
6 days 2 hours ago #338557

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 or Create an account to join the conversation.

  • Posts: 74554
  • Thank you received: 11499
  • MODERATOR
5 days 20 hours ago #338561

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
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 or Create an account to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum