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

3

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. Commented Apr 20, 2021 at 11:53
  • 1
    This one is free, Free - github.com/MaxMage/international-telephone-input Commented Apr 20, 2021 at 12:25
  • But it's not working fine.. - Vibhore Jain Commented 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. Commented 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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.