Claudio Sanches
f5bab51c6a
Improve refund reason when changing order status to refunded
...
Refund reasons are public, can be visualized on emails, and shall not
contain any sensitive data or administration information.
2019-05-16 17:57:28 -03:00
Gerhard
486321161c
Update usage of get_used_coupon_codes to get_coupon_codes
2019-05-14 11:21:27 +02: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
Mike Jolley
bdc009cfbf
Update refund reason to make it clear refunding is manual
2019-03-26 12:46:27 +00:00
Mike Jolley
fa97d1a791
Update reduced stock amount under some circumstances
2019-02-18 12:27:08 +00:00
Mike Jolley
d0abd6f09b
Check for _reduced_stock meta when restocking refunded items
2019-02-13 15:05:20 +00:00
Mike Jolley
7ac26ce893
Merge pull request #22518 from Prospress/fix/21779_redux
...
Fix/21779 redux
2019-01-22 13:29:40 +00:00
Mike Jolley
afbdd06e83
Merge branch 'pr/22409'
2019-01-22 13:12:34 +00:00
Mike Jolley
892ec24fed
correct version
2019-01-22 13:12:26 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Ron Rennick
b774968c81
set refund prices_include_tax meta to be the same as the order receiving the refund
2019-01-18 23:38:36 -04:00
Ron Rennick
d826aba858
phpcs sniff fixes for wc-order-functions.php
2019-01-18 23:36:46 -04:00
plexus admin
9acc7ced5d
Add function wc_get_is_pending_statuses
2019-01-16 09:54:02 -06:00
Steve Grunwell
550b309901
Merge branch 'master' into feature/sanitize-order-id-tests
2018-10-17 02:21:04 +00:00
AmanS
9d327ac52e
WC Refund class older name 'WC_Refund' somehow left over in the function docblock. Corrected to WC_Order_Refund.
2018-10-10 00:28:15 +05:30
Steve Grunwell
65cda44fe6
Add tests for wc_sanitize_order_id()
...
This commit adds four test cases (via a PHPUnit data provider) for the `wc_sanitize_order_id()` function.
While writing the tests, it was also discovered that the function was returning a *string*, not an integer as indicated by the DocBlock, so explicit type-casting was added.
2018-10-04 13:53:55 +00:00
Mike Jolley
01a3e359c3
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-13 10:18:38 +01:00
Khan M Rashedun-Naby
80a1a64285
Else Removed
2018-05-15 00:33:22 +06:00
Rodrigo Primo
597033ca6f
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-04-24 13:47:22 -03:00
Gregory Karpinsky
3fe4de8a95
Docblock: wc_get_orders returns WC_Order[]
2018-04-20 08:01:53 -04:00
Claudio Sanches
4c6641ab6a
Adds new hook to allow customize downlodable file permissions
...
This is needed on Product Custom Tables in order to allow control expire
and remaining downloads per file.
2018-03-29 13:58:40 -03:00
Mike Jolley
6539b7913e
Merge branch 'master'
2018-03-19 18:05:36 +00:00
Claudio Sanches
73de7414e2
Fixed includes/wc-order-functions.php PHPCS violations
2018-03-08 15:47:54 -03:00
Mike Jolley
da0bda4a04
Add refunded payment prop after an API refund succeeds.
2017-12-15 16:23:26 +00:00
ragulka
4f2e1ee8d4
Ensure refund is deleted when exception is thrown during wc_create_refund
2017-11-22 17:03:58 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Claudio Sanches
1b93282245
Change note to content
2017-07-13 19:30:25 -03:00
Claudio Sanches
3265f18af8
Tidy up wc_delete_order_note()
2017-07-12 18:46:19 -03:00
Claudio Sanches
85873d3d28
Not allow 'count' and 'fields' in wc_get_order_notes()
2017-07-12 18:45:27 -03:00
Claudio Sanches
ac8b7f7087
Fixed docblocks
2017-07-12 18:05:44 -03:00
Claudio Sanches
d93214e68e
Order note helper functions
2017-07-12 18:03:39 -03:00
Trey Richards
f019070307
Fixed major issue with getting orders when both before_date and after_date args are set.
...
Modified unit tests to prevent from happening again.
2017-06-30 17:30:16 -07:00
Mike Jolley
e83450b861
Errors do not need localisation
2017-06-06 13:10:22 +01:00
claudiulodro
b27fb203ef
Add wiki link to wc_get_orders
2017-06-01 11:58:43 -07:00
Mike Jolley
71a4b4b75d
Code standards
2017-06-01 12:08:48 +01:00
Pablo dos Santos Gonçalves Pacheco
435c29771e
Create function to sanitize order id
...
I've realized that tracking an order id with **[woocommerce_order_tracking]** using # will not work. Some users think that they need to use the hash because it's the WooCommerce default. The new **wc_sanitize_order_id()** function fixes that.
And **woocommerce_shortcode_order_tracking_order_id** filters the order_id that comes from query string and is used on **[woocommerce_order_tracking]**.
It can be used for other cases though.
I hope it helps :)
2017-05-31 17:34:00 -03:00
Diego Zanella
b14a2db2e6
Fix for #15336
...
* Replaced reference to `WC()->payment_gateways` property with call to `WC()->payment_gateways()` method.
2017-05-29 13:02:16 +01:00
Mike Jolley
f6df18542a
Merge pull request #15113 from bekarice/fix/wc_create_refund-date
...
Fix: Re-add date for wc_create_refund()
2017-05-23 19:33:23 +01:00
Beka Rice
8885d58799
Fix: Re-add date for wc_create_refund
2017-05-17 04:46:56 -04:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
claudiulodro
cec2c3b7dc
Couple requested changes
2017-05-13 12:22:22 -07:00
claudiulodro
d9c5536cf2
formatting
2017-05-12 15:31:34 -07:00
claudiulodro
fe40e9b96a
Make date queries work properly
2017-05-12 15:25:15 -07:00
claudiulodro
2ce90b3eb6
Slightly better date handling
2017-05-12 12:59:54 -07:00
claudiulodro
3861e32803
Migrate wc_get_orders
2017-05-12 11:45:01 -07:00
Mike Jolley
7c82087bcd
Check we have a valid order in wc_get_payment_gateway_by_order
...
Fixes #14973
2017-05-10 19:54:20 +01:00
Mike Jolley
505813403e
@used-by WC_Order::set_status comment
...
#13891
2017-04-04 11:52:54 +01:00
Akeda Bagus
0b416439c8
Fixed all typos of all files in includes/ directory.
...
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell .
2017-03-29 00:58:51 +07:00
Mike Jolley
b3198d2546
woocommerce_after_register_post_type action
2017-03-28 12:37:17 +01:00
Mike Jolley
f50254be28
Update notice to protect against calls before post type registration
...
Closes #13763
2017-03-28 12:03:09 +01:00