Hello, I am trying to modify the client sidebar using the following code:
<?php
use WHMCS\View\Menu\Item as MenuItem;
add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar)
{
$primarySidebar->getChild("My Account")
->getChild("Billing Information")
->setLabel("Custom Text Here");
});
But when I reload client area I get this error:
Error: Call to a member function getChild() on null in .....
Hello, i am new using WHMCS and I need to change the format of the prices and dates in the email templates.
In my country we use a point as a thousands separator and we do not use decimals. The default formatter creates a lot of confusion among my clients. The same is for date format, as we use DD/MM/YYYY as format not MM/DD/YYYY.
How can I edit this information in all email templates?