silvershop-core icon indicating copy to clipboard operation
silvershop-core copied to clipboard

Globalised tax calculation

Open jedateach opened this issue 12 years ago • 3 comments

Tax should update automatically, according to country, and what items. Some countries calculations are more complex than others.

Store all tax rates in an array / file, allowing for updates to be made every new version of shop, or for developers to make updates. http://en.wikipedia.org/wiki/Tax_rates_around_the_world

Defining tax classes will allow specific products to be added to those classes, as some countries charge different tax rates for different types of products.

The region restriction system (#94) will help to define tax rates per region.

Class Structure

TaxClass
TaxRate extends RegionRate

TaxClass has many TaxRates.

jedateach avatar Mar 07 '12 02:03 jedateach

Work has been started on this in https://github.com/burnbright/silverstripe-shop-taxframework

jedateach avatar Jan 29 '14 05:01 jedateach

https://github.com/commerceguys/tax

wilr avatar Sep 28 '16 07:09 wilr

@wilr Looks like a great library. I guess tax calculation should be left to a module, or what do you think?

bummzack avatar Sep 28 '16 07:09 bummzack