Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How can i add more than one Zone Countries in module "Zone rates"?


Recommended Posts

Hello everyone,


i have installed the module "Zone Rates" under "catalog/includes/modules/shipping/" in the admin pages.

I have v2.3.1.


Since the module comes with support for 1 zone, i opened the file "catalog/includes/modules/shipping/zones.php"

and i edited the line in in the zones constructor that defines $this->num_zones = 3; (because i would like to support 3 zones)


Then in the admin pages i noticed that some new input fields appeared

but only under "Zone 1 Handling Fee".


But i would like to add more than one Zone Countries under "Zone 1 Countries" title.

As i can see no new inputs were added in the admin page. I would expect 3 new inputs ($this->num_zones = 3; )

under this section but nothing.


I have attached a jpg file of how the zones rates module appears to me.


I would be glad if someone could help me and tell me what else i shall do in order

to add more than one Zone countries.


Thanks, in advance


Edited by g_p_java
Link to comment
Share on other sites

Remove the module and then reinstall it.


 By default, the module comes with support for 1 zone.  This can be
 easily changed by editing the line below in the zones constructor
 that defines $this->num_zones.
 Next, you will want to activate the module by going to the Admin screen,
 clicking on Modules, then clicking on Shipping.  A list of all shipping
 modules should appear.  Click on the green dot next to the one labeled
 zones.php.  A list of settings will appear to the right.  Click on the
 Edit button.
 backup of your shipping settings somewhere at all times.
 If you want an additional handling charge applied to orders that use this
 method, set the Handling Fee field.
 Next, you will need to define which countries are in each zone.  Determining
 this might take some time and effort.  You should group a set of countries
 that has similar shipping charges for the same weight.  For instance, when
 shipping from the US, the countries of Japan, Australia, New Zealand, and
 Singapore have similar shipping rates.  As an example, one of my customers
 is using this set of zones:
1: USA
2: Canada
3: Austria, Belgium, Great Britain, France, Germany, Greenland, Iceland,
   Ireland, Italy, Norway, Holland/Netherlands, Denmark, Poland, Spain,
   Sweden, Switzerland, Finland, Portugal, Israel, Greece
4: Japan, Australia, New Zealand, Singapore
5: Taiwan, China, Hong Kong
 When you enter these country lists, enter them into the Zone X Countries
 fields, where "X" is the number of the zone.  They should be entered as
 two character ISO country codes in all capital letters.  They should be
 separated by commas with no spaces or other punctuation. For example:
1: US
2: CA
 Now you need to set up the shipping rate tables for each zone.  Again,
 some time and effort will go into setting the appropriate rates.  You
 will define a set of weight ranges and the shipping price for each
 range.  For instance, you might want an order than weighs more than 0
 and less than or equal to 3 to cost 5.50 to ship to a certain zone.
 This would be defined by this:  3:5.5
 You should combine a bunch of these rates together in a comma delimited
 list and enter them into the "Zone X Shipping Table" fields where "X"
 is the zone number.  For example, this might be used for Zone 1:
1:3.5,2:3.95,3:5.2,4:6.45,5:7.7,6:10.4,7:11.85, 8:13.3,9:14.75,10:16.2,11:17.65,
 The above example includes weights over 0 and up to 15.  Note that
 units are not specified in this explanation since they should be
 specific to your locale.
 At this time, it does not deal with weights that are above the highest amount
 defined.  This will probably be the next area to be improved with the
 module.  For now, you could have one last very high range with a very
 high shipping rate to discourage orders of that magnitude.  For
 instance:  999:1000
 If you want to be able to ship to any country in the world, you will
 need to enter every country code into the Country fields. For most
 shops, you will not want to enter every country.  This is often
 because of too much fraud from certain places. If a country is not
 listed, then the module will add a $0.00 shipping charge and will
 indicate that shipping is not available to that destination.
 It appears that the osC shipping system automatically rounds the
 shipping weight up to the nearest whole unit.  This makes it more
 difficult to design precise shipping tables.  If you want to, you
 can hack the shipping.php file to get rid of the rounding.
 Lastly, there is a limit of 255 characters on each of the Zone
 Shipping Tables and Zone Countries.




Edited by geoffreywalton

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile


Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.


For links mentioned in old answers that are no longer here follow this link Useful Threads.


If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

I think the MultiGeoZone MultiTable Shipping Module would work for you.


see: http://addons.oscommerce.com/info/8136


It allows you to set up (as the name suggests) multiple zones and each zone can have multiple tables.

After a few hiccups (mistakes on my part) I got is working.

On my test site it has been very stable and it works well.


I recommend it - I think it is the answer to your question.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...