Commit Graph

211 Commits

Author SHA1 Message Date
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
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
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Mike Jolley d55653a408 Merge branch 'master' into fix-13498
# Conflicts:
#	includes/class-wc-order.php
#	tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Claudio Sanches c4134586cd FUpdate how save download dates 2017-03-13 20:54:33 -03:00
Mike Jolley 8ab839a030 Replace template usage of dates 2017-03-10 16:35:47 +00:00
Claudiu Lodromanean e36ee46dea Make increase_usage_count work correctly on concurrent checkoutt 2017-03-08 15:27:37 -08:00
Mike Jolley fce44e2271 Status filter adjustment #13357 2017-02-27 11:55:09 +00:00
Mike Jolley 31d428131e Imrpove checkout performance when updating product sales 2017-02-10 23:41:53 +00:00
Mike Jolley b5572fc041 wc_create_refund should handle payment and stock 2017-02-08 16:19:47 +00:00
Justin Shreve b660eda4b8 Add date searching to wc_get_orders. 2017-01-17 12:52:27 -08:00
Mike Jolley 451199a388 Hooks when creating refunds 2017-01-10 14:14:05 +00:00
Mike Jolley d7dfdd3d10 Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
Mike Jolley b1007c9d62 Fix order item meta saving 2016-11-23 15:37:34 +00:00
Mike Jolley edf973d35f Feedback 2016-11-21 14:30:56 +00:00
Mike Jolley b1565cf0d6 Download update routine and interface 2016-11-18 19:29:37 +00:00
Mike Jolley 1b6d7acd24 Data store for downloads 2016-11-18 17:13:02 +00:00