Retrieve postal codes defined in the Delivery Zones

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
pbhavsar
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Wed Jun 25, 2008 12:21 pm

Retrieve postal codes defined in the Delivery Zones

Post by pbhavsar » 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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Retrieve postal codes defined in the Delivery Zones

Post by mazhar » Sat Nov 29, 2008 3:01 am

I think this is doable without any customization. On the merchant side just specify the available postal codes for the zones. The system will not place the orders for postal codes that are not available within zones.

pbhavsar
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 23
Joined: Wed Jun 25, 2008 12:21 pm

Re: Retrieve postal codes defined in the Delivery Zones

Post by pbhavsar » Mon Dec 01, 2008 4:09 pm

Hi,

I defined the postal codes in the shipping zones, but the system does not prevent out-of-zone orders to be created. My client's business is in Canada. One sample postal code I set up in the shipping zone is "***6M6". Am I doing it at the right place? Is there anything else I need to set up?

Please help me out. Thank you!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Retrieve postal codes defined in the Delivery Zones

Post by mazhar » Tue Dec 02, 2008 11:20 am

Make sure that your shipping method is available only for selected zones for which you have entered the postal codes

Post Reply