1web Posted March 2, 2019 Share Posted March 2, 2019 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 3, 2019 Share Posted March 3, 2019 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. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted March 4, 2019 Share Posted March 4, 2019 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.