Jump to content

Invoice email template conditional


Patty

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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