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

#   SOLVED - "Cancel Order" email to admin

##

- **[nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")**
- [![nik.mess's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9459.png)](/forum/user/9459-nik-mess "View nik.mess's Profile") Topic Author
- [ Offline](/forum/user/9459-nik-mess)

Less More

- Posts: 24
- Thank you received: 1
-
-

14 years 2 days ago -  14 years 18 hours ago [\#73500](#73500) by [nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")  *[SOLVED - "Cancel Order" email to admin](/forum/4-how-to/73500-solved-cancel-order-email-to-admin#73500 "I seem to be missing something. I'm trying to let a customer cancel his orders from his account page - the task seems to get through to the database (i.e. the order status is &quot;cancelled&quot; in the backend), but I don't get an email notification.  What I did so far: - Setting &quot;Cancellable orders statuses&quot; to &quot;created,confirmed&quot; - Activating the &quot;Order cancel&quot; - even tried to replace all email content with &quot;order cancelled&quot; only  My understanding is that an notification email should be sent to the admin address specified in the configuration as soon as the customer clicks on the &quot;Cancel order&quot; button.")* was created by *[nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")*

I seem to be missing something.
I'm trying to let a customer cancel his orders from his account page - the task seems to get through to the database (i.e. the order status is "cancelled" in the backend), but I don't get an email notification.

What I did so far:
- Setting *"Cancellable orders statuses"* to *"created,confirmed"*
- Activating the *"Order cancel"*
- even tried to replace all email content with "order cancelled" only

My understanding is that an notification email should be sent to the admin address specified in the configuration as soon as the customer clicks on the *"Cancel order"* button.

Last edit: 14 years 18 hours ago by [nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile"). Reason: titl edit: solved

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNTAwLXNvbHZlZC1jYW5jZWwtb3JkZXItZW1haWwtdG8tYWRtaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 1 day ago [\#73689](#73689) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: "Cancel Order" email to admin](/forum/4-how-to/73500-solved-cancel-order-email-to-admin#73689 "I seem to be missing something. I'm trying to let a customer cancel his orders from his account page - the task seems to get through to the database (i.e. the order status is &quot;cancelled&quot; in the backend), but I don't get an email notification.  What I did so far: - Setting &quot;Cancellable orders statuses&quot; to &quot;created,confirmed&quot; - Activating the &quot;Order cancel&quot; - even tried to replace all email content with &quot;order cancelled&quot; only  My understanding is that an notification email should be sent to the admin address specified in the configuration as soon as the customer clicks on the &quot;Cancel order&quot; button.")*

Hi,

I checked and it works but only for one of the type of buttons (CSS or normal) that you're using.

Add the line:
&lt;input type="hidden" name="email" value="1" /&gt;

after the line:
&lt;input type="hidden" name="task" value="cancel_order" /&gt;

in the file 'listing' of the view "order" of your frontend via the menu Display-&gt;Views and that will make it send the notification email.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNTAwLXNvbHZlZC1jYW5jZWwtb3JkZXItZW1haWwtdG8tYWRtaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")**
- [![nik.mess's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9459.png)](/forum/user/9459-nik-mess "View nik.mess's Profile") Topic Author
- [ Offline](/forum/user/9459-nik-mess)

Less More

- Posts: 24
- Thank you received: 1
-
-

14 years 1 day ago [\#73712](#73712) by [nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")  Replied by *[nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")* on topic *[Re: "Cancel Order" email to admin](/forum/4-how-to/73500-solved-cancel-order-email-to-admin#73712 "I seem to be missing something. I'm trying to let a customer cancel his orders from his account page - the task seems to get through to the database (i.e. the order status is &quot;cancelled&quot; in the backend), but I don't get an email notification.  What I did so far: - Setting &quot;Cancellable orders statuses&quot; to &quot;created,confirmed&quot; - Activating the &quot;Order cancel&quot; - even tried to replace all email content with &quot;order cancelled&quot; only  My understanding is that an notification email should be sent to the admin address specified in the configuration as soon as the customer clicks on the &quot;Cancel order&quot; button.")*

Great, got it working that way. Thank you very much!

However, I had to adjust the mail template to actually send the mail, HikaShop doesn't seem to be capable of doing so. (If it should do so, I probably didn't specify the right email address. Should it send to the Order creation notifications email address specified in the configuration?)
Also, there's a typo in the original template (*"sprint"* instead of *"sprintf"*) resulting in an error.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNTAwLXNvbHZlZC1jYW5jZWwtb3JkZXItZW1haWwtdG8tYWRtaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 1 day ago [\#73815](#73815) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: "Cancel Order" email to admin](/forum/4-how-to/73500-solved-cancel-order-email-to-admin#73815 "I seem to be missing something. I'm trying to let a customer cancel his orders from his account page - the task seems to get through to the database (i.e. the order status is &quot;cancelled&quot; in the backend), but I don't get an email notification.  What I did so far: - Setting &quot;Cancellable orders statuses&quot; to &quot;created,confirmed&quot; - Activating the &quot;Order cancel&quot; - even tried to replace all email content with &quot;order cancelled&quot; only  My understanding is that an notification email should be sent to the admin address specified in the configuration as soon as the customer clicks on the &quot;Cancel order&quot; button.")*

By default, it send them to the "from" email address configured in the configuration.

Thanks for the feedback on the sprintf. It's now fixed on our end for HikaShop 2.0

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNTAwLXNvbHZlZC1jYW5jZWwtb3JkZXItZW1haWwtdG8tYWRtaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")**
- [![nik.mess's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9459.png)](/forum/user/9459-nik-mess "View nik.mess's Profile") Topic Author
- [ Offline](/forum/user/9459-nik-mess)

Less More

- Posts: 24
- Thank you received: 1
-
-

14 years 18 hours ago [\#73859](#73859) by [nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")  Replied by *[nik.mess](/forum/user/9459-nik-mess "View nik.mess's Profile")* on topic *[Re: "Cancel Order" email to admin](/forum/4-how-to/73500-solved-cancel-order-email-to-admin#73859 "I seem to be missing something. I'm trying to let a customer cancel his orders from his account page - the task seems to get through to the database (i.e. the order status is &quot;cancelled&quot; in the backend), but I don't get an email notification.  What I did so far: - Setting &quot;Cancellable orders statuses&quot; to &quot;created,confirmed&quot; - Activating the &quot;Order cancel&quot; - even tried to replace all email content with &quot;order cancelled&quot; only  My understanding is that an notification email should be sent to the admin address specified in the configuration as soon as the customer clicks on the &quot;Cancel order&quot; button.")*

Oh, I see. Haha, in that case I just spammed my boss with 20 order cancel mails ![;)](/media/kunena/emoticons/24.png ";)")

Thank you for your help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzczNTAwLXNvbHZlZC1jYW5jZWwtb3JkZXItZW1haWwtdG8tYWRtaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.060 seconds

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