E-mail template

  • Posts: 25
  • Thank you received: 2
  • Hikaserial Subscription Hikashop Business
3 days 6 hours ago #369679

-- url of the page with the problem -- : www.scramble.nl
-- HikaShop version -- : 6.1.1
-- HikaSerial version -- : 6.0.0
-- Joomla version -- : 5.4.1
-- PHP version -- : 8.2
-- Browser(s) name and version -- : Edge 143.0.3650.66

I want to alter the content of the subscription expiration notice. This message is generated in the e-mail template 'Subscription expiration notice' with the code {TXT:SUBSCRIPTION_EXPIRATION_CONTENT}. I tried to alter this content with creating a language override with the constant SUBSCRIPTION_EXPIRATION_CONTENT. But this seems to alter nothing. So the simple question is, how can I change the content of the {TXT:SUBSCRIPTION_EXPIRATION_CONTENT} field in the e-mail template?

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

  • Posts: 26297
  • Thank you received: 4048
  • MODERATOR
2 days 17 hours ago #369680

Hello,

TXT tags in HikaShop are not dynamically processed ; they are defined in the "preload" part of the email.
In the preload you'll see that it's using the translation "SUBSCRIPTION_EXPIRATION_NOTICE_CONTENT" which is a translation with 2 parameters.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 25
  • Thank you received: 2
  • Hikaserial Subscription Hikashop Business
2 days 8 hours ago #369694

So I did it right but used the incorrect syntax? Changed it now to SUBSCRIPTION_EXPIRATION_NOTICE_CONTENT.

Greets,

Attachments:

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

  • Posts: 26297
  • Thank you received: 4048
  • MODERATOR
2 days 2 hours ago #369695

Hello,

Yes, that was the right move but the translation is made in the "preload" part, not in the email.
Because translation can have parameters, these can't be within the HTML email template.
So, if you need to change another translation in an email, please look at the preload for more detail :)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.059 seconds
Powered by Kunena Forum