SOLVED - "Cancel Order" email to admin

  • Posts: 24
  • Thank you received: 1
12 years 2 weeks ago #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 "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: 12 years 2 weeks ago by nik.mess. Reason: titl edit: solved

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 weeks ago #73689

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:
<input type="hidden" name="email" value="1" />

after the line:
<input type="hidden" name="task" value="cancel_order" />

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

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

  • Posts: 24
  • Thank you received: 1
12 years 2 weeks ago #73712

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 2 weeks ago #73815

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

  • Posts: 24
  • Thank you received: 1
12 years 2 weeks ago #73859

Oh, I see. Haha, in that case I just spammed my boss with 20 order cancel mails ;)

Thank you for your help!

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

Time to create page: 0.054 seconds
Powered by Kunena Forum