You could try customizing the code in:
/includes/modules/shipping/ups.php
with the code in RED:
Code:// disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false); } // bof: block PO BOX addresses in $order->delivery['street_address'] or $order->delivery['suburb'] if (!IS_ADMIN_FLAG) { global $order; $street_address = $order->delivery['street_address']; // BEGIN PO Box Ban street address if ( preg_match('/PO BOX/si', $street_address) ) { $error = true; } else if ( preg_match('/BOX/si', $street_address) ) { $error = true; } else if ( preg_match('/POBOX/si', $street_address) ) { $error = true; } else if ( preg_match('/P\.O\./si', $street_address) ) { $error = true; } else if ( preg_match('/P\.O/si', $street_address) ) { $error = true; } else if ( preg_match('/PO\./si', $street_address) ) { $error = true; } $suburb = $order->delivery['suburb']; // BEGIN PO Box Ban suburb if ( preg_match('/PO BOX/si', $suburb) ) { $error = true; } else if ( preg_match('/BOX/si', $suburb) ) { $error = true; } else if ( preg_match('/POBOX/si', $suburb) ) { $error = true; } else if ( preg_match('/P\.O\./si', $suburb) ) { $error = true; } else if ( preg_match('/P\.O/si', $suburb) ) { $error = true; } else if ( preg_match('/PO\./si', $suburb) ) { $error = true; } if ($error) { $this->enabled = false; } } // eof: block PO BOX addresses in $order->delivery['street_address'] or $order->delivery['suburb'] if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_UPS_ZONE > 0) ) {


Reply With Quote

