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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


968 Views

Avatar
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