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.

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

How to add shipping cost in eccomerce


Go to End


7 Posts   3135 Views

Avatar
Webdoc

Community Member, 349 Posts

26 November 2009 at 8:46am

wanna add fixed shipping cost to ecommerce module how is it possible.

also some client tell taht if they buy one product the other comes with it in order where can be the error??

THanks

Avatar
novaweb

Community Member, 116 Posts

1 December 2009 at 5:18pm

Hey Dude,

Put this in your mysite/_config.php file.

SimpleShippingCalculator::set_charges(6);

Avatar
Simmo

Community Member, 12 Posts

1 December 2009 at 9:56pm

I have just been trying to figure this in 0.6 beta, and I used the following to get it working...

Order::set_modifiers(array(
'SimpleShippingModifier'
));

SimpleShippingModifier::set_default_charge(6);

Avatar
lanks

Community Member, 61 Posts

2 December 2009 at 9:30am

Thanks for this Simmo, have been trying to get this to work for aages.

Avatar
ninjastu

Community Member, 5 Posts

28 January 2010 at 1:17am

Is there any way of adding shipping for multiple items for example if there are two items in the cart adjust shipping to £10 and if there are 6 items + change shipping to £8?

Stuart

Avatar
lanks

Community Member, 61 Posts

28 January 2010 at 8:55am

Off the top of my head I'd say the best way would be to look in to the shippingmodifier code and then create your own shippingmodifier with these features. I don't think it would be too hard to do.

Avatar
ninjastu

Community Member, 5 Posts

28 January 2010 at 11:17pm

Thanks, I'm sure it is pretty simple but I am in no way a programer, can any body help with the code or point me in the direction of how to create my own modifier code?

Stuart