PDA

View Full Version : WHMCS smarty - how to do IF language show, else



Fli
09-21-2013, 01:16 PM
Hi, if you want to create condition in WHMCS tempaltes, they are using smarty system with { and }

For example if you want to create condition for language:

{if $language == english}
english content
{else}
othercontent
{/if}

or if you want to add more conditions

{if $language == english}
english content
{else if $language == czech}
czech content
{else}
otherlanguage content
{/if}

Please note it MUST BE LOWERCASE

AlanaSidney
05-31-2021, 12:57 PM
The thread is showing the WHMCS smarty by how to do the IF language show and anything else. If you want to create condition in WHMCS templates by best essay writing service (https://www.bestessayservicereviews.com/) they are using the smarty system if you want to create the condition for language.