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.

General Questions /

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

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

Has anyone gotten weight based shipping to work?


Reply


609 Views

Avatar
Digital-Punk.co.uk

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