# -*- coding: utf-8 -*-
""" A basic Tax calculator: it simply adds a taxes field to the *order*, and makes it a fixed percentage of the subtotal (10%)
Obviously, this is only provided as an example, and anything serious should use a more dynamic configuration system, such as settings or models to hold the tax values... """
""" Add a field on cart.extra_price_fields: """
""" This adds a 10% tax cart modifier, calculated on the item's base price, plus any modifier applied to the cart item *so far* (order matters!).
Make sure the moment you apply taxes comply with your local regulations! Some countries insist that taxes are calculated after/before discounts, and so forth """
|