Jump to content

{$service_product_name} if script in welcome mail syntax error


rndinit0

Recommended Posts

Template Error [Line 19]: syntax error: unidentified token ':'

 

{if $service_product_name eq "10 User - TeamSpeak Server"}
Web Control Panel: http://teamSpeakcp.com/tcp
{else}
Web Control Panel: http://ventCP.com/tcp
{/if}

 

Im trying to get the welcome email to display the Web Control Panel Link for TeamSpeak or Ventrilo.

 

So if the Product name is Teamspeak, then it should display the TeamSpeak URL else it should display the Ventrilo Url.

 

This fails in a syntax error.

 

I've tried the following as well same problem:

{if $service_product_name eq "10 User - TeamSpeak Server"}
print("Web Control Panel\: http\://teamSpeakcp.com/tcp")
{else}
print("Web Control Panel\: http\://ventCp.com/tcp")
{/if}

 

Your help would be appreciated, if there is a better way to do this, please let me know.

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