Issue 98: Billing addresses should accept PO boxes.
Status:  Fixed
Owner:
Closed:  Sep 2010
Project Member Reported by subim...@gmail.com, Jun 15, 2008
What steps will reproduce the problem?

Fill out an order, use a PO Box as a billing address.


What is the expected output? What do you see instead?

This should work, but it doesn't because of the validation on all addresses.


Jul 24, 2008
#1 randiz...@gmail.com
Is this just a matter of modifying the address validation to allow "#" and "."? 
Alternatively there could be conditional logic that if the line one of address fails 
as is, a regex could be run to determine if line one is a po box , something like... 
\b[P|p]*(OST|ost)*\.*\s*[O|o|0]*(ffice|FFICE)*\.*\s*[B|b][O|o|0][X|x]\b 

If there is a match.. relax the validation rule.
Aug 11, 2008
Project Member #2 subim...@gmail.com
Actually randizzle it's a little more complicated than that. Addresses can act as
billing and shipping address, or either/or. Checking to see which is which during
validation is a bit convoluted at the moment.
Oct 30, 2008
#3 rogerpack2005
maybe could add a flag to OrderAddress instances
like
attr_accessor :am_billing
which can be used during the PO Box check.
Cheers!
-=R
Aug 31, 2010
Project Member #4 subim...@gmail.com
(No comment was entered for this change.)
Labels: milestone-v1.4
Sep 6, 2010
Project Member #5 subim...@gmail.com
This issue was closed by revision r339.
Status: Fixed
Sep 6, 2010
Project Member #6 subim...@gmail.com
Ended up removing PO Box validation at all. Doesn't make sense for all stores so it shouldn't be in the base code.