Order Status Notification Email Subject Line

  • Posts: 64
  • Thank you received: 3
5 years 3 weeks ago #305315

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.3
-- PHP version -- : 7.2.16

Hi, is it possible to add the dame of the person that made the order to appear in the Order Status Notification Email Subject Line. Currently it is "ORDER_STATUS_NOTIFICATION_SUBJECT". I would like it to be something like "{TXT:ORDER_NAME} - ORDER_STATUS_NOTIFICATION_SUBJECT".

Is this possible and if so what would I use?


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
5 years 3 weeks ago #305319

Hi,

Yes, you want to use the tag {customer.name} and that will use the name from the Joomla user account.
If you want the name entered in the billing address (since customer.name won't work for guest checkout as there is no user account), you can use {billing_address.address_firstname} {billing_address.address_lastname}

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

  • Posts: 64
  • Thank you received: 3
5 years 3 weeks ago #305364

Thank you for that it worked for the name but when I add this line

{billing_address.address_firstname} {billing_address.address_lastname}: ORDER_CREATION_NOTIFICATION_SUBJECT

The email subject line comes up like the following...

Danny Poole: ORDER_CREATION_NOTIFICATION_SUBJECT

It is not converting the language, is there something I have to add to "ORDER_CREATION_NOTIFICATION_SUBJECT" to make it translate?


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
5 years 3 weeks ago #305375

Hi,

You should not add the tags directly in the subject of the email and you should leave the subject ORDER_CREATION_NOTIFICATION_SUBJECT. Instead, you want to do a translation override of that translation key ( www.hikashop.com/download/languages.html#modify ) and add the tags in the translation override. That way, it will work like you want.

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

  • Posts: 64
  • Thank you received: 3
5 years 3 weeks ago #305427

Perfect, thanks, loving the Hikashop logical mind.


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 64
  • Thank you received: 3
5 years 22 hours ago #305993

One more thing, now my client want me to add the details from a custom field, I tried the following but it didn't work.

{user.studentfirstname} {user.studentlastname}: Your order No. %s is now %s at %s


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
5 years 12 hours ago #305997

Hi,

Supposing that it is a custom field of the table user, you'll want to use the tag: {customer.studentfirstname}

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

Time to create page: 0.068 seconds
Powered by Kunena Forum