Mike Jolley
8db31eefe2
Fix variable stock status setting by using CRUD methods
...
Closes #16287
2017-08-07 15:16:38 +01:00
Boro Sitnikovski
9022261f13
Fix cache issue.
...
From discussion with @mikejolley:
The class is not doing its job of invaliding cache after adding a line item.
At any point (action hook), a 3pd can call `get_items` and it will cache the items for that particular order so any subsequent calls to it will return bad data.
Unless you ADD items, `get_items` will return good data.
So adding items in this case is not invalidating, so that's the bug.
Relates to: https://github.com/woocommerce/woocommerce-bookings/issues/1310
2017-08-07 15:29:17 +02:00
Mike Jolley
d46988b6a6
Improve add payment method logic
2017-08-07 12:39:16 +01:00
Mike Jolley
847e4859f8
Include add_payment_method in gateway abstract
2017-08-07 12:38:50 +01:00
Mike Jolley
862f67d98b
wc_get_var helper method
2017-08-07 11:02:19 +01:00
Mike Jolley
e2839d3c09
Add nocache_headers to early update actions
2017-08-07 11:02:02 +01:00
Mike Jolley
af1dce3544
Set nocache constants on all nocache_headers
2017-08-07 11:01:38 +01:00
Boro Sitnikovski
d1dc2a4390
Fix fatal error on deleting refunded order
2017-08-07 11:38:10 +02:00
Mike Jolley
2b0a672ba7
Merge pull request #16348 from jamesckemp/patch-6
...
Add sorting ID and menu orders to sorting action
2017-08-06 20:36:34 +01:00
James Kemp
8ebe8a1720
Add sorting ID and menu orders to sorting action
2017-08-05 12:05:47 +01:00
claudiulodro
48f03b15ed
Use correct server variable
2017-08-04 14:27:22 -07:00
Claudiu Lodromanean
ab543148ff
Merge pull request #16335 from woocommerce/fix/16309
...
Add shortcode to description output in structured data
2017-08-03 11:09:16 -07:00
sergey.r
62d078edf5
Add filters to make possible send emails in language different from default
2017-08-03 14:58:44 +03:00
Mike Jolley
958bd092ba
Add date/time to hover.
...
Closes #16331
2017-08-03 08:48:17 +02:00
Mike Jolley
6af275da6e
Only return tax classes if product is taxable.
...
Fixes #16241
2017-08-03 08:44:02 +02:00
Mike Jolley
827083c051
Add shortcode to description output in structured data
...
Closes #16309
2017-08-03 08:28:35 +02:00
Mike Jolley
52b10d8be4
Merge pull request #16313 from opportus/master
...
Fixes #16010
2017-08-03 08:24:12 +02:00
Mike Jolley
d79ebf7a2f
Typo in tag text, fixes #16332
2017-08-03 08:19:57 +02:00
Mike Jolley
39af6fbe94
Add precision to price filter
...
Closes #16253
2017-08-03 08:17:23 +02:00
Mike Jolley
cbb8d48f5f
Merge pull request #16291 from woocommerce/improvement/13645
...
Product search helpers.
2017-08-03 08:03:37 +02:00
claudiulodro
80708255ee
Fix inc tax price calculation
2017-08-02 11:07:33 -07:00
claudiulodro
91f1d41842
Clarify logic
2017-08-01 13:21:23 -07:00
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
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
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
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
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
claudiulodro
e335724c50
Finalize product query
2017-07-28 11:59:44 -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
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
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
Mike Jolley
fcfa510445
Fixed totals tests
2017-07-27 16:57: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
Mike Jolley
ded2be8d28
Legacy filters
2017-07-27 15:31:10 +01:00
Mike Jolley
6054519605
Discount taxes
2017-07-27 13:48:58 +01:00
Mike Jolley
98db84dfdd
Passing tests
2017-07-27 11:01:48 +01:00
Mike Jolley
c6b8ad598f
Precision functions
2017-07-27 10:51:08 +01:00
Mike Jolley
306db69eaf
Remove order subclass
2017-07-27 10:49:47 +01:00
Mike Jolley
ad2e408a66
Merge pull request #16267 from Valks/patch-1
...
Fix incorrect access level in class-wc-product-variation.php
2017-07-27 08:31:13 +01:00
claudiulodro
cfb04f0ead
Boolval wasnt added til php 5.5
2017-07-26 13:48:36 -07:00
claudiulodro
d15a2f5f6a
Make tax calculation optional
2017-07-26 13:46:50 -07:00
claudiulodro
ea0bd7980a
Get order totals working
2017-07-26 12:06:05 -07:00
claudiulodro
77838d05bb
Fix unknown item variable
2017-07-26 10:25:08 -07:00
Mike Jolley
b9b4336c1b
Removed some duplicate keys
2017-07-26 16:50:34 +01:00
Claudiu Lodromanean
b10d61eef3
Merge pull request #16219 from Nabesaka/master
...
Output custom attributes to radio inputs
2017-07-26 08:15:16 -07:00
Claudiu Lodromanean
2900ceca30
Merge pull request #16213 from woocommerce/fix/16206
...
Remove duplicate inherited method
2017-07-26 08:05:27 -07:00
Mike Jolley
abdb325d83
Order items
2017-07-26 15:47:30 +01:00
Valks
dd857d25eb
Update class-wc-product-variation.php
...
The variable $post_type is incorrectly public, must be protected.
2017-07-27 00:00:21 +10:00
Mike Jolley
1faae6a7aa
Order subclass
2017-07-26 14:32:43 +01:00
Mike Jolley
250dabaf41
WC_Cart_Totals subclass
2017-07-26 12:44:06 +01:00
Mike Jolley
052be04ee7
Use passed through cart item, rather than try to generate a custom one
2017-07-26 11:26:50 +01:00
Mike Jolley
e9f35febd0
Store cart item as part of items array
2017-07-26 11:26:35 +01:00
Mike Jolley
457a7c2a32
phpcs/tidy discounts class
2017-07-26 11:07:17 +01:00
Mike Jolley
58b54673d1
Merge pull request #16256 from woocommerce/feature/discounts-coupon-validation
...
Add coupon validation logic to WC_Discounts
2017-07-26 10:21:56 +01:00
Claudio Sanches
0f58d0cfc1
Merge pull request #16214 from woocommerce/fix/16179
...
Ensure we have a http URL for file path replacements
2017-07-26 01:21:58 -03:00
Claudio Sanches
70c2f7436b
Merge pull request #16233 from woocommerce/fix/16232
...
Check data is an array in set_variation method
2017-07-26 01:15:01 -03:00
Claudio Sanches
f0dfff4a86
Sync with feature/discounts-class
2017-07-25 22:41:18 -03:00
Claudio Sanches
2573adedd5
Moved coupon validation logic to WC_Discounts
2017-07-25 22:36:41 -03:00
claudiulodro
dfee2c0cbe
Maybe integrate cart and total classes
2017-07-25 14:44:54 -07:00
Mike Jolley
889a3cfdd5
Merge pull request #16111 from woocommerce/fix/15986
...
Improve tracking page validation
2017-07-25 21:04:16 +01:00
Kathy Darling
fe0c190894
Move settings init/save to load-$settings hook. Closes #16221
2017-07-25 14:43:26 -04:00
claudiulodro
ec6d11bd67
Just needs visibility support and cleanup
2017-07-25 10:01:24 -07:00
Mike Jolley
b68adf748b
Tests pass
2017-07-25 17:25:06 +01:00
claudiulodro
689c5e7006
Better code
2017-07-25 08:36:01 -07:00
Mike Jolley
474799889f
Disable discounts tests until rewritten
2017-07-25 15:57:58 +01:00
Mike Jolley
40cb2c9cb0
phpcs
2017-07-25 15:24:00 +01:00
Mike Jolley
4c4f26ff41
Changes to allow shipping to be calculated from totals class
...
Moved some items from
https://github.com/woocommerce/woocommerce/pull/11889/files to support
this.
2017-07-25 15:11:32 +01:00
Mike Jolley
e8e200195f
fees pass
2017-07-25 14:05:49 +01:00
Fulvio Notarstefano
7781b2ea4d
[ #16242 ] Add context to woocommerce_backordered_item_meta_name
2017-07-25 11:54:03 +08:00
claudiulodro
cdbead8961
Clean up and tests
2017-07-24 15:05:23 -07:00
Mike Jolley
ee545e7793
Totals progress
2017-07-24 17:21:08 +01:00
Mike Jolley
504a216582
Check data is an array in set_variation method
...
Closes #16232
2017-07-24 10:43:34 +01:00