Open osmpsas opened 3 years ago
Same problem using "If you experience issues with adding additional fields required for our module (e.g. language for IDN domains, Job Title field for .CA and .AU domains, extended attributed for .FR domains), you will need to connect our own additionaldomainfields.php file. To do this, please create a new file named additionalfields.php within the /resources/domains/ directory and add the following strings in the end of it:
if (file_exists( DIR."/../../modules/registrars/namecheap/additionaldomainfields.php")) { include DIR."/../../modules/registrars/namecheap/additionaldomainfields.php"; }"
Finally, on the namecheap.com interface's, we got this for the domain:
Extended Attributes Registrant Type :Individual Date of Birth: (empty)
Ok, i got it i think.
In the WHCMS archive by default the file "additionaldomainfields.php" are not existing in registrars/namecheap/ ; so you're custom field isn't available by default and the workaround with /resources/domains/ don't work.
I got it working by adding the include DIR."/../../modules/registrars/namecheap/additionaldomainfields.php"; in resources/domaines/dist.additionalfields.php at the EOF (if in additionaldomainfields.php this is not working) and commenting old ".fr" customfield.
Hi there,
There are a problem on additionalfields on last version of WHMCS.
For example, on TLD .fr, Line ~ 850 of namecheap.php :
if(!empty($params['additionalfields']['Date of Birth'])){ $request_params['FRRegistrantBirthDate'] = $params['additionalfields']['Date of Birth']; }
Here is the result of print_r($params['additionalfields']) :
Array ( [Legal Type] => Individual [Info] => [Birthdate] => 1989-07-13 [Birthplace City] => [Birthplace Country] => [Birthplace Postcode] => [SIRET Number] => [DUNS Number] => [VAT Number] => [Trademark Number] => )
So no "['Date of Birth']" existing, only ['Birthdate'], probably same for other field.
Resulting an error "FRRegistrantBirthDate is required", with no possibility of completing the order of the domain. Think it's the same problem for other TLD who's required additionalfields.
Thks!