Jump to content

custom field - regex does not work


cluster

Recommended Posts

yeah, that worked!

is there also a regex setting for customer phone which allows "+"?

might be worth reading the post below...

 

http://forum.whmcs.com/showthread.php?91718-Whmcs-and-phonenumber-in-ORG-contact-(countrycode-not-prefilled-)&p=386202#post386202

 

 

The phone number should be entered in the format area code and country code (eg. 123456789)

You should not enter the country code or any punctuation into the WHMCS phone number field (eg. +44).

 

The registrar module code itself will need to handle adding the country code to the phone number field automatically based upon the client's country.

Link to comment
Share on other sites

if you're using the EU VAT Addon, that can validate the VAT number on the order page. or try the following...
/^[a-zA-Z0-9-_ ]{4,28}$/

In modern theme there is no such a field for VAT number, and if I use a custom field, how can it assigned that it's used as company vat no? Or is there a shortcode or special input field code to insert in the checkout (viewcart.tpl)?

Edited by cluster
Link to comment
Share on other sites

In modern theme there is no such a field for VAT number, and if I use a custom field, how can it assigned that it's used as company vat no? Or is there a shortcode or special input field code to insert in the checkout (viewcart.tpl)?

http://docs.whmcs.com/EU_VAT_Addon

 

in its settings, you need to setup a client custom field for the VAT number and tell the addon to use that as a VAT Number field... it should then show the client field at checkout and validate the VAT number when the order is placed.

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