Commit Graph

106 Commits

Author SHA1 Message Date
Mike Jolley 5e663a7fa8 Show refunded line items inline 2014-07-25 16:48:19 +01:00
claudiosmweb 7328212c03 fixed the get refunds method 2014-07-24 12:09:03 -03:00
claudiosmweb ef445aa1d7 removed a test ¬¬ 2014-07-21 00:00:18 -03:00
claudiosmweb 299c12bd57 fixed order get_total_refunded() method 2014-07-20 23:48:23 -03:00
Mike Jolley 755001f19b Use order types where required 2014-07-11 12:43:42 +01:00
claudiosmweb 31a8483b4f created method to get the total amount already refunded 2014-07-08 16:59:38 -03:00
claudiosmweb 7d340abd6d fixed the get_refunds() method in WC_Order class 2014-07-08 16:41:03 -03:00
claudiosmweb 235deeacfe created get_refunds() method for WC_Order class 2014-07-08 15:23:22 -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
Mike Jolley 529b471470 Merge pull request #5771 from helgatheviking/fix/order-add_product-meta
wc_add_order_item_meta() the _line_total doesn't use the correct total
2014-07-02 13:58:48 +01:00
Mike Jolley 101254a6a3 Have get_product_from_item only return variable product if it exists, and show on the order item row if the variation no longer exists.
Fixes #5536
2014-07-02 13:58:10 +01:00
Kathy Darling cf322e9625 wc_add_order_item_meta() the _line_total doesn't use the total 2014-07-01 10:48:30 -04:00
Mike Jolley 779613b062 Merge pull request #5660 from tamarazuk/upstream
Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
2014-06-30 12:00:25 +01:00
Mike Jolley 50a4c5bd23 Merge branch 'variation-stock-management'
Conflicts:
	includes/class-wc-product-variation.php
2014-06-27 11:15:42 +01:00
Mike Jolley 0f6f04e017 Added wc_stock_amount() core function and replaced intval
#4612
2014-06-25 11:25:28 +01:00
Mike Jolley 85befad283 Use max() to prevent division by zero Closes #5696 2014-06-23 12:56:11 +01:00
Mike Jolley cf3cca4c8e Merge branch 'feature-wc-create-order' 2014-06-18 16:07:29 +01:00
Mike Jolley 94549e1462 Notices 2014-06-13 16:11:15 +01:00
Mike Jolley 93778e72b0 Tax class fixes + notices 2014-06-13 15:53:59 +01:00
Mike Jolley 0f22691767 Calculate tax and totals methods 2014-06-13 15:21:15 +01:00
Coen Jacobs 476870d9f2 Created WC_Abstract_Order, extended by WC_Order 2014-06-13 15:37:20 +02:00
Mike Jolley 76d160c8fc Fire action when adding product 2014-06-13 10:20:38 +01:00
Mike Jolley a6da6e3353 Also use qty 2014-06-13 10:18:03 +01:00
Mike Jolley 5aa8b47c6b When setting totals, if not set get the data from the product 2014-06-13 10:14:18 +01:00
Mike Jolley 375a0e2652 static WC_Tax class - no need for a constructor in this 2014-06-12 16:47:43 +01:00
Tamara Zuk ee5d294ed7 Introduce 'woocommerce_get_order_item_totals_excl_free_fees' filter
The new filter will allow plugins that add order item meta to choose to
display the free fee items on order details pages and emails.
2014-06-11 19:16:27 -04:00
Mike Jolley 80ba9aa9c9 woocommerce_order_add_fee 2014-06-11 16:53:49 +01:00
Coen Jacobs 386751addf Support storing transaction id in payment_complete method 2014-06-11 16:36:32 +02:00
Mike Jolley ef3e728855 Setters + wc_create_order + wc_update_order for #4169 2014-06-11 15:10:03 +01:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Mike Jolley 32e77897cc Placeholder functions 2014-06-06 15:51:09 +01:00
Mike Jolley f30e95663b Prefixes for queries 2014-06-03 11:29:01 +01:00
Mike Jolley 9307fcf66b Internal wc- prefix and get_status filter 2014-06-03 11:04:56 +01:00
Mike Jolley 66f36d3f08 woocommerce_order_has_status filter 2014-06-03 10:47:16 +01:00
Mike Jolley 309f700283 has_status 2014-06-03 10:45:33 +01:00
Mike Jolley e0a74fffc4 implement is_status() 2014-05-30 17:43:21 +01:00
Mike Jolley fca32a98de Implement is_status functions and update_status 2014-05-30 17:16:22 +01:00
Mike Jolley 05b9b8af4e get_status_name + my_orders 2014-05-30 16:29:44 +01:00
Mike Jolley 3e687d2a6e Get status and is_status helpers which compare against post_status 2014-05-30 15:26:28 +01:00
claudiosmweb 96ea1d8bc4 introduces the WC_Order::needs_shipping_address() method 2014-05-28 16:20:36 -03:00
Coen Jacobs 6ab76b7ab0 Added parameter to get line subtotal filters 2014-05-26 16:44:36 +02:00
Manos Psychogyiopoulos 86b8e3e372 Add punctuation to fees 2014-05-14 18:22:55 +03:00
Mike Jolley 439ec0d4f6 Merge pull request #5425 from superdave2u/master
Updated the get_download_url() function - fixes #5424
2014-05-08 15:18:29 +01:00
Mike Jolley 3670afdffb [2.2] get_user and get_user_id methods
Closes #5429
2014-05-07 15:11:34 +01:00
Dave Mainville cabc84bf61 Closes #5424 2014-05-05 16:37:57 -04:00
Mike Jolley ca9955fa9a Update stock amounts with DB queries Closes #5367
@claudiosmweb and @coenjacobs please review
2014-04-25 15:28:02 +01:00
Mike Jolley 9b873093eb Check has_file when sending order emails for downloadables
Fixes #5296
2014-04-24 16:00:01 +01:00
Mike Jolley bf0fafa17b If billing email is not set and user ID is set, use email
Fixes #5356
2014-04-24 14:45:57 +01:00
Mike Jolley c09f710775 Merge pull request #5334 from ragulka/valid-order-statuses-improvements
Valid order statuses improvements
2014-04-23 15:07:15 +01:00
Illimar Tambek f07ff6acb5 Introduce `woocommerce_valid_order_statuses_for_payment_complete` filter
Since it's possible to filter the valid order statuses for payments and cancels,
it only makes sense to be able to do the same when checking which statuses
are valid for completing a payment.
2014-04-17 19:28:52 +03:00