Jump to:

2088 Posts in 1007 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Tax calculator works at last

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: 775 Views
  • stallain
    Community Member
    61 Posts

    Tax calculator works at last Link to this post

    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.

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.