Barry Kooij
6cd77ea3b1
Typo fix
2015-02-11 15:14:42 +01:00
Mike Jolley
27a7a58e8c
Can return wp_error
2015-02-03 15:08:36 +00:00
Mike Jolley
e3c1ebc927
Simplify mark_order_status()
2014-11-27 15:37:42 +00:00
Mike Jolley
ab562615ce
[2.2] Remove strtolower and capitalize status names
...
Fixes #6624
2014-10-29 11:15:00 +00:00
Mike Jolley
daf14fc57e
Use current user ID for refunds. Closes #6598
2014-10-23 11:36:15 +01:00
claudiosmweb
42820ea88d
introduced the wc_strtolower() function, closes #6575
2014-10-21 10:51:16 -02:00
Mike Jolley
05d5849a67
Check mb_strtolower exists.
2014-10-16 15:53:12 +01:00
Mike Jolley
ea1d61b88e
Use mb_strtolower to prevent issues with unicode chars
...
Fixes #6525
2014-10-14 11:58:28 +01:00
claudiosmweb
bc1ea4fdea
woocommerce_ prefix in refund actions, related #6477
2014-10-09 13:15:42 -03:00
75nineteen Media
f57de2cf9a
Added two hooks to support refund Followup Emails
2014-10-07 15:58:21 -07:00
Mike Jolley
8c3d142002
define $transients_to_clear
2014-10-07 11:09:35 +01:00
Mike Jolley
700369c386
Refund report changes
...
1. Ensure refund order_total is negative and reflects the full amount,
not just line items
2. Ensure transients are cleared when doing refunds
3. sales-reports order types so we can exclude refunds from pure
‘sales’ reporting
4. Tweak placement of refunds in legend.
Closes #6411
2014-10-06 13:39:53 +01:00
shivapoudel
58595f0f2b
Absolute path fix for wc-order-functions.php
2014-09-21 00:55:04 +05:45
Mike Jolley
a3b522aff8
Prepare update queries.
2014-09-16 10:45:28 +01:00
claudiosmweb
066eb3c5b0
fixed wc_get_order_status_name() appear as wc 2.1 order status
2014-09-12 10:01:49 -03:00
claudiosmweb
2f1533ff94
created the wc_get_order_status_label() function
2014-09-09 14:14:10 -03:00
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
thenbrent
56c7d5fe96
Don't create redundant $payment_method var
2014-08-25 12:11:39 -07:00
Barry Kooij
9d5ce49805
Passed $args to dynamic class that inherits WC_Abstract_Order is never used.
...
Therefor the $args in the function and method in factory class seems unnecessary.
2014-08-15 14:56:43 +02:00
Barry Kooij
6655188f0b
Changed use of get_order with wc_get_order
2014-08-15 14:29:21 +02:00
Barry Kooij
e97d06a0f0
Renamed function get_order to wc_get_order
2014-08-15 14:26:26 +02:00
claudiosmweb
532d06b560
fixed the wc_cancel_unpaid_orders() post_type query
2014-08-12 12:14:38 -03:00
Barry Kooij
a9e3c3bbe4
Use correct variable and correct property when counting processing orders.
2014-07-30 10:39:37 +02:00
Mike Jolley
c465c7235d
Merge branch 'credit-notes'
...
Conflicts:
includes/abstracts/abstract-wc-order.php
includes/class-wc-order-factory.php
includes/class-wc-post-types.php
includes/wc-formatting-functions.php
includes/wc-order-functions.php
2014-07-29 12:09:52 +01:00
claudiosmweb
7c141fcd41
prevented some errors when the order has no taxes
2014-07-28 10:59:55 -03:00
Max Rice
b192bd46f8
Add wc_update_order_item() function
2014-07-27 23:21:16 -04:00
Mike Jolley
5e663a7fa8
Show refunded line items inline
2014-07-25 16:48:19 +01:00
Mike Jolley
19b6922044
Refund line items and taxes
2014-07-24 15:34:14 +01:00
claudiosmweb
a3d0d5903e
removed a test
2014-07-23 19:28:57 -03:00
claudiosmweb
23628ad430
fixed undefined offset in wc_create_refund()
2014-07-23 13:56:43 -03:00
Mike Jolley
11835826de
A start on negative line items
...
@claudiosmweb
2014-07-23 17:41:35 +01:00
claudiosmweb
954a5ddc23
only show refund via button when gateway supports refunds #3164
2014-07-22 12:13:35 -03:00
Mike Jolley
93155c9e11
Do not use before init.
...
#3164
2014-07-22 14:30:42 +01:00
claudiosmweb
93cf3c88bd
initial implementation of order items taxes
2014-07-19 01:08:02 -03:00
claudiosmweb
c1b8878587
removed order_type taxonomy from wc_create_refund()
2014-07-11 15:39:20 -03:00
Mike Jolley
755001f19b
Use order types where required
2014-07-11 12:43:42 +01:00
Mike Jolley
2545e55b73
wc_get_order_types and wc_register_order_type
...
Uses CPT rather than terms. #3164
2014-07-11 10:42:49 +01:00
Mike Jolley
280b884c28
Create refunds and process via gateway
2014-07-10 14:49:04 +01:00
claudiosmweb
87d8cd1c95
set order_type for refunds
2014-07-08 16:41:07 -03:00
claudiosmweb
7e36d05c75
created order_type taxonomy
2014-07-08 14:23:11 -03:00
Claudio Sanches
9701cfe2a7
Revert "order_type taxonomy and register_order_type() function"
2014-07-08 14:10:37 -03:00
claudiosmweb
840def82e7
fixed tax default value
2014-07-08 11:44:12 -03:00
claudiosmweb
1ba7788991
fixed refund tax
2014-07-08 11:34:09 -03:00
claudiosmweb
09cb28a7bb
created initial refund class and function
2014-07-08 11:32:47 -03:00
claudiosmweb
72aae0e69d
created order_type taxonomy and register_order_type() function
2014-07-07 16:19:51 -03:00
Coen Jacobs
86a4add087
Merge remote-tracking branch 'upstream/master' into order-factory-refactor
...
Conflicts:
includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
claudiosmweb
7fd6e9f0a0
moved the wc_ship_to_billing_address_only() function to wc-order-functions.php
2014-06-17 17:39:02 -03:00
Coen Jacobs
89ea6c46ab
Replace new WC_Order calls with get_order
2014-06-13 15:24:51 +02:00
Coen Jacobs
4ca9855bec
get_order wrapper function for new factory
2014-06-13 15:21:10 +02:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00