Skip to main content

SOLVED - "Cancel Order" email to admin

14 years 2 days ago - 14 years 18 hours ago #73500 by nik.mess
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. Reason: titl edit: solved

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

14 years 1 day ago #73689 by nicolas
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.

14 years 1 day ago #73712 by nik.mess
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.

14 years 1 day ago #73815 by nicolas
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.

14 years 18 hours ago #73859 by nik.mess
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.150 seconds
Powered by Kunena Forum