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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

possible to calculate shipping costs based on weight and postcode?


4 Posts   1106 Views


16 January 2013 at 10:41pm Community Member, 8 Posts

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.


17 January 2013 at 9:20am Forum Moderator, 51 Posts

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.


17 January 2013 at 11:35am (Last edited: 17 January 2013 11:36am), Forum Moderator, 227 Posts

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

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: [url][/url]

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.


24 January 2013 at 12:21am Community Member, 6 Posts

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