Gerhard
560a49a3b2
Use a cleaner approach to prevent loading cart from session to call itself.
2018-10-30 11:58:39 +02:00
Gerhard
b808c70c44
Do not populate cart from session when ordering again and using the get_cart in a hook, the order again functionality already loads the cart from session, which get_cart does as well causing infinite loops.
2018-10-30 11:52:00 +02:00
Boro Sitnikovski
8c6226e7bd
Introduce a new filter for 'get_cart_contents'
2018-10-29 21:08:22 +01:00
claudiulodro
874ee8895d
Revert show shipping behavior change
2018-10-24 13:09:32 -07:00
claudiulodro
84e5de5eef
Add address_1 to shipping packages info
2018-10-03 14:31:35 -04:00
andgrankin
526e3826e8
Update documentation
...
Update documentation for methods set_coupon_discount_totals and set_coupon_discount_tax_totals
2018-09-26 22:43:17 +07:00
Gerhard Potgieter
e69900a4d6
Shipping totals should show even if calculator is disabled.
2018-09-17 13:43:32 +02:00
Peter Fabian
cf3f54ec64
Made tax display in cart depend on whether customer is tax exempt.
2018-09-06 17:40:21 +02:00
Nico Mollet
cc9e904cfc
Standardize case of button View cart
...
Hello,
In this WC_Cart class, there are two string for `View cart`.
Line 1037 and line 1065.
The other `button wc-forward` buttons are first character uppercase only.
The PR changes `View Cart` to `View cart`.
Thank you
2018-08-15 09:13:59 +02:00
Boro Sitnikovski
1c4ef011d2
Add new filter to allow modifications of cart contents
2018-08-14 18:34:52 +02:00
maciekpaprocki
db403b2805
Wrong php doc for get_cart_contents()
2018-07-01 18:12:04 +01:00
Mike Jolley
d394dec5f2
Merge pull request #20591 from yratof/tweak/issue-20590
...
Wrapped 'FREE' with a filter to allow different use cases
2018-06-26 13:43:44 +01:00
Andrew Lazarus
d9c031d8c6
Removed whitespace to pass travis check
2018-06-25 13:24:07 +02:00
Andrew Lazarus
c9e0055bdd
Refactored get_cart_shipping_total()
...
Refactored to pass all routes through filter, renamed the filter to match the function.
2018-06-25 11:17:08 +02:00
Andrew Lazarus
7eac354d3b
Added $this to the FREE filter to allow interaction with cart object
2018-06-22 16:03:57 +02:00
Andrew Lazarus
b29036c08d
Updated filter naming convention for Free!
2018-06-22 16:00:28 +02:00
Rodrigo Primo
e6c1ab38a8
Fix PHPCS error
2018-06-22 10:31:42 -03:00
Andrew Lazarus
38b904a09a
Wrapped 'FREE' with a filter to allow different use cases for no shipping rate returning
2018-06-20 15:12:27 +02:00
Mike Jolley
5e6405b650
Merge branch 'master' into update/13359
2018-06-15 15:12:12 +01:00
Mike Jolley
e92463632b
Held stock qty check for pay page
2018-06-08 16:58:33 +01:00
Mike Jolley
d76474789d
variable name
2018-06-08 16:30:58 +01:00
Mike Jolley
e38eccf828
Check pending orders even when hold stock is disabled
2018-06-07 17:42:23 +01:00
Mike Jolley
67dc3ea80a
Hide rates when there are no rates and calculator is off
2018-06-01 21:28:21 +01:00
Mike Jolley
87b077e57a
Check billing email is posted before using
...
Closes #20178
2018-05-23 15:04:03 +01:00
Mike Jolley
9c2edf4983
Moves around some includes so they are included before the autoloader needs to find them
2018-05-22 12:57:48 +01:00
Claudio Sanches
84c047dad1
Fixed includes/class-wc-cart.php PHPCS violations
2018-03-16 15:08:52 -03:00
Mike Jolley
1b905b2975
Merge pull request #19331 from woocommerce/add/coupon-wildcard-email
...
Add wildcard email support for coupons.
2018-03-13 10:05:06 +00:00
Gerhard Potgieter
01775a4443
Missing space
2018-03-13 07:34:47 +02:00
Claudio Sanches
768a21e788
Check if product has weight before calculate weigth total in cart
...
Closes #19347
2018-03-12 12:54:00 -03:00
Gerhard Potgieter
3910fbc270
Update method name
2018-03-09 11:00:57 +02:00
Gerhard Potgieter
1840d594ee
Add wildcard email support for coupons.
...
Co-authored-by: l4ll3x
2018-03-09 10:57:12 +02:00
Mike Jolley
46862deb17
wc_get_cart_item_data_hash function
2018-03-05 19:57:57 +00:00
Mike Jolley
1901493eee
Should be pulic.
2017-12-15 15:18:17 +00:00
Mike Jolley
01871fd2c8
Add getter for tax_display_cart variable, with filter
2017-12-15 13:39:35 +00:00
James Allan
82c282e83a
Clone the child objects rather than instantiating new objects.
...
When cloning the cart, the current fees and session objects should
remain the same but have new pointers.
2017-12-08 21:15:45 +10: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
Boro Sitnikovski
d0f9aaa99a
Merge branch 'master' into tweak/decouple-cart-template-methods
2017-12-07 20:16:08 +01:00
Boro Sitnikovski
588c5f3779
Change method name
2017-12-07 15:53:16 +01:00
Boro Sitnikovski
145d47c580
Decouple cart templating methods from WC_Cart class
2017-12-05 13:00:21 +01:00
Mike Jolley
17095a4011
Totals should be set to store DP setting.
2017-12-04 20:38:14 +00:00
JeroenSormani
b96fea3e47
Add quantity arg to woocommerce_add_cart_item_data filter
2017-11-21 16:01:23 +01:00
Mike Jolley
8b02185596
Merge pull request #17817 from JeroenSormani/exclude-virtual-from-shipping-tax
...
Exclude virtual tax classes from calcluation for shipping taxes
2017-11-21 13:21:13 +00:00
JeroenSormani
14e5bcd51d
Exclude virtual tax classes from calcluation for shipping taxes
2017-11-20 20:14:23 +01:00
Mike Jolley
78466a6665
Merge pull request #17599 from JPry/allow_clone_cart
...
Allow for cloning the WC_Cart object
2017-11-10 12:02:59 +00:00
Claudio Sanches
9979e4b3e5
Merge pull request #17589 from woocommerce/fix/17585
...
get_total_ex_tax should exclude fee taxes
2017-11-08 19:05:23 -02:00
Jeremy Pry
0e43551535
Move inline comment into the docblock
2017-11-08 10:18:08 -05:00
Jeremy Pry
cf5bd606c6
Rename register_hooks() to init()
2017-11-08 10:17:52 -05:00
Mike Jolley
827d133cb2
Improve tests
2017-11-08 13:54:33 +00:00
claudiulodro
0e983c4fe9
Allow removing coupons even if coupons disabled
2017-11-07 10:33:11 -08:00
Mike Jolley
c6c6a1e4b3
Grab all taxes individually
2017-11-06 16:34:45 +00:00