JohnnyD Posted December 5, 2010 Share Posted December 5, 2010 I have tried statements such as {if $groupname eq "Reseller Hosting" } <div style="background-color:#DDFFC6;border:1px dashed #66CC00;padding:15px;margin:0px;text-align:center;"> Reseller Message </div> {elseif ($groupname eq "Shared Hosting") } Shared Message {else} You do not have Shared <b>OR</b> Reseller hosting {/if} But it does not work, can somebody correct this to work in smarty with WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 6, 2010 Share Posted December 6, 2010 Why does this have extra "(" and ")" in it? {elseif ($groupname eq "Shared Hosting") } Should be: {if $groupname eq "Reseller Hosting" } <div style="background-color:#DDFFC6;border:1px dashed #66CC00;padding:15px;margin:0px;text-align:center;"> Reseller Message </div> {elseif $groupname eq "Shared Hosting" } Shared Message {else} You do not have Shared <b>OR</b> Reseller hosting {/if} 0 Quote Link to comment Share on other sites More sharing options...
JohnnyD Posted December 6, 2010 Author Share Posted December 6, 2010 Thanks I guess i was doing it wrong you may close this now. 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.