Personalise Email Subject

  • Posts: 170
  • Thank you received: 26
  • Hikashop Business
2 weeks 2 days ago #373203

-- HikaShop version -- : 6.5.2 [2608261812]
-- Joomla version -- : 6.1.3
-- PHP version -- : 8.4.24

Some customers order emails going to junk due to their server settings

Lots of testing has finally resolved that having their name in the email subject resolves the issue

How to customize the subject line in the Language File to achieve that?

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

  • Posts: 86179
  • Thank you received: 14216
  • MODERATOR
2 weeks 2 days ago #373208

Hi,

No need to touch the language file, each email has its own subject field.

Go to System > Emails, open "Order creation notification" and edit the "Email subject" field at the top left. The three %s in it are replaced, in that order, by the order number, the order status and the address of your website, and on top of that you can insert data from the order between curly brackets. So for the customer's first name:

{billing_address.address_firstname}, your order No. %s is now %s at %s

which gives, on one of my test orders:
John, your order No. ZBUNDLE is now confirmed at https://www.example.com/

Other ones you can use there: {billing_address.address_lastname}, {billing_address.address_company}, {customer.name}, {customer.user_email}, {order_number}. Any field of the order or of its addresses works the same way, the part before the dot is the table and the part after it the column.

Do the same on the "Order status notification" email, and on any other order email you send.

If you would rather change it for the whole site instead of email by email, the string is ORDER_CREATION_NOTIFICATION_SUBJECT in the HikaShop translation, and you can override it via the Joomla language overrides manager.

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

Time to create page: 0.049 seconds
Powered by Kunena Forum