Hi there,

I just don't know how to fill the field woth the spanish phone numbers, is giving me error all the time.

A conventional fix phone number would be:

+XX(International spain code)

9 numbers (XXXXXXXXX)
XX(province code), XXX XX XX (phone number)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

karlitos’s picture

Component: User interface » Code
Assigned: Unassigned » karlitos
Category: support » bug
vthirteen’s picture

"999 999 999" is not a valid Spanish phone number
Spanish phone numbers should only contains numbers and spaces and be like 999 999 999

bizarre...

makokis’s picture

i have the same problem. I use Drupal 7.18 (Commerce Kickstart 7.x-2.0).
¿how did you solve it?

thanks

rfsbsb’s picture

Status: Active » Needs review
FileSize
2.98 KB

Hi guys, I was looking at the code and it wasn't ok according to this page http://en.wikipedia.org/wiki/Telephone_numbers_in_Spain so I wrote a small patch to fix it.

Can you test the and check if it works?

In case any of you don't know how to apply the patch, here's how http://drupal.org/node/87303/git-instructions/7.x-1.x

makokis’s picture

i do not how, but is solved by the moment. Thanks for your offer, maybe it helps
someone in the future.

Thanks :)

rfsbsb’s picture

Was it already fixed or the patch fixed it?

rfsbsb’s picture

Hi @makokis, can you tel if the problem was fixed using the patch or was it already fixed?

sja1’s picture

Version: 6.x-2.7 » 6.x-2.18
Issue summary: View changes
FileSize
2.81 KB

Hello. This patch worked for me. I had to modify the patch very slightly to be able to apply it to the 2.18 version of the module. Modified version is attached.

sja1’s picture

Actually, the patch didn't work. The regex seems to return zero. What did work finally was comment 3 on this issue: https://drupal.org/node/1309680. Marking as duplicate.

sja1’s picture

Status: Needs review » Closed (duplicate)