Tax calculator

Solidus comes with a tax calculator that is used to calculate both sales tax (United States-style taxes) and value-added tax (VAT): Spree::Calculator::DefaultTax . Typically, this calculator should be the only tax calculator required by your store.

Using this calculator, all tax rates are represented as a decimal. So, a tax rate of 5% should be represented as 0.05.

Taxes can apply to line items, shipments, or an entire order.

The tax calculator uses its calculable – a Spree::TaxRate – to calculate tax totals.

For more comprehensive documentation about taxes in Solidus, see the Taxation documentation.

If your store's tax requirements are more complicated, you may want to create a custom tax calculator or use an extension like solidus_tax_cloud .

Feedback

Solidus is an open source platform supported by the community. We encourage everyone using Solidus to contribute back to the documentation and the code.

If you’re interested in contributing to the docs, get started with the contributing guidelines. If you see something that needs fixing and can’t do it yourself, please send us an email.