Patty Posted February 12, 2010 Share Posted February 12, 2010 I'm trying to add a conditional to my invoice email template so it will show a link if the gateway payment is a given one, otherwise it will show nothing. This is what I'm doing: {if $invoice_payment_method eq banktransfer} Show link here {else} Show nothing {/if} This is what I'm getting when sending the email: Parse error: syntax error, unexpected '<' in /home/user/public_html/whmcs/includes/functions.php(0) : eval()'d code on line 1 Fatal error: Smarty error: [in emailtpl:emailmessage line 44]: syntax error: unidentified token '=' (Smarty_Compiler.class.php, line 1410) in /home/user/public_html/whmcs/includes/smarty/Smarty.class.php on line 1093 I also tried {if $invoice_payment_method eq "Bank Name"} Show link here {else} Show nothing {/if} but no luck either. What am I doing wrong? TIA for any help. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 12, 2010 Share Posted February 12, 2010 (edited) This works for me: {if $invoice_payment_method eq "Bank Transfer"} show link {/if} Edited February 12, 2010 by m00 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted February 12, 2010 Author Share Posted February 12, 2010 Thank you! That worked!!! 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.