Jump to content
1web

email template

Recommended Posts

Hi Guys

In configurable options I have created an option called server which has a selection of server names im trying to get that to show in a custom product email im currently using this 

{$service_config_options_server}

Above is not working its not showing the output in the emails when sent im wanting it to show

https://{$service_config_options_server}:2087 ex https:// my.server.io:2087 in the email it just shows https:// :2087

Thanks in advance

Share this post


Link to post
Share on other sites
17 hours ago, 1web said:

In configurable options I have created an option called server which has a selection of server names im trying to get that to show in a custom product email im currently using this 

{$service_config_options_server}

Above is not working its not showing the output in the emails when sent im wanting it to show 

I don't think that you can reference configurable options in that way in the email templates - only custom fields... you can use {$service_config_options}, but I think that just outputs all the configurable options in name:value rows... if there's only one configurable option being used in the is product, then you may be able to take it apart using Smarty replaces for your purpose... though difficult to say for sure without knowing the content of the above variable.

Share this post


Link to post
Share on other sites

Might be able to do so with EmailPreSend hook.  Would need to check $vars['messagename'] to see if it is the template you want to use.  Then just get your service via api or internal classes and return the config options in the return array.  If you need an example, let me know. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated