MikeP Posted June 9, 2010 Share Posted June 9, 2010 Hello, I'm trying to figure out how to display certain information if a certain package is purchased. There are four plans that this must look for. Any help will be appreciated! Thanks. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 10, 2010 WHMCS Support Manager Share Posted June 10, 2010 You can use something like: {if $service_product_name eq 'Product1'} **Your message here** {elseif $service_product_name eq 'Product2'} **Your message here** {/if} 0 Quote Link to comment Share on other sites More sharing options...
MikeP Posted June 10, 2010 Author Share Posted June 10, 2010 Great, I'll try that. Thanks very much! 0 Quote Link to comment Share on other sites More sharing options...
MikeP Posted June 10, 2010 Author Share Posted June 10, 2010 Will this work correctly? Including line breaks etc or will it create more line breaks as per the message? WHM Access ============================= http://{$service_dedicated_ip}:2086 Username: root Password: {$service_password}{$service_custom_fields.3} {if $service_product_name eq 'VH-I'} SolusVM Access ============================= http://ipaddress:5353 Username: {$service_username} Password: {$service_password} {elseif $service_product_name eq 'VH-II'} SolusVM Access ============================= http://ipaddress:5353 Username: {$service_username} Password: {$service_password} {elseif $service_product_name eq 'VH-III'} SolusVM Access ============================= http://ipaddress:5353 Username: {$service_username} Password: {$service_password} {elseif $service_product_name eq 'VH-IV'} SolusVM Access ============================= http://ipaddress:5353 Username: {$service_username} Password: {$service_password} {/if} Custom DNS Server Addresses ============================= The custom DNS addresses you should set for your domain to use are: Primary DNS: {$service_ns1} Secondary DNS: {$service_ns2} Thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 11, 2010 WHMCS Support Manager Share Posted June 11, 2010 That looks about right, it shouldn't create any unnecessary line breaks. 0 Quote Link to comment Share on other sites More sharing options...
MikeP Posted June 26, 2010 Author Share Posted June 26, 2010 Hello, If I want to do this for a control panel option rather than package on order, what variable would I give? Like, clients have the choice of cPanel, DirectAdmin or Webmin. If they order cPanel, I want the welcome mail to show cPanel information, but if they order DirectAdmin, I want it to show DirectAdmin information and so on. Thanks for any help in advance! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 28, 2010 WHMCS Support Manager Share Posted June 28, 2010 Because they're using different control panels you'd need to create different products. So you can create an email template for cPanel products, then a separate template for DirecAdmin products etc. 0 Quote Link to comment Share on other sites More sharing options...
MikeP Posted January 10, 2011 Author Share Posted January 10, 2011 I saw that there is an option in the {if} tags for config options. If the "Control Panel" config option is set to cPanel/WHM, how would I set it to show cPanel/WHM information? {if $service_config_options eq 'cPanel/WHM'} ? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
craigedmonds Posted July 11, 2011 Share Posted July 11, 2011 nope. if tags works, but elseif DOES NOT work at all. 0 Quote Link to comment Share on other sites More sharing options...
MikeP Posted February 27, 2012 Author Share Posted February 27, 2012 I know this is an old thread but do addons have an if tag? 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.