Commit Graph

12 Commits

Author SHA1 Message Date
Mike Jolley 33706cc1fb Find tax rate fix 2011-11-29 00:20:51 +00:00
Mike Jolley e43ff6dfb4 More tax system updates
This correctly handles tax for countries/inc or ex tax inclusive
prices/rounding.

Coupons still require more testing, and we need a better way to store
discount amounts. PayPal also needs tweaking to pass the correct totals
when using inc. prices.
2011-11-21 11:33:46 +00:00
Mike Jolley fe5651fff5 Tax rewrite to deal with coupons before tax calculations
Needs a lot of testing - esp to detect rounding errors.
2011-11-19 20:59:16 +00:00
Mike Jolley 869f413e9b New cart code adapted from Lucas Starks pull request.
Cart items are indexed by an md5 hash rather than numeric keys so we
can add custom data to cart items.

Plugins can hook in and add meta data, load it, and display it. The
adjust_price() function lets you adjust a products price too since its
loaded and stored in the cart on page load.

All works like a dream, all thats left is to show the values on the
cart page, and store them in the order item meta. Order item meta does
need a slight change though, to allow data with the same keys. Working
on that next.
2011-11-06 13:45:18 +00:00
Mike Jolley ba9b035c65 Fixes to tax system to work with VAT exemption 2011-10-08 11:39:26 +01:00
Mike Jolley 5630cecf4e Small cleanup 2011-10-06 00:23:26 +01:00
Mike Jolley c18f533b39 Overhauled classes and removed singletons 2011-09-06 12:11:22 +01:00
Mike Jolley 6913726cd5 Better tax system 2011-08-24 17:23:04 +01:00
Mike Jolley 1472315f1b Changed the way product data is stored 2011-08-18 00:42:07 +01:00
Mike Jolley 674927d3d5 button classes, tax rounding etc 2011-08-12 11:22:07 +01:00
Mike Jolley fc7b3d2265 Tax issues and fixes 2011-08-11 23:39:02 +01:00
Mike Jolley 0425a68eca WooCommerce conversion and update 2011-08-10 18:11:11 +01:00