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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Has anyone gotten weight based shipping to work?

Go to End


Digital Punk

Community Member, 51 Posts

15 July 2009 at 10:43pm

Has anyone gotten weight based shipping to work?

It looks like you need to use an array to pass the weight and price values, however there is no example code that demonstrates how it should be done?

* Calculates the shipping cost of an order, by taking the products
* and calculating the shipping weight, based on an array set in _config
* ASSUMPTION: The total order weight can be at maximum the last item
* in the $shippingCosts array.

Any clues / ideas?

Thanks in advance