Gerhard Potgieter
52f1eb4060
Revert "Prevent negative prices on products"
2019-07-15 08:50:11 +02:00
Claudio Sanches
77191a97f8
Merge pull request #23705 from woocommerce/fix/23696
...
Prevent negative prices on products
2019-07-12 12:56:34 -03:00
Mike Jolley
c928188831
Update from master
2019-07-10 12:57:02 +01:00
Claudio Sanches
01f5a09d27
Merge pull request #23338 from woocommerce/update/23335
...
More useful actions in during CRUD save events
2019-07-08 18:56:14 -03:00
Claudio Sanches
deec93f8ca
Merge pull request #23769 from mch0lic/master
...
Forward query (GET) parameters when executing a batch REST API request.
2019-06-24 12:39:36 -03:00
Mike Jolley
950f31a9e0
Remove abstract rest class that is in the package
2019-06-21 13:40:10 +01:00
Mike Jolley
7451659b24
Delete REST API abstract classes
2019-06-19 11:49:28 +01:00
Jared Burke
332c94c13a
Fix fatal error when applying a virtual coupon to an order placed by a guest
2019-06-06 15:37:08 -05:00
Ajay Ghaghretiya
c9bcce3a31
#23850 Fixed the coupon usage limit issue when apply coupon from admin panel ( #23851 )
...
* fix the coupon usage limit issue
* fix the if condition for the usage limit
* fixed coding standard
* fix the if conditions for coupon usage limit per user
2019-06-03 10:47:32 -03:00
Gerhard Potgieter
b2ed079520
Manual orders coupon usage limits by email ( #23775 )
...
* Add functionality to wp-admin order to check for coupon usage based on email addresses, similar to how WC_Cart handles this seperately, included unit tests.
* Only do the coupon by email usage check if order is from a guest. Fix issue with unit test.
2019-05-27 11:45:29 -03:00
Claudio Sanches
28d49031d3
Merge pull request #23695 from james-allan/calc-base-zip-city
...
Calculate base store taxes including the store's zip and city
2019-05-22 20:49:57 -03:00
sergey.r
98586f10f4
Catch WC_REST_Exception while calling do_action( "woocommerce_rest_insert_{$this->post_type}_object"
2019-05-22 13:00:34 +03:00
Mindaugas Budreika
d67381148a
Forward query (GET) parameters when executing a batch REST API request.
2019-05-20 14:24:48 +04:00
Boris Djemrovski
c45e06a130
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 12:04:34 +02:00
Gerhard Potgieter
30ce9ff6a3
Merge pull request #23689 from woocommerce/add/get_used_coupon_codes
...
Deprecate get_used_coupons in favor of get_coupon_codes
2019-05-15 15:34:40 +02:00
James Allan
6069854d9f
Replace wc_get_base_location() with individual getters
2019-05-15 15:43:15 +10:00
Claudio Sanches
b68b35336f
Prevent negative prices for products
2019-05-14 13:22:06 -03:00
Gerhard Potgieter
b7facc0674
Merge pull request #23663 from danielbitzer/add_get_coupons_method
...
Add WC_Abstract_Order::get_coupons()
2019-05-14 11:35:21 +02:00
Gerhard
efe3e4c5d6
Move get_used_coupons to WC_Abstract_Legacy_Order and renamed get_used_coupon_codes to get_coupon_codes.
2019-05-14 11:19:48 +02:00
Daniel Bitzer
0705730121
Add WC_Abstract_Order::get_coupons()
2019-05-14 15:46:48 +09:30
James Allan
45b461639e
Calculate base store taxes including the store's zip and city
2019-05-14 13:43:57 +10:00
Gerhard
31acfbcb4a
Deprecate WC_Abstract_Order::get_used_coupons in favor of WC_Abstract_Order::get_used_coupon_codes, this reflects the actual data being returned better.
2019-05-13 14:40:54 +02:00
Nathan Dawson
6088f7c353
Fixes #23578 - Check taxes are enabled before adding totals row to orders
2019-05-01 22:05:46 +01:00
Mike Jolley
47eee0143f
Restore order note on exception
2019-04-17 13:07:52 +01:00
Mike Jolley
a0d4f6174c
Consistent CRUD classes with before/after save hooks
2019-04-17 12:47:35 +01:00
Timmy Crawford
e1c09b4609
Merge pull request #22973 from woocommerce/update/22545
...
Revised sale start/end date save logic
2019-03-14 17:53:40 -07:00
Mike Jolley
cd92c68476
fix offset check
2019-03-11 15:00:42 +00:00
Mike Jolley
c56d3ede9f
Remove day offsets
2019-03-08 13:35:30 +00:00
Mike Jolley
76fabc9b7e
Merge pull request #22771 from martinsnajdr/flatrate-shipping-cost-filters
...
Shipping method get_option function filters
2019-03-04 13:49:22 +00:00
Martin Šnajdr
4f9d47ea25
PR requested changes: shipping instance option filter moved to get_instance_option function, filters renamed.
2019-02-27 17:31:51 +01:00
Mike Jolley
9529d6eee7
Use total, not amount, when calculating fees
2019-02-20 16:22:20 +00:00
Martin Snajdr
1c678372d4
Shipping cost filters removed & added two additional parameters get_option function filters
2019-02-20 15:59:40 +01:00
Martin Snajdr
dfd4f4ea6d
Filters added to shipping method function get_option
2019-02-20 11:54:59 +01:00
Mike Jolley
b8921f9fba
Merge pull request #22420 from woocommerce/refactor/tax-rounding-methods
...
Refactor tax rounding methods for consistency
2019-02-12 16:13:58 +00:00
Mike Jolley
889cf64ac4
Merge branch 'performance/wc-get-product-class'
2019-02-07 13:34:18 +00:00
Claudiu Lodromanean
2d2d7a7053
Merge pull request #22613 from woocommerce/performance/set-props
...
Performance: `set_props`
2019-02-06 10:02:54 -08:00
Mike Jolley
a4acf5643a
Merge pull request #22533 from woocommerce/fix/21265
...
Exclude `paged` from price slider
2019-02-04 10:18:51 +00:00
Mike Jolley
8b7414cfb5
Apply fix to rating filter
2019-02-01 14:13:37 +00:00
Mike Jolley
1e3e5a4528
Merge pull request #22580 from woocommerce/fix/22515
...
recalculate coupons after adding coupon to order
2019-01-31 14:38:59 +00:00
Mike Jolley
5e9253980b
Merge pull request #22566 from jenkoian/change-for-network-media-library-compatibility
...
Remove possibe superfluous wp_attachment_is_image() filter.
2019-01-31 14:20:35 +00:00
Mike Jolley
74cd1ced37
Merge branch 'fix/20710'
2019-01-31 13:37:02 +00:00
Mike Jolley
77eba86818
Get rid of reflection method to speed up set_props
2019-01-30 16:21:06 +00:00
Mike Jolley
9a8d11e9f6
phpcs
2019-01-30 16:20:49 +00:00
Mike Jolley
7eda1bb412
Only use WP Error when needed
2019-01-30 16:20:41 +00:00
Mike Jolley
59e0867afe
Add missing post_password prop
2019-01-30 16:01:54 +00:00
Ron Rennick
3f24ad8d4c
phpcs sniff fixes for abstract-wc-order.php
2019-01-27 11:38:08 -04:00
Ron Rennick
d32f189f27
recalculate coupons after adding to order
2019-01-26 23:57:32 -04:00
Ian Jenkins
d7e32e1c77
Remove possibe superfluous wp_attachment_is_image() filter.
...
The reason to remove this is that this function uses get_post() under
the hood which always assumes the attachment is on the same site, where
as if you're using a plugin such as
https://github.com/humanmade/network-media-library it might not be.
I'm not sure if there's any adverse affects of not doing this filtering,
from my testing, it still seems to work in the same way.
2019-01-25 15:11:58 +00:00
claudiulodro
8078e6bfc2
Simplified title check that works on all wc widgets
2019-01-24 10:47:05 -08:00
Ron Rennick
8709351994
update function name to `wc_attribute_taxonomy_slug`
2019-01-23 11:11:27 -04:00