nasos75 Posted September 11, 2018 Share Posted September 11, 2018 (edited) I develop a registrar module and I want to check if a domain is in a list and the prevent registration. I found out that ShoppingCartValidateDomain does the work, but it's not working correct in 'Standard Cart'. If a domain belongs to the list and the custom message should be displayed instead of this, the message 'Domain must begin with a letter or a number' is displayed. If the domain does not belong to the list, everything is working fine. In 'Moden' template, which is currently deprecated in 7.6.1, the action hook works as expected, showing the correct error message. add_hook('ShoppingCartValidateDomain', 1, function($vars) { // // if (in_array($vars['sld'].$vars['tld'],$list) { return 'my custom error message'; } }); Any ideas? Edited September 11, 2018 by nasos75 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted September 11, 2018 Author Share Posted September 11, 2018 (edited) I was just informed from WHMCS team, this is indeed a buggy behavior with bug number CORE-11987. Edited September 11, 2018 by nasos75 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.