- Posts: 10
- Thank you received: 1
payment notification : payment Cancelled
3 years 7 months ago #349311
by netnog
payment notification : payment Cancelled was created by netnog
-- HikaShop version -- : 4.7.1
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox or Chrome
Hello,
I have a question about sending payment notifications.
An email is sent to the site administrator when a payment in the webshop has been successfully completed. (payment notification : payment Confirmed). That's totally fine.
But an email is also sent when a payment is canceled (payment notification: payment Cancelled).
The administrator does not want to receive the message of a canceled payment because it causes confusion. I can't find if it can be disabled, any of you have a tip how to solve this?
Thanks in advance!
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox or Chrome
Hello,
I have a question about sending payment notifications.
An email is sent to the site administrator when a payment in the webshop has been successfully completed. (payment notification : payment Confirmed). That's totally fine.
But an email is also sent when a payment is canceled (payment notification: payment Cancelled).
The administrator does not want to receive the message of a canceled payment because it causes confusion. I can't find if it can be disabled, any of you have a tip how to solve this?
Thanks in advance!
Please Log in or Create an account to join the conversation.
3 years 7 months ago - 3 years 7 months ago #349315
by Philip
Replied by Philip on topic payment notification : payment Cancelled
Last edit: 3 years 7 months ago by Philip.
Please Log in or Create an account to join the conversation.
3 years 7 months ago - 3 years 7 months ago #349325
by netnog
Replied by netnog on topic payment notification : payment Cancelled
Last edit: 3 years 7 months ago by netnog.
Please Log in or Create an account to join the conversation.
3 years 7 months ago #349326
by nicolas
Replied by nicolas on topic payment notification : payment Cancelled
Hi,
The same email "payment notification" is sent in both cases.
You would have to edit the "payment notification" email in the menu System>Emails and add such code in the HTML area:
And that should disable the email only when the order is being cancelled.
The same email "payment notification" is sent in both cases.
You would have to edit the "payment notification" email in the menu System>Emails and add such code in the HTML area:
Code:
<?php if($data->mail_status=='cancelled'){ $mail->published = false; } ?>
Please Log in or Create an account to join the conversation.
3 years 7 months ago #349402
by netnog
Replied by netnog on topic payment notification : payment Cancelled
Please Log in or Create an account to join the conversation.
3 years 7 months ago #349403
by nicolas
Replied by nicolas on topic payment notification : payment Cancelled
Hi,
Ah right, $data->mail_status is the translated status text.
Try changing this to $data->order_status so that it uses the status namekey and it should work better.
Ah right, $data->mail_status is the translated status text.
Try changing this to $data->order_status so that it uses the status namekey and it should work better.
Please Log in or Create an account to join the conversation.
Time to create page: 0.224 seconds