US valid phone number format

138 views
Skip to first unread message

asi...@gmail.com

unread,
Jul 7, 2014, 3:25:09 PM7/7/14
to django...@googlegroups.com
Hi

I'm having trouble passing the validation of the address phone number field.
what is the correct format for US phone numbers?

If I'm having trouble I don't want to think how the customer would feel.

thanks

Maik Hoepfel

unread,
Jul 11, 2014, 12:42:06 PM7/11/14
to django...@googlegroups.com
Through some abstraction layers, Oscar uses Google's phonenumbers
library also in use by Android handsets. I'd like to think that's a
pretty solid foundation; what's the number you're having trouble with?

I just tried a random phone number ([1-]412-885-0075) and did not have
any trouble.

Regards,

Maik
> --
> https://github.com/tangentlabs/django-oscar
> http://django-oscar.readthedocs.org/en/latest/
> https://twitter.com/django_oscar
> ---
> You received this message because you are subscribed to the Google
> Groups "django-oscar" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-oscar...@googlegroups.com
> <mailto:django-oscar...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-oscar.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-oscar/388d8adb-3df2-4260-80ba-d34a37f0940c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-oscar/388d8adb-3df2-4260-80ba-d34a37f0940c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Asi Lichtenstein

unread,
Jul 11, 2014, 12:44:18 PM7/11/14
to django...@googlegroups.com

The problem is one must include the international prefix which I think its overahead.

Maybe Oscar shall add this prefix in the background.

On Jul 11, 2014 7:42 PM, "Maik Hoepfel" <maik.h...@tangentsnowball.com> wrote:
Through some abstraction layers, Oscar uses Google's phonenumbers library also in use by Android handsets. I'd like to think that's a pretty solid foundation; what's the number you're having trouble with?

I just tried a random phone number ([1-]412-885-0075) and did not have any trouble.

Regards,

Maik

On 07/07/14 20:25, asi...@gmail.com wrote:
Hi

I'm having trouble passing the validation of the address phone number field.
what is the correct format for US phone numbers?

If I'm having trouble I don't want to think how the customer would feel.

thanks

--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google
Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send
--- You received this message because you are subscribed to a topic in the Google Groups "django-oscar" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-oscar/Pweu3gmqWk4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-oscar+unsubscribe@googlegroups.com.

Maik Hoepfel

unread,
Jul 11, 2014, 12:47:10 PM7/11/14
to django...@googlegroups.com
On 11/07/14 17:44, Asi Lichtenstein wrote:
> The problem is one must include the international prefix which I think
> its overahead.
>
> Maybe Oscar shall add this prefix in the background.

That is what's happening already if you select US as a country.
412-885-0075 works just fine.


>
> On Jul 11, 2014 7:42 PM, "Maik Hoepfel"
> <maik.h...@tangentsnowball.com
> <mailto:maik.h...@tangentsnowball.com>> wrote:
>
> Through some abstraction layers, Oscar uses Google's phonenumbers
> library also in use by Android handsets. I'd like to think that's a
> pretty solid foundation; what's the number you're having trouble with?
>
> I just tried a random phone number ([1-]412-885-0075) and did not
> have any trouble.
>
> Regards,
>
> Maik
>
> On 07/07/14 20:25, asi...@gmail.com <mailto:asi...@gmail.com> wrote:
>
> Hi
>
> I'm having trouble passing the validation of the address phone
> number field.
> what is the correct format for US phone numbers?
>
> If I'm having trouble I don't want to think how the customer
> would feel.
>
> thanks
>
> --
> https://github.com/__tangentlabs/django-oscar
> <https://github.com/tangentlabs/django-oscar>
> http://django-oscar.__readthedocs.org/en/latest/
> <http://django-oscar.readthedocs.org/en/latest/>
> https://twitter.com/django___oscar
> <https://twitter.com/django_oscar>
> ---
> You received this message because you are subscribed to the Google
> Groups "django-oscar" group.
> To unsubscribe from this group and stop receiving emails from
> it, send
> an email to django-oscar+unsubscribe@__googlegroups.com
> <mailto:django-oscar%2Bunsu...@googlegroups.com>
> <mailto:django-oscar+...@googlegroups.com
> <mailto:django-oscar%2Bunsu...@googlegroups.com>>.
> Visit this group at
> http://groups.google.com/__group/django-oscar
> <http://groups.google.com/group/django-oscar>.
> To view this discussion on the web visit
> https://groups.google.com/d/__msgid/django-oscar/388d8adb-__3df2-4260-80ba-d34a37f0940c%__40googlegroups.com
> <https://groups.google.com/d/msgid/django-oscar/388d8adb-3df2-4260-80ba-d34a37f0940c%40googlegroups.com>
> <https://groups.google.com/d/__msgid/django-oscar/388d8adb-__3df2-4260-80ba-d34a37f0940c%__40googlegroups.com?utm_medium=__email&utm_source=footer
> <https://groups.google.com/d/msgid/django-oscar/388d8adb-3df2-4260-80ba-d34a37f0940c%40googlegroups.com?utm_medium=email&utm_source=footer>>.
> For more options, visit https://groups.google.com/d/__optout
> <https://groups.google.com/d/optout>.
>
>
> --
> https://github.com/__tangentlabs/django-oscar
> <https://github.com/tangentlabs/django-oscar>
> http://django-oscar.__readthedocs.org/en/latest/
> <http://django-oscar.readthedocs.org/en/latest/>
> https://twitter.com/django___oscar <https://twitter.com/django_oscar>
> --- You received this message because you are subscribed to a topic
> in the Google Groups "django-oscar" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/__topic/django-oscar/__Pweu3gmqWk4/unsubscribe
> <https://groups.google.com/d/topic/django-oscar/Pweu3gmqWk4/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> django-oscar+unsubscribe@__googlegroups.com
> <mailto:django-oscar%2Bunsu...@googlegroups.com>.
> Visit this group at http://groups.google.com/__group/django-oscar
> <http://groups.google.com/group/django-oscar>.
> To view this discussion on the web visit
> https://groups.google.com/d/__msgid/django-oscar/53C013D2.__4080902%40tangentsnowball.com
> <https://groups.google.com/d/msgid/django-oscar/53C013D2.4080902%40tangentsnowball.com>.
> For more options, visit https://groups.google.com/d/__optout
> <https://groups.google.com/d/optout>.
>
> --
> https://github.com/tangentlabs/django-oscar
> http://django-oscar.readthedocs.org/en/latest/
> https://twitter.com/django_oscar
> ---
> You received this message because you are subscribed to the Google
> Groups "django-oscar" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-oscar...@googlegroups.com
> <mailto:django-oscar...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-oscar.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-oscar/CAMBtn_3tDff24vZh1pFt0UbDSdg2FnTOujeEDN6i6sw6ndYEXg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-oscar/CAMBtn_3tDff24vZh1pFt0UbDSdg2FnTOujeEDN6i6sw6ndYEXg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Asi Lichtenstein

unread,
Jul 11, 2014, 1:02:06 PM7/11/14
to django...@googlegroups.com
I don't recall such behavior on Admin where I tired to add a phone number to US address.
with the +1 the phone was not validate.

Is this behavior not applicable for admin?



On Fri, Jul 11, 2014 at 7:46 PM, Maik Hoepfel <maik.h...@tangentsnowball.com> wrote:
On 11/07/14 17:44, Asi Lichtenstein wrote:
The problem is one must include the international prefix which I think
its overahead.

Maybe Oscar shall add this prefix in the background.

That is what's happening already if you select US as a country. 412-885-0075 works just fine.



On Jul 11, 2014 7:42 PM, "Maik Hoepfel"

Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web visit
--- You received this message because you are subscribed to a topic in the Google Groups "django-oscar" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-oscar/Pweu3gmqWk4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-oscar+unsubscribe@googlegroups.com.

Maik Hoepfel

unread,
Jul 11, 2014, 1:07:44 PM7/11/14
to django...@googlegroups.com
On 11/07/14 18:02, Asi Lichtenstein wrote:
> I don't recall such behavior on Admin where I tired to add a phone
> number to US address.
> with the +1 the phone was not validate.
>
> Is this behavior not applicable for admin?

No, the Django admin is not officially supported in Oscar, and just kept
for developers.

Please try to be more exhaustive in your bug reports to avoid such
back-and-forth in the future.

Thanks,

Maik

>
>
>
> On Fri, Jul 11, 2014 at 7:46 PM, Maik Hoepfel
> <maik.h...@tangentsnowball.com
> <mailto:maik.h...@tangentsnowball.com>> wrote:
>
> On 11/07/14 17:44, Asi Lichtenstein wrote:
>
> The problem is one must include the international prefix which I
> think
> its overahead.
>
> Maybe Oscar shall add this prefix in the background.
>
>
> That is what's happening already if you select US as a country.
> 412-885-0075 <tel:412-885-0075> works just fine.
>
>
>
> On Jul 11, 2014 7:42 PM, "Maik Hoepfel"
> <maik.hoepfel@tangentsnowball.__com
> <mailto:maik.h...@tangentsnowball.com>
> <mailto:maik.hoepfel@__tangentsnowball.com
> <mailto:maik.h...@tangentsnowball.com>>> wrote:
>
> Through some abstraction layers, Oscar uses Google's
> phonenumbers
> library also in use by Android handsets. I'd like to think
> that's a
> pretty solid foundation; what's the number you're having
> trouble with?
>
> I just tried a random phone number ([1-]412-885-0075) and
> did not
> have any trouble.
>
> Regards,
>
> Maik
>
> On 07/07/14 20:25, asi...@gmail.com
> <mailto:asi...@gmail.com> <mailto:asi...@gmail.com
> <mailto:asi...@gmail.com>> wrote:
>
> Hi
>
> I'm having trouble passing the validation of the
> address phone
> number field.
> what is the correct format for US phone numbers?
>
> If I'm having trouble I don't want to think how the
> customer
> would feel.
>
> thanks
>
> --
> https://github.com/____tangentlabs/django-oscar
> <https://github.com/__tangentlabs/django-oscar>
> <https://github.com/__tangentlabs/django-oscar
> <https://github.com/tangentlabs/django-oscar>>
> http://django-oscar.__readthed__ocs.org/en/latest/
> <http://readthedocs.org/en/latest/>
> <http://django-oscar.__readthedocs.org/en/latest/
> <http://django-oscar.readthedocs.org/en/latest/>>
> https://twitter.com/django_____oscar
> <https://twitter.com/django___oscar>
>
> <https://twitter.com/django___oscar
> <https://twitter.com/django_oscar>>
> ---
> You received this message because you are subscribed to
> the Google
> Groups "django-oscar" group.
> To unsubscribe from this group and stop receiving
> emails from
> it, send
> an email to
> django-oscar+unsubscribe@__goo__glegroups.com
> <http://googlegroups.com>
> <mailto:django-oscar%__2Buns...@googlegroups.com
> <mailto:django-oscar%252Buns...@googlegroups.com>__>
> <mailto:django-oscar+_...@googlegroups.com
> <mailto:django-oscar%2B__uns...@googlegroups.com>
> <mailto:django-oscar%__2Buns...@googlegroups.com
> <mailto:django-oscar%252Buns...@googlegroups.com>__>>.
> Visit this group at
> http://groups.google.com/____group/django-oscar
> <http://groups.google.com/__group/django-oscar>
> https://groups.google.com/d/____msgid/django-oscar/388d8adb-____3df2-4260-80ba-d34a37f0940c%____40googlegroups.com
> <https://groups.google.com/d/__msgid/django-oscar/388d8adb-__3df2-4260-80ba-d34a37f0940c%__40googlegroups.com>
>
> <https://groups.google.com/d/__msgid/django-oscar/388d8adb-__3df2-4260-80ba-d34a37f0940c%__40googlegroups.com
> <https://groups.google.com/d/msgid/django-oscar/388d8adb-3df2-4260-80ba-d34a37f0940c%40googlegroups.com>>
>
> <https://groups.google.com/d/____msgid/django-oscar/388d8adb-____3df2-4260-80ba-d34a37f0940c%____40googlegroups.com?utm___medium=__email&utm_source=__footer
> <https://groups.google.com/d/__msgid/django-oscar/388d8adb-__3df2-4260-80ba-d34a37f0940c%__40googlegroups.com?utm_medium=__email&utm_source=footer>
> https://groups.google.com/d/____optout
> <https://groups.google.com/d/__optout>
> https://github.com/____tangentlabs/django-oscar
> <https://github.com/__tangentlabs/django-oscar>
> <https://github.com/__tangentlabs/django-oscar
> <https://github.com/tangentlabs/django-oscar>>
> http://django-oscar.__readthed__ocs.org/en/latest/
> <http://readthedocs.org/en/latest/>
> <http://django-oscar.__readthedocs.org/en/latest/
> <http://django-oscar.readthedocs.org/en/latest/>>
> https://twitter.com/django_____oscar
> <https://twitter.com/django___oscar>
> <https://twitter.com/django___oscar
> <https://twitter.com/django_oscar>>
>
> --- You received this message because you are subscribed to
> a topic
> in the Google Groups "django-oscar" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/____topic/django-oscar/____Pweu3gmqWk4/unsubscribe
> <https://groups.google.com/d/__topic/django-oscar/__Pweu3gmqWk4/unsubscribe>
> django-oscar+unsubscribe@__goo__glegroups.com
> <http://googlegroups.com>
> <mailto:django-oscar%__2Buns...@googlegroups.com
> <mailto:django-oscar%252Buns...@googlegroups.com>__>.
> Visit this group at
> http://groups.google.com/____group/django-oscar
> <http://groups.google.com/__group/django-oscar>
> https://groups.google.com/d/____msgid/django-oscar/53C013D2.____4080902%40tangentsnowball.com
> <https://groups.google.com/d/__msgid/django-oscar/53C013D2.__4080902%40tangentsnowball.com>
>
> <https://groups.google.com/d/__msgid/django-oscar/53C013D2.__4080902%40tangentsnowball.com
> <https://groups.google.com/d/msgid/django-oscar/53C013D2.4080902%40tangentsnowball.com>>__.
> For more options, visit
> https://groups.google.com/d/____optout
> <https://groups.google.com/d/__optout>
> You received this message because you are subscribed to the Google
> Groups "django-oscar" group.
> To unsubscribe from this group and stop receiving emails from
> it, send
> an email to django-oscar+unsubscribe@__googlegroups.com
> <mailto:django-oscar%2Bunsu...@googlegroups.com>
> <mailto:django-oscar+...@googlegroups.com
> <mailto:django-oscar%2Bunsu...@googlegroups.com>>.
> Visit this group at
> http://groups.google.com/__group/django-oscar
> <http://groups.google.com/group/django-oscar>.
> To view this discussion on the web visit
> https://groups.google.com/d/__msgid/django-oscar/CAMBtn___3tDff24vZh1pFt0UbDSdg2FnTOujeE__DN6i6sw6ndYEXg%40mail.gmail.__com
> <https://groups.google.com/d/msgid/django-oscar/CAMBtn_3tDff24vZh1pFt0UbDSdg2FnTOujeEDN6i6sw6ndYEXg%40mail.gmail.com>
> <https://groups.google.com/d/__msgid/django-oscar/CAMBtn___3tDff24vZh1pFt0UbDSdg2FnTOujeE__DN6i6sw6ndYEXg%40mail.gmail.__com?utm_medium=email&utm___source=footer
> <https://groups.google.com/d/msgid/django-oscar/CAMBtn_3tDff24vZh1pFt0UbDSdg2FnTOujeEDN6i6sw6ndYEXg%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
>
> For more options, visit https://groups.google.com/d/__optout
> <https://groups.google.com/d/optout>.
>
>
> --
> https://github.com/__tangentlabs/django-oscar
> <https://github.com/tangentlabs/django-oscar>
> http://django-oscar.__readthedocs.org/en/latest/
> <http://django-oscar.readthedocs.org/en/latest/>
> https://twitter.com/django___oscar <https://twitter.com/django_oscar>
> --- You received this message because you are subscribed to a topic
> in the Google Groups "django-oscar" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/__topic/django-oscar/__Pweu3gmqWk4/unsubscribe
> <https://groups.google.com/d/topic/django-oscar/Pweu3gmqWk4/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> django-oscar+unsubscribe@__googlegroups.com
> <mailto:django-oscar%2Bunsu...@googlegroups.com>.
> Visit this group at http://groups.google.com/__group/django-oscar
> <http://groups.google.com/group/django-oscar>.
> To view this discussion on the web visit
> https://groups.google.com/d/__msgid/django-oscar/53C01502.__2040606%40tangentsnowball.com
> <https://groups.google.com/d/msgid/django-oscar/53C01502.2040606%40tangentsnowball.com>.
>
> For more options, visit https://groups.google.com/d/__optout
> <https://groups.google.com/d/optout>.
>
>
> --
> https://github.com/tangentlabs/django-oscar
> http://django-oscar.readthedocs.org/en/latest/
> https://twitter.com/django_oscar
> ---
> You received this message because you are subscribed to the Google
> Groups "django-oscar" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-oscar...@googlegroups.com
> <mailto:django-oscar...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-oscar.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-oscar/CAMBtn_3i2UWEWWjVUvvB5_9LTkvePnmmfnFqYQn4pkCMS25pBQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-oscar/CAMBtn_3i2UWEWWjVUvvB5_9LTkvePnmmfnFqYQn4pkCMS25pBQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Asi Lichtenstein

unread,
Jul 11, 2014, 1:17:19 PM7/11/14
to django...@googlegroups.com
no problem, thanks.


On Fri, Jul 11, 2014 at 8:07 PM, Maik Hoepfel <maik.h...@tangentsnowball.com> wrote:
On 11/07/14 18:02, Asi Lichtenstein wrote:
I don't recall such behavior on Admin where I tired to add a phone
number to US address.
with the +1 the phone was not validate.

Is this behavior not applicable for admin?

No, the Django admin is not officially supported in Oscar, and just kept for developers.

Please try to be more exhaustive in your bug reports to avoid such back-and-forth in the future.

Thanks,

Maik




On Fri, Jul 11, 2014 at 7:46 PM, Maik Hoepfel
<mailto:maik.hoepfel@tangentsnowball.com>> wrote:

    On 11/07/14 17:44, Asi Lichtenstein wrote:

        The problem is one must include the international prefix which I
        think
        its overahead.

        Maybe Oscar shall add this prefix in the background.


    That is what's happening already if you select US as a country.
    412-885-0075 <tel:412-885-0075> works just fine.




        On Jul 11, 2014 7:42 PM, "Maik Hoepfel"
        <maik.hoepfel@tangentsnowball.__com
        <mailto:maik.hoepfel@tangentsnowball.com>
        <mailto:maik.hoepfel@__tangentsnowball.com
                 <mailto:django-oscar%__2Bunsu...@googlegroups.com
        <mailto:django-oscar%252Bunsubscribe@googlegroups.com>__>
                 <mailto:django-oscar+____unsub...@googlegroups.com
        <mailto:django-oscar%2B__unsub...@googlegroups.com>
                 <mailto:django-oscar%__2Bunsu...@googlegroups.com
        <mailto:django-oscar%252Bunsubscribe@googlegroups.com>__>>.

Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web visit
--- You received this message because you are subscribed to a topic in the Google Groups "django-oscar" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-oscar/Pweu3gmqWk4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-oscar+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages