0

I want to add a country code with a phone field on the contact us page Magento 2.4.0. Can you help me there is any snippet or idea how to I'll add?

enter image description here

Looking forward to hearing from your side.

Kind Regards,

1 Answer 1

0

You can use below extension

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

1.Go to Magento 2 root directory

2.Enter following commands to install module:

 composer require maxmage/international-telephone-input

3.Enter following commands to enable module:

php bin/magento module:enable MaxMage_InternationalTelephoneInput
php bin/magento setup:upgrade
php bin/magento cache:clean

Note: Input type name should be "telephone"

Your Answer

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

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