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
Ron Rennick
b868b484f7
fix merge conflicts
2019-01-23 10:53:42 -04:00
Mike Jolley
084dab4553
Merge pull request #22476 from woocommerce/fix/22470
...
Hide ratings when reviews are disabled
2019-01-22 13:32:22 +00:00
Mike Jolley
5cb60b840c
Merge pull request #21859 from ChromeOrange/master
...
Add filter to save_payment_method_checkbox
2019-01-22 12:05:42 +00:00
Gerhard
98948a2faf
PHPCS fixes
2019-01-17 08:32:42 +02:00
Mike Jolley
50a86a1a33
Merge pull request #21562 from terence1990/feature/rest-api-crud-params-filter
...
Add a filter to WC_REST_CRUD_Controller::get_collection_params method to allow developers to change params
2019-01-16 11:32:03 +00:00
Mike Jolley
42f77950bd
Make total recalc use unrounded tax values to fix test WC_Tests_Order_Coupons::test_add_coupon_to_order
2019-01-11 13:17:06 +00:00
Mike Jolley
28ac24d870
update_taxes can safely round all values, as lines would already be rounded if applicable
2019-01-11 13:12:31 +00:00
Mike Jolley
50ca24e5d9
set_coupon_discount_amounts should support woocommerce_tax_round_at_subtotal
2019-01-11 13:09:20 +00:00
Mike Jolley
caffa319f4
set_item_discount_amounts should support woocommerce_tax_round_at_subtotal
2019-01-11 13:06:26 +00:00
Mike Jolley
11d14b30a4
PHPCS fixes
2019-01-11 12:28:52 +00:00
pierrebuet
9ca3ae3453
Check for customer before checking for VAT excemption
...
In the actual form, the check done in the function is_taxable() of a shipping method can only be done in the frontend, since WC()->customer must be defined. Checking for a customer before checking the excemption would make the function also callable in the backend for different pre-calculation. If a customer is not defined, an exemption can not exists.
2019-01-08 15:57:21 +00:00
Mike Jolley
848eecf6a6
Merge pull request #21537 from jespervnielsen/patch-2
...
allow-filtering-on-wiget-get_current_page_url
2019-01-07 13:12:43 +00:00
Mike Jolley
71ab4c78ed
Merge pull request #22168 from woocommerce/fix/rest-api-orderby-slug
...
[REST API] Fixed orderby slug
2019-01-07 12:19:35 +00:00
Claudiu Lodromanean
1612d2a230
Merge pull request #22074 from Prospress/fix/22068
...
ensure product parent exists before getting its image
2019-01-04 09:37:03 -08:00
Mike Jolley
0c76db4093
Get instance setting defaults so it shows in customiser before save
2019-01-04 16:11:36 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Claudiu Lodromanean
89740f9583
Merge pull request #22204 from woocommerce/fix/22201
...
Restore empty schema support for register_rest_field
2019-01-02 12:03:41 -08:00
Claudiu Lodromanean
87a03b2331
Merge pull request #22189 from Prospress/fix/22186
...
Allow sale price to 23:59:59 on last sale date
2019-01-02 12:02:52 -08:00
Gerhard
5d22d42c9b
PHPCS fixes
2018-12-12 10:05:03 +02:00
Gerhard
38391f7bbf
Update WC_REST_Controller to apply WP 5.0 fix as per https://core.trac.wordpress.org/attachment/ticket/45220/45220.2.diff
2018-12-12 10:03:22 +02:00
Claudiu Lodromanean
c3334302bd
Merge pull request #22108 from woocommerce/fix/meta-queries-REST-API
...
Fixed support for multiple query parameters translated to meta queries via REST API requests
2018-12-11 11:12:56 -08:00
Ron Rennick
b6c614c2af
allow sale price to 23:59:59 on last sale date
2018-12-10 10:37:13 -06:00
Ron Rennick
b8d635a29c
phpcs sniffs in abstract-wc-product.php
2018-12-10 10:34:12 -06:00
Faisal Alvi
8dbb795610
abs-wc-widget-coding-stds
...
Few coding standard fixes in the file abstract-wc-widget.php
2018-12-07 18:57:03 +05:30
Claudio Sanches
fb35324c4f
[REST API] Fixed orderby slug
2018-12-06 16:17:58 -02:00
Ron Rennick
e8ec6df3ff
phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for abstract-wc-widget.php
2018-12-03 11:31:47 -04:00
Peter Fabian
9547895863
Don't remove existing meta queries via REST API.
2018-12-03 11:52:36 +01:00
Ron Rennick
548fc72718
ensure product parent exists before getting its image
2018-11-28 14:41:12 -04:00
Ron Rennick
b0b2320559
fix phpcs sniffs in abstract-wc-product.php
2018-11-28 14:34:24 -04:00
Andrew Benbow
163795b2ab
Add filter to save_payment_method_checkbox
...
Allow the save payment method checkbox to be removed based on payment gateway settings.
2018-11-08 09:15:18 +00:00
Claudiu Lodromanean
ecdffab309
Merge pull request #21641 from jamsheerkrd/master
...
Update abstract-wc-data.php
2018-11-02 09:04:34 -07:00
Jamsheer
95f639ad92
Update abstract-wc-data.php
2018-11-02 20:43:58 +05:30
Claudiu Lodromanean
4aad055e62
Merge pull request #21696 from siananda/fix-21652
...
Prevent deleting default product category via REST API
2018-11-02 08:09:21 -07:00
Md. Saiful Islam
285151843f
compare with $request['id'] instead of $term
2018-10-30 11:36:16 +06:00
Gerhard Potgieter
dba5469efa
update comment for PHPCS passes
...
Co-Authored-By: siananda <anandacsebd@gmail.com>
2018-10-29 20:21:14 +06:00
Claudio Sanches
ccb3f3d82c
Normalize string in terms controller
2018-10-26 20:12:09 -03:00
Md. Saiful Islam
50d33a5793
Fix for issue #21652
...
Prevent deleting the default product category. Added additional checking is the category is the default category or not.
2018-10-26 21:05:52 +06:00
jamsheerkrd
bb5df05920
Update abstract-wc-data.php
...
https://github.com/woocommerce/woocommerce/issues/21640
2018-10-24 14:05:49 +05:30
Rodrigo Primo
6ed2ebb3ba
Fix: WC_Product::get_image() should use $attr parameter
...
This commit fixes a issue that was introduced when WC_Product::get_image() was refactored in 64b589f032
that was making this method ignore what was passed in the $attr parameter.
2018-10-17 19:40:57 -03:00
Terence O'Donoghue
f7c9b7d62c
Update abstract-wc-rest-crud-controller.php
2018-10-15 14:20:19 +01:00
Jared Burke
4557108805
Fix some memory limit values not correctly converting to bytes
2018-10-15 01:26:45 -05:00
Jesper V Nielsen
8799de8477
fix-missing-colon
2018-10-12 09:43:43 +02:00
Jesper V Nielsen
1e8692aeb1
allow-filtering-on-wiget-get_current_page_url
...
Allow for filtering on get_current_page_url() in widgets, to make it possible to extend the parameteres, and keep them.
If building some functionality, where wee work with the parameters in the url, they will be removed, when using the links produced by wc_widget - for example the layered nav, or the price range.
With the filter, we kan add out custom parameter, to the url generated by these widgets.
2018-10-12 08:53:46 +02:00
Claudiu Lodromanean
f1a7792454
Merge pull request #21403 from woocommerce/fix/21294
...
Fix attributes bugs
2018-09-28 08:24:03 -07:00
claudiulodro
178f98ff65
Fix attribute saving
2018-09-19 11:35:46 -07:00
Ewout Fernhout
9c411dc532
Fixes #21345
2018-09-13 15:23:00 +02:00
Claudio Sanches
61873627a7
Merge branch 'master' into feature/rest-api-v3
2018-09-10 19:16:22 -03:00
Rodrigo Primo
4d2530ef45
Fix: product attributes cache should work when non-ASCII characters are used
...
This commit fixes an issue in the code that sets product attributes that was breaking product attributes cache removal when non-ASCII characters are used in the attribute name. For more information see https://github.com/woocommerce/woocommerce/issues/21026#issuecomment-412111740
2018-08-15 13:24:33 -03:00
Rodrigo Primo
fef0cd48ea
phpcs fixes
2018-08-15 13:24:09 -03:00
Claudio Sanches
7d07d52279
Allow _fields
2018-07-24 15:52:48 -03:00
Claudiu Lodromanean
87acfa731d
Merge pull request #20260 from leglesslizard/master
...
Set low stock notification threshold per product
2018-07-24 10:23:15 -07:00
Khan M Rashedun-Naby
25ab294d40
Unnecessay Spaces Removed
2018-07-19 10:33:22 +06:00
Claudio Sanches
99840c3914
Merge branch 'master' into feature/rest-api-v3
2018-07-12 16:07:57 -03:00
Claudio Sanches
9b7fbff544
Merge pull request #20686 from woocommerce/fix/20673
...
Replaced query attribute placeholder with actual value for header link.
2018-07-10 15:22:30 -03:00
Claudiu Lodromanean
e8a2e19b27
Merge pull request #20648 from woocommerce/update/crud-get-image
...
Custom tables: Get image from ID, not post thumbnail
2018-07-09 11:04:52 -07:00
Joey Gilham
58cdd7dad2
Merge branch 'master' into master
2018-07-03 15:41:15 +01:00
Peter Fabian
70d876d122
Replaced query attribute placeholder with actual value for header link.
2018-07-02 16:02:54 +02:00
Mike Jolley
ddb779e917
Check type correctly
2018-06-29 11:22:03 +01:00
Mike Jolley
a6c5065718
Merge pull request #20633 from aelia-co/tweak-shipping_method_add_rate_filter
...
Added new filters when adding shipping rates
2018-06-28 14:29:28 +01:00
Mike Jolley
64b589f032
Get image from ID, not post thumbnail
2018-06-28 13:10:25 +01:00
Diego Zanella
9c9bdb0b2e
Changed prefix for new filters to "woocommerce_shipping_method_"
2018-06-27 22:00:25 +01:00
Claudiu Lodromanean
2a3cedddcd
Merge pull request #20520 from woocommerce/feature/product-custom-tables-supporting-changes
...
Product custom tables supporting changes
2018-06-27 08:57:50 -07:00
Diego Zanella
ab3b6b5433
Fixed call to filter woocommerce_shipping_add_rate_args
2018-06-27 16:09:22 +01:00
Diego Zanella
25817b9236
Added new filters when adding shipping rates
...
Ref. https://github.com/woocommerce/woocommerce/issues/20632
2018-06-26 20:15:54 +01:00
Bharat Kambariya
fdeadcdbea
fix param doc for update_meta and add_meta fn.
2018-06-21 11:47:18 +05:30
Claudiu Lodromanean
ec5fcc333e
Merge pull request #20573 from woocommerce/fix/20521
...
Update status based on stock, always
2018-06-19 07:41:55 -07:00
Mike Jolley
0cee6a69b0
Update status based on stock, always
2018-06-19 13:35:17 +01:00
Joey
cd8416122f
removed low stock options for variations, and addressed changes
2018-06-19 12:40:27 +01:00
David Marín
f28b00d5df
Fixing bug: I was casting the wrong value 😖
2018-06-19 13:31:48 +02:00