close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Shipping based on Postcode

Thread began 4/11/2011 6:11 am by Suggs | Last modified 4/12/2011 1:38 pm by Jason Byrnes | 714 views | 1 replies |


Shipping based on Postcode

Hi Folks,

Im wanting to set a range of shipping charges based on postcodes in the UK.
Effectively it will be:
Zone 1 - X shipping charge
Zone 2 - Y Shipping Charge
Zone 3 - Everything else

I want to be able to drop in the postcodes to the relevant zones and have the shipping set the relevant charge in the basket.


Sign in to reply to this post

Jason ByrnesWebAssist

you will need to create a database table to hold the Zone 1 and Zone 2 zip codes, and set the zones:

zoneID - Primary Key, Auto Inc.
zonePostCode - varchar - stores the post code
zoneName - varchar - use either 1 or 2 to set the post code to the corresponding zone.

On the confirm page, create a recordset that will lookup the post code that is entered, name the recordset "zoneLookup".

Set the filtering section of the recordset to:
zonePostCode =
Form Variable eCartCheckoutForm_shipping_postcode

Next, in the server behaviors panel, click the plus button and select eCat -> General -> Set Session Value.

Set the trigger to Recordset zoneLookup not empty
set the name to "shipZone"
click the lightning bolt next to value and select the zoneName column from the recordset.

add a second set session value behavior, for this one:
Set the trigger to Recordset zoneLookup is empty
set the name to "shipZone"
set the value to 3

Now you will need to edit the eCart object to create the shipping change, you will need to create 3 of them.

For each of them, use the trigger:
Based on session variable value

the session variable to use will be the shipZone session which will have the value of 1, 2 or 3

and set the calculation to be the flat rate shipping charge that corresponds to the zone.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...