Commit Graph

77 Commits

Author SHA1 Message Date
Coen Jacobs 386751addf Support storing transaction id in payment_complete method 2014-06-11 16:36:32 +02:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02: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
Akeda Bagus 2a97f07d47 Typo fix. 2014-04-15 22:56:35 +07:00
Mike 16463e339e Change \WC_Order::add_order_note cap to edit_shop_order instead of manage_woocommerce 2014-04-03 14:33:54 +02:00
Mike Jolley 2f9860c583 Expanding line item_meta causes conflicts if attributes are named with things like 'name', 'type' or 'qty'. Added blacklist to exclude unsafe values. Closes #5100 2014-03-19 12:58:39 +00:00
justinstern 6dfce64e47 Don't trailingslash Order Cancel URLs with a Query String
With non-pretty permalinks enabled, this was producing a URI like
http://example.com/?page_id=7/  That final unnecessary trailing slash
messes up some redirect gateways that are passed the cancel URL
2014-03-11 00:04:49 -04:00
Mike Jolley 41183d1663 wc_delete_shop_order_transients functions and trigger when order status updates. Closes #4875 2014-02-26 15:43:19 +00:00
claudiosmweb bc98201d26 added the payment method title in order details, closes #4281 2014-02-15 03:14:04 -02:00
Mike Jolley 3bfbc9dfc5 Fix paypal shipping via text 2014-02-13 16:06:48 +00:00
Mike Jolley 767eba990d Return strings. Closes #4739 2014-02-12 12:21:36 +00:00
Coen Jacobs 9ae5cc5d8f get_subtotal_to_display docblock update. Closes #4693 2014-02-10 13:38:25 +01:00
Coen Jacobs 8b8cc20dab Merge pull request #4681 from thenbrent/master
Fix completing order payment for an order containing a deleted product
2014-02-10 10:30:01 +01:00
thenbrent 3187bfc32c Fix completing order payment for deleted product
When marking payment as complete on an order which contains a product which has
since been deleted, a fatal error will be thrown because the product is assumed
to exist.

The specific error is `PHP Fatal error: Call to a member function is_downloadable()`.
It occurs when checking if the order status should be set as completed or processing,
by determining if the product on the order is downloadable and virtual.

This patch will mark an order as "processing" if the product has since been deleted.
2014-02-08 11:37:21 -08:00
claudiosmweb 7dd98549d9 updated the WC_Order version to 2.1.0 2014-02-07 15:55:30 -02:00
claudiosmweb 93b5678617 fixed some coding standards in includes/class-wc-order.php 2014-02-07 15:55:07 -02:00
claudiosmweb 1c13e994de fixed the indentation in includes/class-wc-order.php 2014-02-07 15:41:28 -02:00
claudiosmweb 0d9752c04b fixed docblock for WC_Order::get_formatted_line_subtotal, closes #4667 2014-02-07 15:41:09 -02:00
Mike Jolley f46e6aefd7 Only show taxes in cart when taxes are enabled 2014-01-22 14:10:11 +00:00
Mike Jolley 858416605d Don't resort meta in admin 2014-01-07 10:38:28 +00:00
Mike Jolley cdb1ad5e9e On cancel, use cart page unless otherwise defined. Closes #4375 2013-12-30 14:09:50 +00:00
Gregory K 7b38c7300b Inconsistent return types: mostly TODOs, some fixes 2013-11-29 13:50:31 -05:00
Gregory K dd5a2fb334 PhpDocs 2013-11-27 13:20:31 -05:00
mihaigrigori b19fb1ee09 Explicit currency for order prices
Set the currency for the order prices to be the order's currency instead
of the shop's currency. When these are different, the order emails are
misleading.

Related to https://github.com/woothemes/woocommerce/pull/4143
2013-11-27 11:15:20 +02:00
Coen Jacobs 19688ad9ef Fixed several @return void clauses. There are more. No code changes in this commit, only PhpDocs
Closes #4216
2013-11-27 10:03:47 +01:00
Coen Jacobs 47ae00be28 Page functions woocommerce to wc refactor 2013-11-25 15:07:22 +01:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs aaa14894ca Core functions woocommerce to wc refactor 2013-11-25 13:45:04 +01:00
Mike Jolley 43807a0488 Accessing currency wrong 2013-11-20 17:25:48 +00:00
Mike Jolley 0dc0b9cbb0 Indenting fail. 2013-11-20 16:13:53 +00:00
mihaigrigori fac0bf69eb Show order currency
- method to return the order currency
- allow 'currency' parameter for 'woocommerce_price'
2013-11-19 15:13:11 +02:00
Mike Jolley 3fd02a57d0 Locales - store standardised values, and display using locale in admin #3862 2013-11-12 17:43:30 +00:00