Different mail messages per order status possible?

  • Posts: 99
  • Thank you received: 7
  • Hikashop Business
1 day 19 hours ago #369038

-- HikaShop version -- : 6.1
-- Joomla version -- : 5
-- PHP version -- : 8.4

Hi!

I can configure multiple order status options like "open", "new", "billed", "canceled", "shipped" and so on. Would it be possible to make individual mail templates for every single status? Currently I have only one mail template for all status mails. Yes, I can manually change the mail text, but this is very uncomfortable and prone to errors.

Another thing: If I change the order status, a popup opens up and here I can put some internal notes, activate "mail to customer" and send a mail. Is it possible to add a simple text field right after the "notes" text area? This field value should be stored internally in a variable. If I THEN click on "mail to customer", the value of the text field is automatically inserted into the mail message template -> on the placeholder of the variable.

Why do I want to do this?
We send our products with a logistics partner, who sends us a tracking code. It would be good to insert this code into the mail with the status "shipped". Currently this is only possible if I make a manual change of the mail message - every time! That said, I have to change the message text every time I send a status mail "shipped" - on every order. This is very uncomfortable.

So I habe two ideas to deal with:
a) Each order status has its own mail template (like mentioned above)
b) Additional text field (for the tracking code, stored in a variable, for using in mail message).

Maybe you can suggest another solution, or I did oversee something. I'm happy to hear from you. :-)

P.S. The popup that opens if I change an order status could be tweaked. I think the text area for notes is too big (maybe only half sized in height?). Two customers already oversaw the button below "mail to customer". :-)

Last edit: 1 day 19 hours ago by Rusty.

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

  • Posts: 84543
  • Thank you received: 13745
  • MODERATOR
1 day 13 hours ago #369043

Hi,

1. You can edit and customize the emails of HikaShop via the System>Emails menu. There, it's the "order status notification" email which is used to send emails when the order is changed. If you edit it, you'll see a "per status override" button at the top of each section of the email : HTML, text and preload. When you click on it, it will open a popup where you'll be able to select the status to customize the email specifically for that order status.

2. I would indeed recommend to create a custom field of the table "order" via the menu Display>Custom fields in order to store the tracking code along with the order. The custom field settings page already has settings to display or not the field in the emails and other places of HikaShop so that will avoid having to code anything.

3. Thanks for your feedback on the note field for the popup. We'll reduce its height in the next version of HikaShop.

The following user(s) said Thank You: Rusty

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

Time to create page: 0.054 seconds
Powered by Kunena Forum