DavidBee Posted December 13, 2012 Share Posted December 13, 2012 Hi, we are looking to display a two separate messages to our shared and reseller hosting clients. I have been trying many combinations if conditional stalemates but unable to get it to work. Any assistance would be appreciated.! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 13, 2012 Share Posted December 13, 2012 Hi, we are looking to display a two separate messages to our shared and reseller hosting clients. I have been trying many combinations if conditional stalemates but unable to get it to work. Any assistance would be appreciated.! You could: a) Use "Welcome Email" feature. It's the best option but idk what kind of message you are trying to send. Maybe a welcome email? Renewal notice? b) Use Smarty in email templates for conditional display {if $client_group_id eq "1"} Dear {$client_name}, You have a shared hosting! {$signature} {else} Dear {$client_name}, You have a reseller account! {$signature} {/if} 0 Quote Link to comment Share on other sites More sharing options...
DavidBee Posted December 13, 2012 Author Share Posted December 13, 2012 Hi, I am trying to display a message right across our current WHMCS install. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 13, 2012 Share Posted December 13, 2012 I don't understand where you want to display this message. Anyway let's say that you want to display it in viewcart.tpl. Open it, add {debug} and look for the array which contains che gid (group id) that you are looking for. Finally use the if statement with Smarty. {if $whatever.gid eq '10'}Group ID 10 has been selected{/if} 0 Quote Link to comment Share on other sites More sharing options...
DavidBee Posted December 14, 2012 Author Share Posted December 14, 2012 Sorry when I said "right across our whmcs" I was meaning on nearly all pages. I don't have an issues doing this. Its just showing a message depending on product. I will try the above and get back to you. Thanks for your help! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 14, 2012 Share Posted December 14, 2012 In this case create a php, let's say checker.php, where you make a query to database to test if the logged user has the specific product "Active" under his account. Then send the output with your message (you can also make it in multi-language) to checker.tpl and include it in header.tpl or footer.tpl or wherever you want to display it. Short and simple. 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.