I'd like to add a message to the configure domains screen to check if any AU domains have been added to the cart, and if so, advise the customer they need an Australian Business Number to buy the domain.
I believe I need to check the $domains array, but I can't find any mention of this array at https://developers.whmcs.com
What code would I need to add to my configure-domains.tpl file to check for an AU domain in the cart and display a message?
You can do it easily in the
$domainsloop in yourconfiguredomains.tplby exploding the domain name by.and check if the extension isau, then show custom message, like this:Instead of adding a static text here, you can add translated text in the
langfiles and print it here like: