Closed (fixed)
Project:
e-Commerce
Version:
5.x-4.x-dev
Component:
address
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2006 at 13:57 UTC
Updated:
19 Jan 2009 at 13:08 UTC
Entering an address requires me to enter a value for "state" although in the address form that field is not marked mandatory. In my country (Belgium), the state or province is not part of the address, so my customers should be able to skip this field. However, this returns an error:
Please enter a state/province/region.
Then every customer is required to select the value "Outside US". The result of this is that a value of "1" is displayed as the state/province, which makes the final address is incorrect:
Firstname Lastname
Street n°
MyCity, 1 ZIPCODE
Belgium
Comments
Comment #1
simeFixed, see http://drupal.org/cvs?commit=44339
I didn't want to make the us drop-down not required, but the problem is in the validate function - if both state and province are empty you couldn't tell whether it's because of a missing value in the state select.
So I've just allowed a little override. Not for 5.0, as I'll sort this out properly. To override, add this to the bottom of settings.php:
Comment #2
simemarking fixed
let me know if a problem still
Comment #3
drupaceous commentedGreat, works fine now. Thanks for taking the trouble to fix this.
Comment #4
(not verified) commentedComment #5
druvision commentedsime wrote:
It's 5.x and the issue is still not sorted out properly.
The settings.php bypass works, but it's only a bybass.
I am from Israel and we have the same problem - no states.
Here is a spec (design) to close this issue:
Also - consider using CCK for the addresses.
Thanks alot for the great work done.
Amnon
-
Professional: Drupal Search | Drupal Israel | Web Hosting Strategies
Personal: Hitech Dolphin: Regain Simple Joy :)
Comment #6
druvision commentedSame for the phone field:
4. Add a new selection list to the store settings, named 'Phone Field Behavior', with the same three selections.
It seems it's a general issue - allow to define which address fields are to be optional, required or hidden. Hence I am changing the title of the issue.
Comment #7
brmassa commentedGuys,
1* It wont be fixed on Ecommerce 3. the problem is very deep.
2* It will be fixed on Ecommerce 4. In fact, address module will be rewritten.
3* A new EC module called ec_location will provide a link with location module and will be able to be used instead address if you want.
regards,
massa
Comment #8
PEpe commentedIt would be nice define own address fields... Something like creating node type with CKK...
Comment #9
gordon commentedBecause of the FormAPI this cannot really be fixed in Drupal 5, Once we get to Drupal 6 maybe the formapi will let us fix it.
Comment #10
brmassa commented