Retrieve postal codes defined in the Delivery Zones
Posted: Fri Nov 28, 2008 4:06 pm
Hi,
Does anybody know how to retrieve delivery zone postal codes defined in the admin site?
My problem:
My client only delivers his orders to addresses in certain postal codes. Before accepting an order, the system needs to validate order's ship to address against a list of postal codes. If the address is not valid, an error message needs to be displayed to the user.
My solution:
My client defines the postal codes in "Configure Shipping Zones" page. I modify the system to retrieve the postal codes from the database and use them to valid order's ship to address.
My problem:
How can I retrieve the postal codes that defined in the zones?
Any suggestions are welcome. If you know a better solution for my problem, please direct me.
Thanks
Does anybody know how to retrieve delivery zone postal codes defined in the admin site?
My problem:
My client only delivers his orders to addresses in certain postal codes. Before accepting an order, the system needs to validate order's ship to address against a list of postal codes. If the address is not valid, an error message needs to be displayed to the user.
My solution:
My client defines the postal codes in "Configure Shipping Zones" page. I modify the system to retrieve the postal codes from the database and use them to valid order's ship to address.
My problem:
How can I retrieve the postal codes that defined in the zones?
Any suggestions are welcome. If you know a better solution for my problem, please direct me.
Thanks