Jump to content

Conditional Displays in email template


Recommended Posts

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 ?

Link to comment
Share on other sites

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 ?

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