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.

asked Apr 20, 2021 at 9:55
3

2 Answers 2

3
answered Apr 20, 2021 at 10:37
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

answered Feb 21, 2023 at 4:06

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.