AmitTQ Posted May 11, 2019 Share Posted May 11, 2019 Hi im looking for a way to create a table on the clientareahome.tpl to show a brief of user products and services such as service name, expire date, etc. I am using below code in my table: <div class="tab-pane fade in active" id="products-tab" role="tabpanel" aria-labelledby="products-tab-btn"> <div class="table-responsive"> {if in_array('products',$contactpermissions)} <table class="table table-hover"> <thead> <tr> <th>{$LANG.orderproduct}</th> </tr> </thead> <tbody> {foreach $services item=service} <tr> <td>{$service.name}</td> </tr> {foreachelse} <tr> <td colspan="7">You have not any active service</td> </tr> {/foreach} </tbody> </table> {/if} </div> <div class="tab-btn"> <br> </div> </div> but it is not giving me the details I found that I would need to create a hook but I dont know how because im noob in programming. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 21, 2019 Share Posted May 21, 2019 On 11/05/2019 at 16:48, AmitTQ said: im looking for a way to create a table on the clientareahome.tpl to show a brief of user products and services such as service name, expire date, etc. do you mean a table, or a homepage panel ? each would require a different type of hook... there is already a panel on the homepage (in Six) that shows the clients active services - so you're looking to modify that, or add a table elsewhere on that page?? 0 Quote Link to comment Share on other sites More sharing options...
AmitTQ Posted May 21, 2019 Author Share Posted May 21, 2019 I want to add a table elsewhere on the home page and show the product/service details in that table 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.