I was asked ...
Today, I had a customer who had a customer call saying that the only shipping option they were seeing was In-Store pickup. After a little debugging, they figured out that she was inputting an invalid Zip code and so it was just showing in-store pickup.
My question is this:
Can an expression be written that will catch the invalid zip code error returned from USPS and print a message to the screen saying "Sorry, it appears you've input an invalid zip code, so USPS was unable to calculate rates for their services. Please go back and correct the error."
NopCommerce has the option such that it will "return valid options if there are any". So, first, set that option to False
- USPS Error returned: Error Desc: Please enter a valid ZIP Code for the recipient. USPS Help Context: .
(Note, that the USPS plugin only sends 5 digit zip to USPS)
However, if you want to do some up front validations (and return friendlier error messages), then you can use ErrorExit in Shipping Director: Read these other blogs about validations