I have used the code from:https://wiki.foxycart.com/v/2.0/snippets/prevent_shipping_to_po_boxes
It works, so if you enter a PO Box as your address you get the popup message.
BUT if you then change the 'address1' line to a non PO box, but don't change the postcode then 'customer-address-change' doesn't seem to be triggered.
So then you're stuck with the message :
'Please enter your location information to display your shipping options.'
in the shipping section as it doesn't think it has a valid address.
Should FC.client.on('customer-address-change' , ) be triggered by a change to the 'fc-form-control--shipping-address1' field?
If not - how would you suggest I resolve the above scenario?