web2008 Posted April 20, 2020 Share Posted April 20, 2020 I am going to show 2 texts in clientareahome.tpl - one for those who only have domains and one for those who have domain and hosting. Does anyone know how this can be done? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 21, 2020 Share Posted April 21, 2020 15 hours ago, web2008 said: Does anyone know how this can be done? the more important question to ask is where do you want this text on the page? there is a hook that can be used to display html/text at a predefined position on the client homepage... if you need the text elsewhere, then you're looking at using homepage panels, other hooks or editing the template. either way, then it's just a case of working out the conditions - I think from memory, you should be able to meet those conditional options without needing to query the database. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted April 21, 2020 Author Share Posted April 21, 2020 I thought something like this: if customer has hosting show HTML1 if customer has only domain show HTML2 if customar has specific addon show HTML3 and then maybe editing the template will be the easiest? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 22, 2020 Share Posted April 22, 2020 first two conditions you can do through existing array value (specifically $clientsstats) - so either as a hook or in the template... the third condition, where you're checking to see if they have a specific product addon, will surely require pulling the information from the database - by default, the client area home page wouldn't have access to such specific product details. 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.