NVious Posted January 5, 2017 Share Posted January 5, 2017 http://nviousdesigns.com/hosting/contact.php To get my Authorize.net Payment Gateway approved by their underwriting, I need to add the company address and phone to the Contact page. When I look at the.php file it's a coded mess that is generated. So, how do you edit this page to allow for additional data above the form that is generated? Also, how can I add a link to our Term & Services in the template? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 5, 2017 Share Posted January 5, 2017 All customization is done in the templates. /templates/six/contact.tpl 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted January 7, 2017 Share Posted January 7, 2017 Bear is correct, template customization should be done via templates As far as a link to the terms nd services, you can do this via hooks so you don't have to edit that template constantly. Something like this Add this as a .php file in whmcs/includes/hooks. Change the url and menu name as needed <?php #adding Menu Item to primaryNavbar use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $primaryNavbar->addChild('Menu Name') ->setUri('https://www.example.com/') ->setOrder(70); }); 0 Quote Link to comment Share on other sites More sharing options...
AffordableDomainsCanada Posted January 8, 2017 Share Posted January 8, 2017 Also, how can I add a link to our Term & Services in the template? Best option would be to add this in the footer of your template. /template/your-template/footer.tpl 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted January 9, 2017 Share Posted January 9, 2017 Utilizing template edits is not recommended, which is why I added the post re: hooks. For the link to t&s, that's the best approach. You can have that in the 'support' dropdown, or the top menu, and you don't have to change it every time you update your WHMCS install. 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.