Creative Teamspeak Posted December 6, 2011 Share Posted December 6, 2011 Hi, I want to send different invoice created emails depending wich product/service the client has. I read the wiki about conditional displays but there is only 1 small example ant that's it.. It would be handy a list what "vars" are available. This is the code that i'm currently using but it's not working.. {if $service_product_name eq "Teamspeak 3"} type 1 {else} type 2 {/if} Any help ? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 6, 2011 Share Posted December 6, 2011 Have you tried using {$debug} ? Not 100% sure that works in email templates, but its worth a shot. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted December 6, 2011 Share Posted December 6, 2011 it's {debug} without the $ 0 Quote Link to comment Share on other sites More sharing options...
Creative Teamspeak Posted December 6, 2011 Author Share Posted December 6, 2011 I've not been totally clear, the code does work but it executes the "else" It's weird because the product name is right.. 0 Quote Link to comment Share on other sites More sharing options...
Creative Teamspeak Posted December 8, 2011 Author Share Posted December 8, 2011 Any help.. ? 0 Quote Link to comment Share on other sites More sharing options...
altomarketing Posted December 8, 2011 Share Posted December 8, 2011 try to print the name of product testing emails, maybe"Teamspeak 3" and you recorded "Teamspeak 3 " we use {if $service_server_name eq "Kloxo"}Nameserver 1: {$service_ns1} Nameserver 1 IP {$service_ns1_ip} Nameserver 2 {$service_ns2} Nameserver 2 IP {$service_ns2_ip} {else} and it works like a charm 0 Quote Link to comment Share on other sites More sharing options...
Creative Teamspeak Posted December 9, 2011 Author Share Posted December 9, 2011 Hi, Thanks for your answer. The productname / {$service_product_name} is printed as "Voice Servers - Teamspeak 3" where "Voice Servers" is the group name. But even with the new productname it still executes the "else". The second thing i thought off, is i want to use this in the "Invoice created" email template and there is no {$service_product_name} variable available, would that be a problem ? 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.