Commit Graph

23 Commits

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