Page 1 of 1

How to create shipping zones within a city?

Posted: Fri Mar 31, 2017 5:22 am
by djordje
Hello, I am creating a shop that sells food, mostly fast food, and require the user be able to select his shipping zone within the city so that shipping fees can be calculated accordingly. Does anybody have an idea on how to accomplish this? My OpenCart version is 2.2.

Any help is appreciate. Thanks in advance.

Re: How to create shipping zones within a city?

Posted: Fri Mar 31, 2017 11:26 pm
by Johnathan
If you can divide the areas by postcode, you could use Postcode-Based Shipping or Formula-Based Shipping. That way the right rate will come automatically, depending on the postcode the customer enters. Note that Formula-Based Shipping also includes the ability to create distance-based rates, if you need those for delivery calculations.

If postcodes won't work, you could just create multiple shipping options for your "zones", and have the customer choose the right one for their area. For example:

Zone 1 = $5.00
Zone 2 = $10.00

If you'd rather the customer be forced to choose their area *before* seeing shipping options, you'll probably need to create new sub-zones in the Zones area of the admin panel. That way customers would choose their zone in the "State / Region" dropdown (which you'd need to retitle) and you can base shipping rates on that. That's probably the easiest way to do it without modifying core OpenCart files.