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

Tax Modifier Fix- eCommerce 0.5.2 Trunk


Go to End


5 Posts   2349 Views

Avatar
boombox

Community Member, 44 Posts

6 June 2009 at 12:40pm

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!

Avatar
Kiwipearls

Community Member, 34 Posts

7 May 2012 at 4:41pm

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

Avatar
Jedateach

Forum Moderator, 238 Posts

7 May 2012 at 5:12pm

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

Avatar
Kiwipearls

Community Member, 34 Posts

8 May 2012 at 12:21pm

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

Avatar
Kiwipearls

Community Member, 34 Posts

8 May 2012 at 12:26pm

Yey - this worked on my version of Ecommerce.

I see tax, glorious tax. Woot.