daddy
New Member
One issue we experienced when starting out with ClientExec was the fact that many customers were manually typing out their domain name and not clicking the TLD selector/dropdown.
Clientexec would then proceed to ATTEMPT to register domain.com.com instead of realising it is just domain.com
I fixed this by making it so if you hit the "." it opens the dropdown.
I modified the file:
Just added this to the bottom:
Now when the user attempts to add a "." to the text input field it just opens the dropdown.
I thought this was a handy little trick and decided to share it here.
Clientexec would then proceed to ATTEMPT to register domain.com.com instead of realising it is just domain.com
I fixed this by making it so if you hit the "." it opens the dropdown.
I modified the file:
Code:
templates/order_forms/default_domains/signuppublic/cart1.phtml
Just added this to the bottom:
Code:
$(document).ready(function(){
// Dot Key Dropdown
$('.first_domain_name, .transfer_domain').on('keydown', function(e){
if(e.key === '.'){
var $input = $(this);
var $select = $input.hasClass('first_domain_name') ? $('.domain_extension') : $('.transfer_extension');
$select.focus();
if($select.hasClass('select2-hidden-accessible')){
$select.select2('open');
} else {
$select.trigger('mousedown');
}
}
});
});
Now when the user attempts to add a "." to the text input field it just opens the dropdown.
I thought this was a handy little trick and decided to share it here.