0

I want to develop custom module that is used for adding country code field before telephone field on checkout page in magento 2.3.4.

3

2 Answers 2

2

Here is the some free and paid extension available, you can use it:

Free - https://github.com/MaxMage/international-telephone-input

Paid - https://magery-themes.com/intl-tel-input-magento2.html

https://magecomp.com/magento-2-international-telephone-input.html#:~:text=Magento%202%20Internationa....

Thanks

4
  • But I want to build custom module and don't want to use any paid extensions.
    – Deep Shah
    Apr 20, 2021 at 11:53
  • 1
    This one is free, Free - github.com/MaxMage/international-telephone-input Apr 20, 2021 at 12:25
  • But it's not working fine.. - Vibhore Jain
    – Deep Shah
    Apr 20, 2021 at 12:56
  • @DeepShah Inside Block/PhoneNumber.php file comment or remove this line, "preferredCountries" => [$this->helper->preferedCountry()]. and then it should work fine. Oct 29, 2021 at 7:17
0

You can use the below extension, it automatically adds validation based on the selected country with the country flags and automatically sets the user country by default based on their Geo IP location. It is also supported with the latest Magento 2.4.5 version as well.

https://marketplace.magento.com/ananta-module-telephonevalidation.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.