Jump to content
  • 0

Registrar module - Change domain contacts with special characters


Riccardo

Question

Hi all, 

We built a registrar module, for registrations and transfers we take the contacts information from $params['original'] in order to have the not transilterated version of the parameters and everything is working fine with special characters. 

I have issues in the function "mymodule_SaveContactDetails($params)".  When a customer submit the new information from the control panel for changing the contacts of the domain WHMCS passes to the module  also in the original array the transliterated version of the values. In this way if a customer registered a domain with an owner having a name "Tést" will be converted to "Test"  also if he only changes the address for instance. 

Can you help me to fix this issue? 

Example:

1491860896_Schermata2019-07-22alle11_32_57.png.69cc62f56b9bd3e2d38f232087280e92.png

 

array (
  ......
  array (
    'registrant' => 
    array (
      'First Name' => 'Test',
      'Last Name' => 'ciao',
      'Company Name' => 'My company',
       .....
    ),
  'original' => 
  array (
    ......
    array (
      'registrant' => 
      array (
        'First Name' => 'Test',
        'Last Name' => 'ciao',
        'Company Name' => 'My company',
   ....
)

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated