Mike Jolley
2c915ba961
Allow quantities less than 1, but not 0.
2018-01-05 12:48:24 +00:00
Mike Jolley
7da5780c00
Store unrounded, calc rounded.
2017-12-04 21:40:12 +00:00
urosmil
18e7b25eab
Filter for line items in abstract-wc-order.php ( #17759 )
...
* Filter for line items in abstract-wc-order.php
When creating custom product class there are places where line items is only value that can be handled. This is one of that places causing subtotal values after checkout not to be calculated and displayed.
* Extension to woocommerce_order_get_items filter
This is extension to filter as get_items() is used for different classes and types. This way it would be possible to distinct which type is called for items.
* Removed filtering inside subtotal function
$types parameter is added as parameter for filter inside get_items() function so previous commit is reverted as there is no need for it.
2017-11-23 10:00:03 +00:00
Mike Jolley
128b826791
Merge branch 'master' into tweak/order-screens
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# includes/admin/class-wc-admin-post-types.php
2017-11-15 13:36:13 +00:00
Mike Jolley
93da46e66e
phpcs
2017-11-08 12:20:49 +00:00
Mike Jolley
1f7ecd9fb9
Merge branch 'master' into tweak/order-screens
...
# Conflicts:
# assets/js/frontend/checkout.min.js
2017-11-01 16:52:21 +00:00
Mike Jolley
7c74e77849
handle tax removal in order class
2017-10-31 13:37:57 +00:00
Mike Jolley
bc7484f473
Merge branch 'master' into pr/16959
...
# Conflicts:
# includes/abstracts/abstract-wc-order.php
2017-10-31 13:33:09 +00:00
Mike Jolley
9521a0ba1f
Improve tax class check and handle non-taxable items
2017-10-30 13:23:15 +00:00
Ewout Fernhout
029e93fd4f
Use item tax class rather than product tax class for getter
...
Fixes #17449
2017-10-30 11:04:56 +01:00
Diego Zanella
e93ad155df
Added support for "is_vat_exempt" flag on orders
...
Added check for the presence of the "is_vat_exempt" meta against an order. When present, such information is used during tax calculation to remove the taxes applied to an order.
2017-09-27 18:56:11 +01:00
Mike Jolley
00b8e395f8
Unused variable
2017-09-27 17:12:50 +01:00
Diego Zanella
5e23770d74
Added actions before calculatins order totals and taxes
2017-09-27 16:07:02 +01:00
Mike Jolley
5dcde7b093
Use discounts class for validation logic
2017-09-27 12:54:04 +01:00
Mike Jolley
d08bf4b489
Add option to disable validation when applying coupons
...
Closes #16720
2017-09-06 11:26:34 +01:00
Mike Jolley
2a71a66fc9
Order screen refinements and preview window
2017-09-04 17:42:31 +01:00
Mike Jolley
fe847630b2
Tests when tax is not enabled
2017-08-29 12:38:35 +01:00
Mike Jolley
31a90bdd85
Handle prices including tax calcs
2017-08-25 18:21:27 +01:00
Mike Jolley
4ac1ed84cc
Fallback no coupon data
2017-08-25 16:15:28 +01:00
Mike Jolley
2682d86660
Move comment
2017-08-25 16:09:56 +01:00
Boro Sitnikovski
3cd1bedade
Set coupon virtual state on when initializing virtual coupons during recalculation
2017-08-25 17:07:07 +02:00
Mike Jolley
961c190985
Comments
2017-08-25 14:42:56 +01:00
Mike Jolley
1e65a918d5
Pull meta to apply coupons which do not exist
2017-08-24 17:08:45 +01:00
Claudiu Lodromanean
56e1207903
Merge pull request #16583 from woocommerce/update/apply-fees
...
Improved apply fees
2017-08-23 13:35:18 -07:00
Mike Jolley
a7b697b679
type checks
2017-08-23 14:25:41 +01:00
Mike Jolley
714c4c672e
unused prop
2017-08-23 14:21:42 +01:00
Mike Jolley
be042ee8f3
Set to amount before calc
2017-08-23 12:24:33 +01:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Mike Jolley
e99471c0cd
Removed manual discounts code
2017-08-18 10:36:10 +01:00
claudiulodro
9a47146716
Fix discounts rounding issues
2017-08-15 14:11:25 -07:00
Mike Jolley
be11c1089f
Fix tests
2017-08-14 16:03:50 +01:00
Mike Jolley
7ddfe0703b
Store coupon item taxes
2017-08-14 15:57:51 +01:00
Mike Jolley
b826d02f9b
Split tax across items for discounts
2017-08-11 17:53:49 +01:00
Mike Jolley
3496e8dca4
Match order of cart discount
2017-08-11 16:16:09 +01:00
Mike Jolley
56726deb5a
Fix recalculate_coupons
2017-08-11 13:52:40 +01:00
claudiulodro
28f0431c56
Coupon usage counts
2017-08-10 11:27:13 -07:00
claudiulodro
f1e6fd53bd
Prevent double coupons
2017-08-10 11:14:01 -07:00
Mike Jolley
db87fc68b9
Fix refs
2017-08-10 16:33:21 +01:00
Mike Jolley
30c80c6ad5
Fix tax recalc
2017-08-10 16:22:17 +01:00
Mike Jolley
22d6c789ab
herpa derpa
2017-08-10 15:57:34 +01:00
Mike Jolley
e90fb6d54f
fix discount apply and save
2017-08-10 15:33:01 +01:00
Mike Jolley
cd8fb23884
Add ability to get local item rather than from DB
2017-08-10 14:38:02 +01:00
Mike Jolley
e2599d83c8
Apply methods
2017-08-10 14:22:27 +01:00
Mike Jolley
3dc9f06f6a
Remove fixed discounts correctly
2017-08-10 12:06:03 +01:00
Mike Jolley
06381f28bd
Edit items rather than recreate
2017-08-10 11:38:09 +01:00
claudiulodro
a416ebe09b
It kind-of works.
2017-08-09 14:55:35 -07:00
Mike Jolley
5874fb8715
Type and sum fix
2017-08-09 19:11:02 +01:00
Mike Jolley
c556facd41
Fix percent coupon and display
2017-08-09 19:02:10 +01:00
Mike Jolley
f71dc64d35
Manual discounts and negative taxes
2017-08-09 18:53:10 +01:00
Mike Jolley
2def474421
Order calc
2017-08-09 16:19:10 +01:00