Jump to content

How do I automatically add a country code (e.g. 968) to all numbers?


almotqen

Recommended Posts

Hello,

 

I have custom Mobile Field in WHMCS and I want to update all phones numbers to start with country code (967).

For example:

default phone field: 99598880

I want to add country code on start to become as: 96899598880

 

 

How do I automatically add a country code (e.g. 968) to all numbers?:roll:

Link to comment
Share on other sites

Is this a custom field on client registration or a product? Is it for existing numbers or only new ones? Does it only need to display that way or does the actual value in the database need to have 967 at prepended?

Some of the above could be done with javascript in the tpl and others via custom action hook - http://docs.whmcs.com/Hooks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated