sharingsunshine Posted November 24, 2013 Share Posted November 24, 2013 Hello, I need to know in PS 1.5.6.1 is there a way to restrict UPS shipping option from being available to a P O Box in the ship to address field? If it isn't available normally, does anyone know where I need to put the regular expression code to check if it is a PO Box or not? Thanks, Randal Link to comment Share on other sites More sharing options...
sharingsunshine Posted December 2, 2013 Author Share Posted December 2, 2013 Please help on this question! Link to comment Share on other sites More sharing options...
reason8 Posted May 5, 2015 Share Posted May 5, 2015 +1 also need to find out how to disable B.O Box addresses. Link to comment Share on other sites More sharing options...
sharingsunshine Posted May 5, 2015 Author Share Posted May 5, 2015 I wound up paying a developer to create a regular expression to test for the variations of PO Box in the address. If you don't have access to a developer or you aren't one, here is a link http://regexadvice.com/forums/thread/49538.aspx to a regex for PO Boxes. Hope that helps. Our site is customized quite a bit so don't know if where to put the regex will be helpful or not. We put ours in the credit card offline payment module since we don't use a payment processor but we use our manufacturer to fulfill our orders instead. 1 Link to comment Share on other sites More sharing options...
Ornot Posted September 22, 2016 Share Posted September 22, 2016 hi, the new code regex to block the Po Box is here: https://regex101.com/r/nC4lZ2/4 Regards, Ornot, :) Link to comment Share on other sites More sharing options...
Recommended Posts