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:

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   1289 Views


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"));
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


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.



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.



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.