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?


Reply


4 Posts   1156 Views

Avatar
kread

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 http://naturallybetterfoods.com/). 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.

Avatar
frankmullenger

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.

Avatar
Jedateach

Forum Moderator, 232 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). [url]https://github.com/burnbright/silverstripe-shop[/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]https://github.com/burnbright/silverstripe-shop-shippingframework[/url]

Here is a screenshot of the ZonedShippingMethod:

[url=https://github.com/burnbright/silverstripe-shop/blob/gh-pages/assets/screenshots/zonedshippingmethod.png][/url]

We also have a 'regional data module', which may be of use. It basically supplies a database of countries and sub-regions. https://github.com/burnbright/silverstripe-regionaldata

Avatar
hc

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.