Commit Graph

22450 Commits

Author SHA1 Message Date
claudiulodro 5e8f957f3a Formatting 2017-08-01 12:52:12 -07:00
Claudiu Lodromanean 46090bca0d Merge pull request #16302 from bekarice/fix/deprecation-notice-product-type
Fix PHP deprecation notice
2017-08-01 10:55:48 -07:00
Claudiu Lodromanean 8fafaac16d Merge pull request #16311 from woocommerce/fix/16235
Defer re-calc when adding grouped products to cart
2017-08-01 10:54:33 -07:00
Claudiu Lodromanean b6368348aa Merge pull request #16307 from woocommerce/fix/16236
Passing by reference breaks global functions in grouped template
2017-08-01 10:47:48 -07:00
opportus f448c692ca Fixes #16010
Allows single SD item having a `@context`
2017-08-01 14:32:40 +02:00
Mike Jolley 4a0ea16eda Defer re-calc when adding grouped products to cart
Closes #16235
2017-08-01 13:36:46 +02:00
Mike Jolley 2b9c8677eb Passing by reference breaks global functions in grouped template
Fixes #16236
2017-08-01 08:44:16 +02:00
claudiulodro 036d709b19 Use item subtotal for discount item price 2017-07-31 14:44:51 -07:00
Beka Rice e78b4d4d1e Fix PHP deprecation notice 2017-07-31 17:16:08 -04:00
claudiulodro 8fac8fc80b Cleanup 2017-07-31 13:18:39 -07:00
claudiulodro 43cbcd04ef Remove extra calcs and populate item totals 2017-07-31 11:48:34 -07:00
Marian Kadanka 6183a840db Fix product category archives not being cached due to inconsistency
Wordpress function get_queried_object_id() returns conflicting IDs
for pages and product category archives which in current
implementation results in product category archives possibly not
being cached if their tag ID conflicts with Woocommerce's special
page IDs - cart, checkout, etc.

Let's switch to implementation using is_page() to address this.
2017-07-31 20:47:19 +02:00
Claudiu Lodromanean 95ffa441e0 Merge pull request #16290 from woocommerce/feature/15500-1
Soft deprecated WC_Cart->coupon_applied_count
2017-07-31 09:16:33 -07:00
Claudiu Lodromanean 5fb33e3aaa Merge pull request #16289 from woocommerce/feature/15500
Use WC_Cart_Totals to calculate WC_Cart totals
2017-07-28 14:41:17 -07:00
claudiulodro e1fad0d7eb Bring up to date with master 2017-07-28 14:27:19 -07:00
Claudio Sanches 77855f9d07 Soft deprecated WC_Cart->coupon_applied_count 2017-07-28 18:12:56 -03:00
Claudio Sanches cad30e9613 Merge pull request #16288 from willgorham/patch-1
Fix script 'async' property typo in WP_Admin_Help
2017-07-28 17:44:03 -03:00
Claudio Sanches b8305f150e Use WC_Cart_Totals to calculate totals 2017-07-28 17:41:46 -03:00
Claudio Sanches de52221004 Fixe fatal error while trying to sum an empty array 2017-07-28 17:38:43 -03:00
claudiulodro d9c2b2cdea Cleanup 2017-07-28 13:38:12 -07:00
claudiulodro 8dc0641149 Remove uneeded parse args 2017-07-28 13:31:53 -07:00
claudiulodro b5e5f035fb Clean up 2017-07-28 13:27:19 -07:00
Will G 3a6a8872f3 Fix script 'async' property typo in WP_Admin_Help 2017-07-28 16:05:06 -04:00
Claudiu Lodromanean eb64d59343 Merge pull request #16203 from woocommerce/feature/discounts-class-16201
Manual discounts
2017-07-28 13:01:42 -07:00
claudiulodro e335724c50 Finalize product query 2017-07-28 11:59:44 -07:00
claudiulodro a721ab064e Update WC_Discount tests 2017-07-28 09:59:24 -07:00
Mike Jolley 0839f5716b phpcs 2017-07-28 17:49:39 +01:00
Mike Jolley c16df62b54 Fix tests and bootstrap 2017-07-28 17:43:08 +01:00
claudiulodro e67ae14739 Tests are working again! 2017-07-28 08:53:23 -07:00
Mike Jolley 64e04c614a fix variable in calculate_discounts 2017-07-28 16:43:51 +01:00
Mike Jolley 14717d4ebb fix call to apply_coupon_fixed_cart_remainder 2017-07-28 16:33:02 +01:00
Mike Jolley c7cb46a524 Fix array shift usage 2017-07-28 16:31:11 +01:00
Mike Jolley 9170b61a1c fix in cents logic direction. 2017-07-28 16:17:57 +01:00
Mike Jolley e23e55bb27 Methods for getting specific totals and discounts whilst keeping storage in a single array 2017-07-28 15:35:41 +01:00
Mike Jolley 51fbb1aec3 set_items_from_cart 2017-07-28 13:02:39 +01:00
Mike Jolley 9b458f9368 Remove private validation methods from coupon and use discounts class 2017-07-28 12:20:49 +01:00
Mike Jolley 5ed2f147a7 woocommerce_coupon_is_valid 2017-07-28 11:51:57 +01:00
Mike Jolley f57c6dc2ee Speed up tests 2017-07-28 11:42:54 +01:00
claudiulodro b56b87c97b Good progress on wc_discount and manual discount handling 2017-07-27 14:08:38 -07:00
claudiulodro 3a11e345a6 Fix some things and hook up discount class 2017-07-27 11:08:22 -07:00
claudiulodro 409320482a Get everything working again 2017-07-27 10:37:20 -07:00
claudiulodro 0aa9894bae Merge remote-tracking branch 'origin/feature/discounts-class' into HEAD 2017-07-27 09:32:08 -07:00
Claudiu Lodromanean 74d33bd510 Merge pull request #16275 from woocommerce/feature/discounts-class-totals-refactored
Cart totals class and calculation improvements
2017-07-27 09:01:55 -07:00
claudiulodro b2e42fb55f Add visibility test 2017-07-27 08:57:44 -07:00
Mike Jolley fcfa510445 Fixed totals tests 2017-07-27 16:57:05 +01:00
Mike Jolley 0abdee5ca9 Merge pull request #16278 from woocommerce/feature/deprecated-coupon-validation
Deprecated WC_Coupon validation methods
2017-07-27 16:21:05 +01:00
Mike Jolley decda1edf6 Merge pull request #16168 from webspecnick/add-filter-to-export-product-args
Add a filter to arguments passed to wc_get_products during prepare_data_to_export()
2017-07-27 15:58:39 +01:00
Mike Jolley f47bb39a06 Merge pull request #15479 from woocommerce/add/poc-no-managing-meta-directly
Proof of concept to error when internal meta props are accessed directly
2017-07-27 15:54:24 +01:00
Claudio Sanches fc5f199906 Deprecated WC_Coupon validation methods 2017-07-27 11:46:17 -03:00
Mike Jolley 795d8fa2fd Tests 2017-07-27 15:46:02 +01:00