Commit Graph

15 Commits

Author SHA1 Message Date
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