Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

possible to calculate shipping costs based on weight and postcode?

Go to End

4 Posts   1684 Views


Community Member, 8 Posts

16 January 2013 at 10:41pm

is there any way to calculate shipping costs based on product weight and customer's postcode? i've seen this done in wordpress sites (an example being is there anything that can do the same for silverstripe? i've been working on a site (a programmer is doing all the silverstriping of it) and he's put in a module that allows me to put in weights per product, but it doesn't allow for postcode variations. This means a carton of wine going to a customer 5km away costs the same in shipping as if it was going to someone on the other side of the country. i'm hoping there's a better way?
thanks very much.


Forum Moderator, 53 Posts

17 January 2013 at 9:20am

I've done this as a shipping module for a client using SwipeStripe in the past. Not sure what ecommerce module you are using but the general approach we took:

Save weight for products/product variants in one unit (grams in our case)
Set up some countries and regions to ship to
Set up shipping rates for each country/region that also had a weight bracket
At checkout get the destination country/region, calculate the weight of the order and pick the correct shipping rate accordingly

So there is a little bit of work involved but that approach should work with most SilverStripe ecommerce modules I think as they all probably have a way of setting shipping rates and picking shipping rates at checkout.


Forum Moderator, 238 Posts

17 January 2013 at 11:35am

Edited: 17/01/2013 11:36am

The SilverStripe 'shop' module also allows such shipping calculations, with it's latest improvements (on develop branch).

We currently have available two basic shipping methods: TableShipping and ZonedShipping, which are both flexible and capable of what you are wanting to achieve. The shipping framework is currently a separate module:

Here is a screenshot of the ZonedShippingMethod:

We also have a 'regional data module', which may be of use. It basically supplies a database of countries and sub-regions.


Community Member, 6 Posts

24 January 2013 at 12:21am

thanks very much Frank and Jedateach,i really appreciate your thoughts and help with this.