Jump to:

2082 Posts in 1002 Topics by 452 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Tax Modifier Fix- eCommerce 0.5.2 Trunk

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: 1366 Views
  • boombox
    Avatar
    Community Member
    44 Posts

    Tax Modifier Fix- eCommerce 0.5.2 Trunk Link to this post

    Hi, I have the Tax Modifier working with the latest verision of eCommerce
    The current Tax Modifier code in the latest eCommerce Module (0.5.2 Trunk) has a bug in it - causing the Tax Modifier not to show
    Use the attached file below plus
    To add a modifier to your order structure, you need to execute this code in your _config.php file :

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

    TaxModifier::set_for_country("CountryCode",0.xxx,"Name","exclusive");

    // UK
    // TaxModifier::set_for_country("UK",0.175,"VAT","exclusive");
    // NZ
    //TaxModifier::set_for_country("NZ",0.125,"GST","exclusive");

    You will also need the Payment Module to set up your preffered payment gateway
    Happy Billing!

    Attached Files
  • Kiwipearls
    Avatar
    Community Member
    34 Posts

    Re: Tax Modifier Fix- eCommerce 0.5.2 Trunk Link to this post

    I'm sorry, but which directory do we stick the php file?

  • Jedateach
    Avatar
    Forum Moderator
    227 Posts

    Re: Tax Modifier Fix- eCommerce 0.5.2 Trunk Link to this post

    Hi Kiwipearls,

    You should be able to put it into your mysite/code folder.

    FYI: there are far newer versions of ecommerce than 0.5.2. eg: http://ss-shop.org is at 0.8.3

    Jeremy

  • Kiwipearls
    Avatar
    Community Member
    34 Posts

    Re: Tax Modifier Fix- eCommerce 0.5.2 Trunk Link to this post

    Hi Ty for that.

    I am using an earlier version of ecommerce...8.1 I think and can't get the tax to work.

    I will try this with my versions and see what happens.

    KP

  • Kiwipearls
    Avatar
    Community Member
    34 Posts

    Re: Tax Modifier Fix- eCommerce 0.5.2 Trunk Link to this post

    Yey - this worked on my version of Ecommerce.

    I see tax, glorious tax. Woot.

    1366 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.