indstrl Posted August 18, 2013 Share Posted August 18, 2013 Hello everyone. I have a client of mine that i'm creating a whmcs theme for. However.. I've run into a problem. By their request they wanted their current products of gid=1 to be displayed on the home page. I tried to debug and see if the theme had some already existing smarty call code but could not find anything. Can someone give me some help? Thanks, Indstrl. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted August 19, 2013 Share Posted August 19, 2013 Someone correct me if i am wrong here, but i think unless your home page is https as well you cant integrade that into the home page dynamically. You can do it as static and just code the plan details into the html display and then you can have a "select this plan" button that is linked to the https address. But i think since the order part of the script is inside the https and your home page may not be (which is normal) you cant do this dynamically. I guess you could use some ajax to pull the value and then display it but that might not be what you want. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted August 19, 2013 Share Posted August 19, 2013 The product information isn't available in the normal template variables for the homepage.tpl. What you would need to do is create a ClientAreaPage hook to lookup this information in the database and return a template variable for use on homepage.tpl. http://docs.whmcs.com/Hooks:System#ClientAreaPage 0 Quote Link to comment Share on other sites More sharing options...
indstrl Posted August 19, 2013 Author Share Posted August 19, 2013 The product information isn't available in the normal template variables for the homepage.tpl. What you would need to do is create a ClientAreaPage hook to lookup this information in the database and return a template variable for use on homepage.tpl. http://docs.whmcs.com/Hooks:System#ClientAreaPage Thank-You, And Above reply. 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.