- Posts: 4
- Thank you received: 1
How to add ID or Invoice Number in the subject of the admin emails
6 years 2 months ago #322100
by dtk
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.3.19
-- Browser(s) name and version -- : Google Chrome and other
Hello!
I use HikaShop Business 4.3.0. I want to add an ID or Invoice Number to the admin email subject.
It's about that: ORDER_ADMIN_NOTIFICATION_SUBJECT="A new order has been created on your website"
Now I receive an email with the subject: "A new order has been created on your website"
I want it to be like this: "A new order has been created on your website with ID XXX or Invoice Number XXX"
I ask for your help. Thank you in advance!
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.3.19
-- Browser(s) name and version -- : Google Chrome and other
Hello!
I use HikaShop Business 4.3.0. I want to add an ID or Invoice Number to the admin email subject.
It's about that: ORDER_ADMIN_NOTIFICATION_SUBJECT="A new order has been created on your website"
Now I receive an email with the subject: "A new order has been created on your website"
I want it to be like this: "A new order has been created on your website with ID XXX or Invoice Number XXX"
I ask for your help. Thank you in advance!
Please Log in or Create an account to join the conversation.
6 years 2 months ago #322107
by dtk
Replied by dtk on topic How to add ID or Invoice Number in the subject of the admin emails
After a lot of searching, I found a solution. Sorry for the topic. I tried to delete it, but I can't find an option.
This is the topic that helped me: www.hikashop.com/forum/orders-management...or-notification.html
This is the topic that helped me: www.hikashop.com/forum/orders-management...or-notification.html
The following user(s) said Thank You: Philip
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323425
by ltempest
Replied by ltempest on topic How to add ID or Invoice Number in the subject of the admin emails
Hello, Thanks for the link, I've got the Business version of HikaShop, and looking at the Admin notification email in the subject line I now have:
ORDER_ADMIN_NOTIFICATION_SUBJECT {VAR:order.order_id}
Will this now add the Order ID to the email subject?
I'd also like the email to actually appear as if the From address is that of the customer (makes it easier when replying!). However I tried to enter {VAR:customer.user_email} into the From Address but this then fails to deliver.
Thanks
ORDER_ADMIN_NOTIFICATION_SUBJECT {VAR:order.order_id}
Will this now add the Order ID to the email subject?
I'd also like the email to actually appear as if the From address is that of the customer (makes it easier when replying!). However I tried to enter {VAR:customer.user_email} into the From Address but this then fails to deliver.
Thanks
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323431
by nicolas
Replied by nicolas on topic How to add ID or Invoice Number in the subject of the admin emails
Hi,
If you have "ORDER_ADMIN_NOTIFICATION_SUBJECT {VAR:order.order_id}" in the subject, then the subject will be for example "ORDER_ADMIN_NOTIFICATION_SUBJECT 18".
That's not what you want.
You want to either use a translation override to change the subject of the email ( www.hikashop.com/download/languages.html#modify ) and add the tag in the translation override.
Or change the subject to have the text directly in the subject. So instead of "ORDER_ADMIN_NOTIFICATION_SUBJECT {VAR:order.order_id}" in the subject, you would have "New order {VAR:order.order_id} on your website" for example.
Regarding the email of the customer, it is automatically added in the "reply-to" field of the email.
So on your email client, if you click on the "reply" button of the email, you should see the email of the customer in the "to" field of your email writing form without the need to change anything in HikaShop.
Changing the from of the email would require coding modifications in a core file of HikaShop, and you have a high chance that the email won't be delivered as your hosting email server will refuse sending an email for another email provider, or the receiving email server will refuse it as the from email will be from a domain not managed by the email server of your hosting (to avoid spam).
If you have "ORDER_ADMIN_NOTIFICATION_SUBJECT {VAR:order.order_id}" in the subject, then the subject will be for example "ORDER_ADMIN_NOTIFICATION_SUBJECT 18".
That's not what you want.
You want to either use a translation override to change the subject of the email ( www.hikashop.com/download/languages.html#modify ) and add the tag in the translation override.
Or change the subject to have the text directly in the subject. So instead of "ORDER_ADMIN_NOTIFICATION_SUBJECT {VAR:order.order_id}" in the subject, you would have "New order {VAR:order.order_id} on your website" for example.
Regarding the email of the customer, it is automatically added in the "reply-to" field of the email.
So on your email client, if you click on the "reply" button of the email, you should see the email of the customer in the "to" field of your email writing form without the need to change anything in HikaShop.
Changing the from of the email would require coding modifications in a core file of HikaShop, and you have a high chance that the email won't be delivered as your hosting email server will refuse sending an email for another email provider, or the receiving email server will refuse it as the from email will be from a domain not managed by the email server of your hosting (to avoid spam).
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323532
by ltempest
Replied by ltempest on topic How to add ID or Invoice Number in the subject of the admin emails
Nicolas,
Thanks I followed your advice and changed the subject to this:
A new order - {VAR:order.order_id} has been created on your website
However, this still does not replace the code with the order number it comes through exactly as above!
Please see the attached showing the admin backend.
Thanks
Thanks I followed your advice and changed the subject to this:
A new order - {VAR:order.order_id} has been created on your website
However, this still does not replace the code with the order number it comes through exactly as above!
Please see the attached showing the admin backend.
Thanks
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323545
by nicolas
Replied by nicolas on topic How to add ID or Invoice Number in the subject of the admin emails
Hi,
I checked on my end and I make a mistake, the tag should be {order.order_id} and not {VAR:order.order_id} in the subject.
Change that and it should work.
I checked on my end and I make a mistake, the tag should be {order.order_id} and not {VAR:order.order_id} in the subject.
Change that and it should work.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323564
by ltempest
Replied by ltempest on topic How to add ID or Invoice Number in the subject of the admin emails
Nicolas,
Still no luck
I now have this in my email subject of the main information:
A new order - {order.order_id} has been created on your website
But now nothing gets displayed when the email is sent:
Forwarded Message
Subject: A new order - has been created on your website
Could I send you login details to check? how can I do this securely?
Still no luck
I now have this in my email subject of the main information:
A new order - {order.order_id} has been created on your website
But now nothing gets displayed when the email is sent:
Forwarded Message
Subject: A new order - has been created on your website
Could I send you login details to check? how can I do this securely?
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323570
by nicolas
Replied by nicolas on topic How to add ID or Invoice Number in the subject of the admin emails
Hi,
I think I know what's the problem. Try instead with the {order_id} tag.
As the order table is the main one it doesn't need the order prefix on the email subject.
I think I know what's the problem. Try instead with the {order_id} tag.
As the order table is the main one it doesn't need the order prefix on the email subject.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323614
by ltempest
Replied by ltempest on topic How to add ID or Invoice Number in the subject of the admin emails
Nicolas,
That worked! THANKS!
That worked! THANKS!
Please Log in or Create an account to join the conversation.
Time to create page: 0.233 seconds