Juanzo Posted February 28, 2014 Share Posted February 28, 2014 I'd like to know if it's possible to use the variable {$service_dedicated_ip} conditionally on a product email template. The idea is to send the shared IP or replace it with the dedicated IP, in case the account has one. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 28, 2014 Share Posted February 28, 2014 if it's in the available merge fields, then yes you should be able to use it conditionally. 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted March 4, 2014 Author Share Posted March 4, 2014 But how are we able to print only if anything is completed? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 4, 2014 Share Posted March 4, 2014 you could check if {$service_dedicated_ip} exists and if so print it, else print something else... {if $service_dedicated_ip} {$service_dedicated_ip} {else} something else {/if} 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted March 4, 2014 Author Share Posted March 4, 2014 Kudos brian, that indeed did the trick. In case it's useful for anyone else, the code for the email template should be: {if $service_dedicated_ip}{$service_dedicated_ip}{else}{$service_server_ip}{/if} 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.