Knowledgebase

Home > Item #241

How do I increase the number of shipping zones and/or bands within them?

Item: #241
Date: 31 Jul 2002
Applies to
v4
v5

Question

I need more than the default number shipping zones and also need more bands within each zone. How can I achieve this with CactuShop?

Answer

First, open up the table tblCactuShopShippingRates. You will see a set of records. Five records are applied to each the zones (see S_Zone column). In v5, there are a different set of records for each shipping method (in the tblCactuShopShippingMethods table) too.

To add another zone, copy the zone 1 records (i.e. all records where S_Zone = 1), paste them into the table and change the zone value to a new value (probably 6 if you're using CactuShop v5). You now have an extra zone. You will also need to name this zone by creating a new language string called Config_Zone6 and adding the number of this new string to the shipping.asp page in the front end (on v4, instead of this language string, create a new config setting called zonearray(4) with the name of this new zone). Finally, on the shipping.asp page (the one in the root of the web, not the includes folder), you will need to change this:

CactuShop v5

change Dim aryZone(5) to Dim aryZone(6)

CactuShop v4

change Dim zonearray(3) to Dim zonearray(4)

and then add to the same file:

aryZone(5) = GetString("Config_Zone5")
(in v5)

zonearray(4) = Application(LICENSENUMBER & "zonearray(4)")
(in v4)

You can add any number of extra shipping zones in this way.

Adding bands is simpler. As you can see, each record in the tblCactuShopShippingRates table represents a band. You can easily add extra band records with new price boundaries in.

To add a new shipping method, first add a new record to the tblCactuShopShippingMethods table. Then just copy all the records from the tblCactuShopShippingRates for shipping method 1 and set the shipping method field on these new records to the ID number of the new method you created. Do this directly into the database table. No code changes are required.

Can't find the answer you need? Click here to open a support ticket.

« Back