Hi, i have problem with premium domains, i don't want to sell them and i cant disable to show them when a client execute a domain name searching. For example if a client will search for ad.blue, whmcs will return that the domain it's available for registration and will cost 3$ but in fact this is a premium domain and it cost about 500$, what i want is when a client search for domain, if it's premium the result need to be unavailable.
I have found something on whmcs documentation but i am not sure how to implement.....
<?php
//Stop the Domain Purchase for this Premium Domain
add_hook('PremiumPriceOverride', 1, function($vars) {
return ['noSale' => true,];
});
//Force the Client to Contact Support to Purchase Domain
add_hook('PremiumPriceOverride', 1, function($vars) {
return ['contactUs' => true,];
});
//Override the Register and Renew Pricing & Skip Markup Application
add_hook('PremiumPriceOverride', 1, function($vars) {
return [
'register' => 150.00,
'renew' => 200.00,
'skipMarkup' => true,
];
});
Thanks.