About Club osCommerce

Showcasing osCommerce…the good, the bad and the ugly!

Follow osc_pro on Twitter

Zones Module in osCommerce

Written By Gary on Nov 16 2008 · Comments (1) Follow osc_pro on Twitter

Quite often, people don't realise that it is really easy to increase the number of "zones" in the Zones (or Tables) shipping modules in osCommerce.

I only charge a flat fee for shipping. One fee is charged to US customers and another fee is charged to international customers. I wanted to use the flat fee module included with OSC but it only allows for 1 zone. The Zone Rates module also sets only one zone. How should I handle this?

If you have your Zones module enabled, disable it (aka turn it off!). Now open up the actual file - it's located at /includes/modules/shipping/zones.php and find the following line of code:

PHP:
  1. $this->num_zones = 1;

You can see that this controls the number of zones that the Zones module will utilise. Change this number. Let's go for three...

PHP:
  1. $this->num_zones = 3;

Save the file and now enable the module from within your admin section. You should now have three sets of input boxes, for three zones and three lots of shipping/price ratios.

Easy as 123.


Buy Gary A Beer?
Buying me a "beer" helps me to keep my contributions updated and keep this blog alive - and you get a link from my homepage to your site. Cheers!


1 Comment

  1. Thankyou!!!
    You should be feeling a kiss hit your cheek about now.
    Cheers,
    mel

    Comment by Mel — July 26, 2010 @ 2:20 am


Leave a comment

RSS feed for comments on this post · TrackBack URL

Hot 100 osCommerce Shops

View the osCommerce HOT 100These are the best looking, most exceptional osCommerce Stores as voted for by you.

New to osCommerce - get inspiration from these beautiful shops. Reckon your site has what it takes to become a member of the HOT 100? Submit it!