mirumee / legacy-views

A legacy fork of Saleor that contains the old storefront and dashboard code
Other
14 stars 13 forks source link

checkout shipping address page, when change country, the phone number prefix not follow. #8

Open zchking opened 6 years ago

zchking commented 6 years ago

(Please take the time and describe the problem you're having before you propose a solution.)

What I'm trying to achieve

checkout shipping address page, when change country, the phone number prefix should change too. but it select +1. ... image

Steps to reproduce the problem

  1. when you try to change the address country when checkout.
  2. the phone number country code will not update.

What I expected to happen

it should update. such as I choose UK, it should change to +44 ...

What happened instead/how it failed

I change the request POST data to form. and I follow the code to the saleor/account/i18n.py. But still not work.

who can show the method it set selected?

patrys commented 6 years ago

I suggest that we change the prefix if the number is not provided. For autofill cases we should provide accurate autocomplete attributes for both subfields:

zchking commented 6 years ago

yes, but can't follow the key code, I will try to adjust.