Jump to content

Trying to Figure out Email Template Variables


ProDesigning

Recommended Posts

Hello to all,

 

And I hope everyone had / is having a Happy New Year!

 

I have been dinking around with email templates trying to make them nicer so on all Dedicated Servers I have a custom field:

 

Control Panel

 

It's a Dropdown and has the options:

 

None,cPanel,DirectAdmin,Plesk

 

This custom Field is the third option (Display Order #2) and checked I have tried checking admin only or checking no options on it.

 

Well when I do my new Dedicated Server email it doesn't work, it shoots to a blank page telling me something isnt right with these variables. This is what I put in there to get it to not work:

 

{if $service_custom_fields.3 eq "cPanel"}

Control Panel Type: cPanel / WHM

WHM Login IP: <a href="{$service_dedicated_ip}:2086">{$service_dedicated_ip}:2086</a>

WHM Username: root

Root Password: {$service_password}

{elseif $service_custom_fields.3 eq "DirectAdmin"}

Control Panel Type: DirectAdmin

Main Login IP: {<a href="{$service_dedicated_ip}:2222">{$service_dedicated_ip}:2222</a>

Main Username: admin

Root Password: {$service_password}

{elseif $service_custom_fields.3 eq "Plesk"}

Control Panel Type: Plesk

Main Login IP: {<a href="{$service_dedicated_ip}:8443">{$service_dedicated_ip}:8443</a>

Main Username: root

Root Password: {$service_password}

{elseif $service_custom_fields.3 eq "None"}

You Didn't Order a Control Panel

{/if}

 

And all fields are spelled correctly so this is where I am getting confused. I know this email template works correctly because if I take this out it sends just fine.

 

Any help would be appreciated.

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