Claudiu Lodromanean
6b959e8625
Merge pull request #13531 from woocommerce/fix/legacy-coupon-amount-property
...
Fix direct property access for coupon amount.
2017-03-09 11:47:36 -08:00
Justin Shreve
cd92351dd7
Fix direct property access for coupon amount.
...
In 2.6, you could access the amount via $coupon->coupon_amount. Or legacy code incorrectly handles $coupon->amount instead. 7778583340/includes/class-wc-coupon.php (L102)
This PR handles both since the RCs and betas allowed `->amount` and I don't want to break anything that may be accessing it that way..
To Test:
* `phpunit --filter=test_coupon_backwards_compat_props_use_correct_getters`
2017-03-09 10:34:45 -08:00
Mike Jolley
99776e6374
Merge pull request #13514 from woocommerce/fix-13509
...
Apply_changes nested array fix and tests
2017-03-09 17:32:19 +00:00
Claudiu Lodromanean
8a18702c27
Just use array_replace_recursive in apply_changes
2017-03-09 09:06:05 -08:00
Mike Jolley
92f989d8ac
Merge pull request #13528 from woocommerce/fix/legacy-get-item-downloads
...
Fix legacy get item downloads
2017-03-09 13:26:54 +00:00
Mike Jolley
a5c10d07c1
Fix is_purchasable (requires save) when price is null
...
Fixes #13043
2017-03-09 13:26:12 +00:00
Boro Sitnikovski
deae95b678
Updates after PR review
2017-03-09 12:55:33 +01:00
Mike Jolley
d811317a1f
Merge pull request #13511 from franticpsyx/fix-price-incl-excl-tax-zero-empty-inputs
...
[2.7] Unexpected wc_get_price_{in/ex}cluding tax behavior with zero/empty inputs
2017-03-09 11:46:39 +00:00
Mike Jolley
a185e57ccb
Admin panel should not hide _ meta.
...
Fixes #13510
2017-03-09 11:45:22 +00:00
Boro Sitnikovski
6c967697d9
Fix legacy get item downloads
2017-03-09 12:41:25 +01:00
Mike Jolley
ee713f82cc
Merge pull request #13519 from ragulka/fix-legacy-api
...
Set order id for items & fix fee title sanitazing on legacy API
2017-03-09 09:52:12 +00:00
Illimar Tambek
21a54b93d8
Use wc_clean to sanitize fee title in legacy apis
...
This will bring legacy APIs in line with the new REST API, where the
order item names are sanitized using wc_clean and fix the
backwards-incompatible change of using sanitize_title.
2017-03-09 11:00:35 +02:00
Illimar Tambek
8e81a7e4e0
Set order id for fees & shipping on legacy api
...
If order ID is not set, the item will be created, but will not be
associated with the order being updated.
2017-03-09 10:53:10 +02:00
Claudiu Lodromanean
b645fc5513
Docblocks
2017-03-08 12:02:14 -08:00
Claudiu Lodromanean
3b8eb75c93
Better handling of nested arrays in apply_changes
2017-03-08 11:51:38 -08:00
Manos Psychogyiopoulos
5e8df27945
fix wc_get_price_{in/ex}cluding tax behavior with zero/empty inputs
2017-03-08 18:21:36 +02:00
Mike Jolley
62240c6bbd
Merge pull request #13507 from woocommerce/fix-13506
...
Validate the parent order ID by calling wc_get_order()
2017-03-08 16:05:17 +00:00
Michael Pretty
6150ee2fde
Validate the parent order ID by calling wc_get_order() instead of get_post()
2017-03-08 08:02:18 -05:00
Mike Jolley
c9cfad18ef
Merge pull request #13501 from woocommerce/fix-13480
...
Improve individual use coupon handling
2017-03-08 10:09:45 +00:00
Claudiu Lodromanean
28f8380ab6
Sprinkle some periods
2017-03-07 15:00:14 -08:00
Mike Jolley
05d3dee094
Merge pull request #13502 from woocommerce/fix-13476-2
...
Remove all previous messages on checkout submit error
2017-03-07 21:32:32 +00:00
Claudiu Lodromanean
d0f47a7980
Revert to original behavior
2017-03-07 13:17:36 -08:00
Claudiu Lodromanean
e1891b85a2
Remove all previous messages on submit error
2017-03-07 12:15:07 -08:00
Claudiu Lodromanean
955a75bf30
Fix changes and more tests
2017-03-07 11:58:02 -08:00
Claudiu Lodromanean
2436541fff
Fix individual use coupon handling
2017-03-07 11:31:20 -08:00
Mike Jolley
396985ec84
Merge pull request #13500 from aristath/phpcs-fix
...
PHPCS fixes
2017-03-07 18:01:05 +00:00
Mike Jolley
35983d49c1
Merge pull request #13499 from woocommerce/fix-13405
...
Allow product ids in get_product_data
2017-03-07 18:00:18 +00:00
Aristeides Stathopoulos
70ee7ae7ea
Fix some PHPCS errors
2017-03-07 19:57:28 +02:00
Claudiu Lodromanean
dd97b7bc50
Allow product ids in get_product_data
2017-03-07 09:40:28 -08:00
Aristeides Stathopoulos
07ee93dfa0
Merge pull request #7 from woocommerce/master
...
pulling latest changes from woo repo
2017-03-07 19:35:23 +02:00
Mike Jolley
d5262a1711
Merge pull request #13497 from woocommerce/fix-13496
...
Remove filter in maybe_set_date_paid to avoid infinite loop
2017-03-07 17:18:04 +00:00
Claudio Sanches
1e576133b1
Merge pull request #13493 from woocommerce/fix-13489
...
Multiple arguments passed to isset must all be isset to be true. We need 'or'.
2017-03-07 13:01:03 -03:00
Mike Jolley
be0a8d2c87
Remove filter in maybe_set_date_paid to avoid infinite loop
...
Fixes #13496
2017-03-07 14:45:42 +00:00
Mike Jolley
ffa0bcc2bb
Pass $this to woocommerce_payment_complete_order_status filter
2017-03-07 14:39:07 +00:00
Mike Jolley
578f89812c
Use set_date_paid directly
2017-03-07 14:37:45 +00:00
Mike Jolley
1eb5ab6f19
Merge pull request #13495 from woocommerce/alt-fix-13494
...
Hide suffix on variable product when dynamic.
2017-03-07 14:17:24 +00:00
Mike Jolley
5bdeddcb32
Hide suffix on variable product when dynamic.
...
Closes #13494
2017-03-07 13:25:52 +00:00
Mike Jolley
3eea782750
Brackets
2017-03-07 12:45:35 +00:00
Mike Jolley
3073867449
Multiple arguments passed to isset must all be isset to be true. We need 'or'.
...
Fixes #13489
2017-03-07 12:44:30 +00:00
Mike Jolley
ce6c4a736f
Merge pull request #13488 from woocommerce/downloads-consistency
...
Downloads data consistency
2017-03-07 12:13:03 +00:00
Mike Jolley
b1686c6bd9
Merge pull request #13485 from woocommerce/fix-13476
...
Make coupon errors properly refresh the checkout page
2017-03-07 12:00:08 +00:00
Mike Jolley
16b0aa9a52
Merge pull request #13487 from woocommerce/exclude-customer-internal-meta-data
...
Prevent update or list _order_count and _money_spent on WC_Customer_Data_Store
2017-03-07 10:29:34 +00:00
Mike Jolley
7940975f78
Merge pull request #13486 from woocommerce/coupons-consistency
...
Fixed coupons consistency with docblocks and REST API
2017-03-07 10:28:37 +00:00
Claudio Sanches
df1a87a749
[REST API] Removed extra product_name in v1 and added schema for product_name in v2
2017-03-06 19:48:26 -03:00
Claudiu Lodromanean
cd37d8aa40
Add wrapper class to messages
2017-03-06 14:45:45 -08:00
Claudio Sanches
88f32a782e
Fixed download file in downloads.php template
2017-03-06 19:45:13 -03:00
Claudio Sanches
a10fa76438
Fixed empty file object in downloads data and removee extra download_name
2017-03-06 19:45:03 -03:00
Claudio Sanches
64b45e9909
Prevent update or list _order_count and _money_spent on WC_Customer_Data_Store
2017-03-06 19:03:26 -03:00
Claudio Sanches
50d62a5c4c
REST API v1 should return 0 when limit_usage_to_x_items is empty
2017-03-06 18:14:32 -03:00
Claudio Sanches
de77bddcfb
limit_usage_to_x_items should be integer
2017-03-06 18:14:15 -03:00