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

#   payment notification : payment Cancelled

##

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

Less More

- Posts: 10
- Thank you received: 1
-
-

3 years 9 months ago [\#349311](#349311) by [netnog](/forum/user/58678-netnog "View netnog's Profile")  *[payment notification : payment Cancelled](/forum/35-orders-management/905909-payment-notification-payment-cancelled#349311 "-- 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!")* was created by *[netnog](/forum/user/58678-netnog "View netnog's Profile")*

-- 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!

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

3 years 9 months ago -  3 years 9 months ago [\#349315](#349315) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[payment notification : payment Cancelled](/forum/35-orders-management/905909-payment-notification-payment-cancelled#349315 "-- 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!")*

Hello,

Then you can "switch off" the relative email, see my screenshot :
[ ![alt](https://i.ibb.co/ckRxNzw/screenshot.png) ](https://i.ibb.co/ckRxNzw/screenshot.png "alt")

Hope this will fit your needs
Regards

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

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

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

Less More

- Posts: 10
- Thank you received: 1
-
-

3 years 9 months ago -  3 years 9 months ago [\#349325](#349325) by [netnog](/forum/user/58678-netnog "View netnog's Profile")  Replied by *[netnog](/forum/user/58678-netnog "View netnog's Profile")* on topic *[payment notification : payment Cancelled](/forum/35-orders-management/905909-payment-notification-payment-cancelled#349325 "-- 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!")*

Thank you for your response.
This option was and is disabled (See image - number 10), but the emails are still being sent.
What to do?

[ ![email-annuleerbestelling.jpg](/forum/attachment/56520) ](/forum/attachment/56520 "...bestelling.jpg")

- [ ![email-annuleerbestelling.jpg](/forum/attachment/56520) ](/forum/attachment/56520 "...bestelling.jpg") [ ](/forum/attachment/56520?download=1 "...bestelling.jpg")

Last edit: 3 years 9 months ago by [netnog](/forum/user/58678-netnog "View netnog's Profile").

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

3 years 8 months ago [\#349326](#349326) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[payment notification : payment Cancelled](/forum/35-orders-management/905909-payment-notification-payment-cancelled#349326 "-- 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!")*

Hi,

The same email "payment notification" is sent in both cases.
You would have to edit the "payment notification" email in the menu System&gt;Emails and add such code in the HTML area: Code:

&lt;?php if($data-&gt;mail_status=='cancelled'){ $mail-&gt;published = false; } ?&gt;

And that should disable the email only when the order is being cancelled.

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

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

Less More

- Posts: 10
- Thank you received: 1
-
-

3 years 8 months ago [\#349402](#349402) by [netnog](/forum/user/58678-netnog "View netnog's Profile")  Replied by *[netnog](/forum/user/58678-netnog "View netnog's Profile")* on topic *[payment notification : payment Cancelled](/forum/35-orders-management/905909-payment-notification-payment-cancelled#349402 "-- 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!")*

Thanks Nicolas for your reply and code!
I've placed your line of code at the beginning of the HTML area. But not yet the desired result. Canceled payments will continue to be sent.
Have I placed the code correctly?

[ ![email-annuleerbestelling-php.jpg](/forum/attachment/56537) ](/forum/attachment/56537 "...elling-php.jpg")

- [ ![email-annuleerbestelling-php.jpg](/forum/attachment/56537) ](/forum/attachment/56537 "...elling-php.jpg") [ ](/forum/attachment/56537?download=1 "...elling-php.jpg")

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

3 years 8 months ago [\#349403](#349403) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[payment notification : payment Cancelled](/forum/35-orders-management/905909-payment-notification-payment-cancelled#349403 "-- 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!")*

Hi,

Ah right, $data-&gt;mail_status is the translated status text.
Try changing this to $data-&gt;order_status so that it uses the status namekey and it should work better.

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

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