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

Has anyone managed to get an order modifier to work on 2.4?


Go to End


4 Posts   1642 Views

Avatar
wainui

Community Member, 56 Posts

25 August 2010 at 9:17pm

Edited: 25/08/2010 9:26pm

Has anyone managed to get an order modifier to work on 2.4?

I must be missing somoething and would love to hear if anyone actually got one to work.
I am trying in my config

Order::set_modifiers(array("SimpleShippingModifier", "TaxModifier"));
SimpleShippingModifier::set_default_charge(10);
TaxModifier::set_for_country('NZ', 0.125, 'GST', 'exclusive');

But get nothing on frontend and database table remains empty???
Are they even getting added?

I am using the googlecode from jedateach

Avatar
Jedateach

Forum Moderator, 238 Posts

26 August 2010 at 11:47am

Hi wainui,

I've tested out SimpleShippingModifier, and TaxModifier in my (burnbright) development branch, and they appear to work fine. Note that you may need to clear the shopping cart contents after changing the modifiers list. Visiting mysite/shoppingcart/clear will do that for you.

Jeremy

Avatar
wainui

Community Member, 56 Posts

26 August 2010 at 12:59pm

thank you, thank you, thank you...

I cannot believe that I have wasted so much time to get this to work and simply clearing the shopping cart did the trick.

Thanks heaps, really appreciate it.

Mike

Avatar
dfnetchii

Community Member, 10 Posts

28 September 2010 at 1:48pm

hi wainui

can you post a link to the trunk your using? I have tried the latest burnbright but it doesnt like the values you have posted. I get an error.

Cheers