Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Claudio Sanches
1ece5e1310
Introduced woocommerce_sort_fees_callback filter
2019-07-31 18:31:49 -03:00
Claudio Sanches
c904894035
Fixed includes/class-wc-cart-fees.php PHPCS violations
2018-03-16 14:43:53 -03:00
Mike Jolley
b4bfe6303f
Keep public method around
2017-12-08 16:24:04 +00:00
James Allan
83de162adb
Only remove fees which belong to the cart which is being emptied/reset
...
If there are multiple instances of WC_Cart and therefore multiple
instances of WC_Cart_Fees, if 1 cart is emptied and
woocommerce_cart_emptied is triggered, all instances of WC_Cart_Fees
will trigger remove_all_fees, removing all the fees from all the carts.
2017-12-08 21:15:08 +10:00
Jeremy Pry
cf5bd606c6
Rename register_hooks() to init()
2017-11-08 10:17:52 -05:00
Jeremy Pry
0cca83ff83
Add separate methods to register hooks
...
This facilitates cloning the cart without registering additonal hooks unnecessarily.
2017-11-03 15:49:45 -04:00
JeroenSormani
f244b178d3
Allow tax_class slugs when adding a fee
2017-10-13 18:06:23 +02:00
Mike Jolley
f1f56423c0
Docblocks
2017-09-27 17:16:33 +01:00
Mike Jolley
40040f534b
These classes require WC_Cart objects
2017-09-27 17:12:45 +01:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Mike Jolley
c41fb8f00c
docblock
2017-08-22 16:31:45 +01:00
Mike Jolley
00cb48a5fe
Pass through to order
2017-08-22 16:20:23 +01:00
Mike Jolley
367f08d79f
Negative fee logic for cart
2017-08-22 16:12:37 +01:00
Mike Jolley
57865204aa
Cart fees class and legacy
2017-08-22 15:17:58 +01:00