Using Language Resources in Message Templates

Posted: July 17, 2019 at 2:38 AM Quote #242578
Hi,
Is it possible to access a pre-defined string value in Message Templates?
Exp:   <h1>%resources:welcome.newyear%</h1>  ==>  <h1>Happy new year</h1>   for example in Email Invoice or whatever

Regrds
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 17, 2019 at 3:30 AM Quote #242581
You can only use the defined tokens
If you want to create new tokens edit nop42\Libraries\Nop.Services\Messages\MessageTokenProvider.cs
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.SelectSystems.com.au
Select Systems International is a computer systems technology solution developer and integration service provider.
Posted: July 17, 2019 at 3:52 AM Quote #242584
Why do you want to do that? What's the specific problem that you want to solve? :)


This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Lam Woon Cherk
https://www.pronopcommerce.com

Looking to double your store's sale? Check out this plugin: http://bit.ly/2YVP8GT
(And no, it's not about putting more marketing money to get more traffics)

Sign up to my mailing list for tons of tips on nopCommerce: http://bit.ly/2fg5fMy
Posted: July 17, 2019 at 10:49 AM Quote #242611
wooncherk wrote:
Why do you want to do that? What's the specific problem that you want to solve? :)


I have to use specific texts in invoice which should printed in invoice language
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 18, 2019 at 12:32 AM Quote #242630
Yidna wrote:
You can only use the defined tokens
If you want to create new tokens edit nop42\Libraries\Nop.Services\Messages\MessageTokenProvider.cs


Worked like a charm 👏👌
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more