SoccerGuy3 Posted March 13, 2020 Share Posted March 13, 2020 Looking for a push in the right direction or someone to tell me that I am on the wrong track... I would like to have the domains table on the admin client summary screen display the recurring amount charged in a new column. It is the only section on that page (dealing with goods/services) that doesn't have an amount column. Having it would be very helpful as we monitor accounts where hosting comes and goes, but sometimes the domain stays registered through us. We charge a different amount depending on whether you host with us or not. My thought would be to use a hook to add this column to display the recurring amount. Can anyone perhaps give me some code to get me going? I am pretty handy with PHP, so can pick it up if I can figure out where to start! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 14, 2020 Share Posted March 14, 2020 10 hours ago, SoccerGuy3 said: My thought would be to use a hook to add this column to display the recurring amount. the admin client summary page is one of the few pages in the admin area that used an editable Smarty template, so you have multiple options open to you if you want to change its content. you could edit the clientsummary.tpl template, add your Amount column to the table, and then its just a case of modifying the $domainsummary array using an adminareapage hook - e.g looping through the array and querying the database (via capsule or models), getting the recurring amount and formatting it to the client's currency... that will give you a $domain.amount element to add to your new column output. if you wanted to do it all by hook, then you're likely looking at adding the column and content via jQuery. 0 Quote Link to comment Share on other sites More sharing options...
SoccerGuy3 Posted March 14, 2020 Author Share Posted March 14, 2020 (edited) The hook method is not a requirement, just my first thoughts after doing some research. I am familiar with editable template - I have done some editing already to make it easier to read (see attached). So adding the column to the layout/template is not an issue, it was just getting that $domain.amount part of the array. Thanks for the pointer on how to add it to the array, I will start researching that part. Edited March 14, 2020 by WHMCS ChrisD Removed duplicated screenshot with PII 0 Quote Link to comment Share on other sites More sharing options...
SoccerGuy3 Posted March 14, 2020 Author Share Posted March 14, 2020 (edited) Edited March 14, 2020 by WHMCS ChrisD Removed text at OP request 0 Quote Link to comment Share on other sites More sharing options...
SoccerGuy3 Posted March 14, 2020 Author Share Posted March 14, 2020 Is there no way to edit a post? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 14, 2020 Share Posted March 14, 2020 18 minutes ago, SoccerGuy3 said: Is there no way to edit a post? New users are unable to edit posts, you can request an edit by reporting a post. 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.