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 calculator works at last


Go to End


1426 Views

Avatar
stallain

Community Member, 68 Posts

30 October 2009 at 4:00am

Edited: 01/11/2009 9:42pm

Maybe this will help.
I spent several hours trying to understand why I couldn't get the following code to work :
TaxCalculator::set_for_country("FR", 0.196, "TVA", "inclusive"); (in _config.php)
I looked for a solution in the forum without finding it.
And finally, I got it ! I hadn't filled in the "administrator's country" field, in the security tab of the cms.
Now that the cms knows I'm French, the VAT is OK on my checkout page...

EDIT : it works if you're working on wamp (local server), and if you're connected.