kapilt / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

State field on checkout address can take the value: (no values) #203

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
*Start the checkout process
*leave the state field as it is
*Finish the checkout process

What is the expected output? What do you see instead?
You should be warned about the empty field, instead you get the default 
(no values) string as state.

Original issue reported on code.google.com by horacio....@gmail.com on 5 Jun 2008 at 8:58

GoogleCodeExporter commented 8 years ago
the ajax work done on the states/countries stuff was badly done and explicitly
allowed a no value value as an actual value instead of as a missing value, and 
needs
to be fixed. basically removing the no-value value from the vocabulary, and 
using the
zope.app.form.itemswidgets as a base widget so it can validate submitted values
against the vocabulary. 

Original comment by kapilt@gmail.com on 8 Aug 2008 at 2:26

GoogleCodeExporter commented 8 years ago

Original comment by cjj.ifpe...@gmail.com on 21 Aug 2008 at 9:21

GoogleCodeExporter commented 8 years ago
What should happen with countries like Niue for which we dont have states. 
Should we
accept the no value for them, or what?

Original comment by javimans...@gmail.com on 26 Aug 2008 at 9:33

GoogleCodeExporter commented 8 years ago
I made a couple of things:
- The widget inherits from DropDownWidget, and validate values according the 
vocabulary
- For countiers without states, a special value "Not applicable" is used
- If the field is not required, then an special "no values" will be displayed, 
which
is on the vocabulary
- When javascript not enabled: all values on the vocabulary are displayed
- Fixed javascript (on Country widget actually) to work on IE7

The work is on trunk, 0.6 and 0.6.1 branches.

Original comment by javimans...@gmail.com on 3 Sep 2008 at 11:14

GoogleCodeExporter commented 8 years ago
I am running getpaid 0.7.0, and am seeing all the hundreds (or thousands) of 
states in the State dropdown, 
which is pretty unusable.  Was this part of this checkin?

Thanks!

Original comment by fulvioca...@gmail.com on 2 May 2009 at 1:20