Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Has anyone managed to get an order modifier to work on 2.4?

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

Page: 1
Go to End
Author Topic: 966 Views
  • wainui
    Avatar
    Community Member
    56 Posts

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

    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

  • Jedateach
    Avatar
    Forum Moderator
    227 Posts

    Re: Has anyone managed to get an order modifier to work on 2.4? Link to this post

    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

  • wainui
    Avatar
    Community Member
    56 Posts

    Re: Has anyone managed to get an order modifier to work on 2.4? Link to this post

    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

  • dfnetchii
    Avatar
    Community Member
    10 Posts

    Re: Has anyone managed to get an order modifier to work on 2.4? Link to this post

    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

    966 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.