Commit Graph

40 Commits

Author SHA1 Message Date
Mike Jolley 59c51fbebe Only clear persistent cart if persistent cart is enabled 2019-03-22 11:44:27 +00:00
Mike Jolley ac29feac7c header_register_callback to set cookies before headers are sent (if supported) 2019-02-05 13:03:16 +00:00
Mike Jolley d004150d71 Only set and unset cookies if the values change 2019-02-05 13:02:52 +00:00
Mike Jolley 40694118fc Merge branch 'pr/21050' 2019-01-31 15:47:52 +00:00
Mike Jolley 581d3c3195 Merge branch 'pr/22290' 2019-01-22 16:05:56 +00:00
Mike Jolley 11b172d583 phpcs 2019-01-22 16:04:16 +00:00
Mike Jolley 9b6694341f Fix code and improve indenting 2019-01-22 16:01:17 +00:00
Alessandro Morelli be0f4b45e3 Fix coding standard violations 2019-01-21 16:54:49 +01:00
Kathy Daring 1e51bf3e69 switch ordered_again hook to ref_array 2019-01-11 12:14:29 -05:00
claudiulodro f9b4cced41 Correct number of items added logic in notif 2019-01-07 11:44:13 -08:00
Mike Jolley 6e7e96c624 Check stock status before repopulating cart 2019-01-03 15:30:26 +00:00
Mike Jolley 6c9f9ea424 phpcs 2019-01-03 15:30:21 +00:00
Alessandro Morelli a4c5a34e99 Add a new integration hook to allow removal of cart items when the cart is loaded from the session without triggering preset notices. 2018-12-22 10:25:37 +01:00
Manos Psychogyiopoulos 059d803484 Rename 'woocommerce_add_cart_item' to 'woocommerce_add_order_again_cart_item' 2018-11-16 15:27:30 +02:00
Manos Psychogyiopoulos 520a7e1a27 Pass order-again items to 'woocommerce_ordered_again' action 2018-11-16 15:25:35 +02:00
Manos Psychogyiopoulos c44809422b Pass order-again cart contents to 'woocommerce_ordered_again' action 2018-11-16 15:23:08 +02:00
Gerhard 560a49a3b2 Use a cleaner approach to prevent loading cart from session to call itself. 2018-10-30 11:58:39 +02:00
Boro Sitnikovski 82f3d6f3fb Remove 'order_again' query string to avoid multiple re-orders 2018-09-26 09:39:48 +02:00
Boro Sitnikovski a1bec3f200 Update comment style 2018-08-14 21:30:02 +02:00
Boro Sitnikovski 1c4ef011d2 Add new filter to allow modifications of cart contents 2018-08-14 18:34:52 +02:00
Florian Ludwig 0f6f6814ad Moves cart hash calculation to WC_Cart class 2018-08-14 18:08:55 +02:00
Mike Jolley a4e0ba2958 feedback 2018-06-26 13:49:57 +01:00
Mike Jolley 759b99ad14 Order again and merge cart handling 2018-06-22 13:32:45 +01:00
Mike Jolley 0e4d958571 Prime caches 2018-05-01 12:39:18 +01:00
Mike Jolley eb3b1dbee6 Add dummy product to cart when viewing preview 2018-04-11 13:19:39 +01:00
Claudio Sanches 8effbb11bd Fixed includes/class-wc-cart-session.php PHPCS violations 2018-03-16 14:45:28 -03:00
Mike Jolley 46862deb17 wc_get_cart_item_data_hash function 2018-03-05 19:57:57 +00:00
Sofyan Sitorus 7d04431571 Add contional check to compare cart item date_modified with product date_modified 2018-03-05 19:42:11 +00:00
Mike Jolley 0df57524a7 Added woocommerce_persistent_cart_enabled filter 2018-02-19 16:36:26 +00:00
Gerhard Potgieter 961a70965d PHPCS Fixes 2017-12-05 08:48:35 +02:00
Gerhard Potgieter ccb54faf0b When getting a cart from a session and there are contents as well as contents in the persistant cart, merge the two carts to avoid loosing the persistant cart content. 2017-12-05 08:45:52 +02: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
Jeremy Pry cf5bd606c6 Rename register_hooks() to init() 2017-11-08 10:17:52 -05:00
Mike Jolley ffcf998a59 calculate_totals totals running too often 2017-11-07 20:10:13 +00: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
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 56c0c1e259 remove old set 2017-08-22 16:41:03 +01:00
Mike Jolley a70e9bbf9b Add product to cart on each iteration for BW compat.
Closes #16568
2017-08-22 16:39:51 +01:00
Mike Jolley a55716eed4 WC_Cart_Session 2017-08-18 10:54:41 +01:00