Commit Graph

50 Commits

Author SHA1 Message Date
Mike Jolley b8eafe985e Set defaults to avoid error if too few args passed 2017-06-15 15:43:32 +01:00
Mike Jolley 55e9add8e5 More strict COD method matching
Fixes #15606
2017-06-14 12:17:28 +01:00
Mike Jolley 20637e53b8 For COD orders, force payment complete status to be completed. 2017-05-24 18:48:34 +01:00
Claudio Sanches 61b39c206f Removed default instructions, closes #12853 2017-01-17 16:11:49 -02:00
Mike Jolley 56fef5b4f6 More styling settings tweaks 2016-12-21 11:36:48 +00:00
Claudio Sanches 07ae13c51b Fixed coding standards recommended by WPCS 2016-10-13 16:51:18 -03:00
Attila Donáth 2968850786 Setup general properties in a separate method #12085
It is easier to extend the gateway class like that.
2016-10-13 18:23:51 +02:00
Attila Donáth 14f563fe02 Eliminate hardcoded payment method IDs #12085 2016-10-13 18:23:41 +02:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Rami Yushuvaev 83e938af1e i18n: Merge similar translation strings to reduce the total strings count #11905 2016-10-11 04:39:13 +03:00
Mike Jolley 9cca27f21e Take out admin check
@justinshreve I’m not sure why we had the admin check there, but I’ve
removed it because the setting of WP_ADMIN was breaking unrelated unit
tests. I think we should leave constants alone if possible and just
modify gateways.
2016-09-07 12:37:39 +01:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Mike Jolley 95b11606fc get_product_from_item -> get_product 2016-08-22 16:51:24 +01:00
Mike Jolley f4a4f6c361 Reduce stock and other notices 2016-08-09 14:15:04 +01:00
Mike Jolley 7685587b22 payment_method 2016-08-05 16:04:41 +01:00
Mike Jolley fce7771d82 Fix - Shipping method title display in COD settings. 2016-07-20 10:49:27 +01:00
Claudio Sanches 7d9d091767 Fixed mixed tabs and spaces 2016-07-11 16:56:35 +02:00
Mike Jolley 7a2e460206 COD: use on-hold if order contains download
Fixes #11015
2016-06-01 11:27:54 +01:00
Mike Jolley 29d35151a1 woocommerce_cod_process_payment_order_status filter
Closes #10522
2016-03-10 12:30:42 +00:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Ewout Fernhout ab85ebfbc4 check if product exists
fixes #9363
2015-10-15 09:43:53 +02:00
Mike Jolley a0be65596f COD: remove shipping check if the cart is 100% virtual.
@claudiosmweb
2015-08-13 23:54:16 +01:00
MindyPostoff 7418fd6c8d Update class-wc-gateway-cod.php
Prevent confusion that "Enable COD for virtual orders" will actually enable the payment method
2015-04-22 16:41:51 -04:00
Mike Jolley 50c6e1e4a0 select2 settings 2015-01-12 16:29:01 +00:00
Mike Jolley 626d7f4256 Moved email methods to emails class 2014-11-26 00:03:00 +00:00
shivapoudel bc5156ff4a Absolute path and Indentation fix for includes/gateways/*.php :) 2014-09-21 01:27:58 +05:45
Barry Kooij 6655188f0b Changed use of get_order with wc_get_order 2014-08-15 14:29:21 +02:00
Coen Jacobs 89ea6c46ab Replace new WC_Order calls with get_order 2014-06-13 15:24:51 +02:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Mike Jolley 4fa5ec8310 Merge branch 'master' of https://github.com/woothemes/woocommerce
Conflicts:
	includes/gateways/cod/class-wc-gateway-cod.php
2014-05-08 15:06:20 +01:00
Mike Jolley 1308662946 Option to toggle enable_for_virtual for COD, rather than just doing it.
Closes #5399
2014-05-08 15:05:34 +01:00
Mike Jolley a4b6c4eb4f Merge pull request #5415 from tamarazuk/patch-2
COD: no need to hide in admin
2014-05-08 15:04:55 +01:00
Mike Jolley 53deeb4be5 Cleaned up logic in email_instructions functions for @splashingpixels 2014-05-07 15:54:22 +01:00
Tamara Zuk a9ebcdd8c6 COD: check if cart is available before checking if it needs shipping 2014-05-06 16:04:25 -04:00
tamarazuk ec1b16340b COD: no need to hide in admin
Also fixes a fatal error when WC()->payment_gateways()->get_available_payment_gateways() is called in the admin
2014-05-03 01:32:37 -04:00
splashingpixels 945d4bedc6 gateway COD added instructions to email closes #5385 2014-04-27 21:17:40 -07:00
claudiosmweb d7e26d993c added method to check if order needs shipping in "pay for order" page 2014-04-24 15:33:14 -03:00
claudiosmweb 64a40c8657 removed not defined $wp variable in favor to get_query_var() function 2014-04-24 15:03:33 -03:00
Mike Jolley 6efbf89cd3 [2.2] Hide COD for virtual orders (no shipping) Closes #5369 2014-04-24 16:37:31 +01:00
Coen Jacobs 1e410ebcdc Code standards for #4856 2014-02-18 12:27:05 +01:00
Gerhard 3a9604bf78 Fix COD warning when you have hide shipping methods until address entered selected 2014-02-18 11:58:52 +02:00
Gerhard 0f47ed8df9 Fix warning on Thank You page with COD, closes #4320 2013-12-10 13:06:22 +02:00
Coen Jacobs 4afbd0b556 Merge branch 'function-call-refactor'
Conflicts:
	includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Coen Jacobs 47ae00be28 Page functions woocommerce to wc refactor 2013-11-25 15:07:22 +01:00
Mike Jolley 51ba9c393f WC globals 2013-11-25 14:01:38 +00:00
Mike Jolley d67c142070 Add data-placeholder Closes #3908. 2013-10-11 15:27:04 +01:00
Mike Jolley e01df544ec Reworked total templates to support coupon lines, and started support for multiple shipping methods per order.
@todo store shipping methods in the order
@todo test with PP shipping real world

cc @coe
2013-08-14 21:00:34 +01:00
Mike Jolley 110d8c3026 BACS, Cheque, COD Closes #3172
Rather than merging them (they are all different) I've refactered code
and added multiple accounts in BACS which has had multiple requests.
2013-08-05 16:34:54 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00