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

Tax calculator works at last


Go to End


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