Hi, installed it and I only need it to check the shipping address and to still allow for P.O. box to be used for billing address. I only used the checkout_new_address.php module and thought it might just work on shipping but it doesn't allow the user to use a PO box for billing either. I looked at the code and it looks like it just searches the whole form for p.o box enteries. I'm wondering if there is a way to skip the billing field or if there was a way to fix the code so it allows for a P.O box to be used for billing.
code:
// BEGIN PO Box Ban 1/1
if ( preg_match('/PO BOX/si', $street_address) ) {
$error = true;
$messageStack->add('checkout_address', PO_BOX_ERROR);
} else if ( preg_match('/POBOX/si', $street_address) ) {
$error = true;
$messageStack->add('checkout_address', PO_BOX_ERROR);
} else if ( preg_match('/P.O./si', $street_address) ) {
$error = true;
$messageStack->add('checkout_address', PO_BOX_ERROR);
} else if ( preg_match('/P.O/si', $street_address) ) {
$error = true;
$messageStack->add('checkout_address', PO_BOX_ERROR);
} else if ( preg_match('/PO./si', $street_address) ) {
$error = true;
$messageStack->add('checkout_address', PO_BOX_ERROR);
}
// END PO Box Ban 1/1
Can I exclude the billing address? :lamo: