Commit Graph

247 Commits

Author SHA1 Message Date
InoPlugs Webdesign a284d7fe69 Update class-wc-checkout.php
We need this hook to mark the fees our plugin (additional fee based on gateway) adds to the the order. Otherwise we can't tell if a fee was added by the user (Add fee button), by another plugin or by our plugin.
2014-03-11 19:48:51 +01:00
Mike Jolley f35c3708bb Rounding order_tax and order_shipping_tax restricts our ability to get an accurate tax_total after an order is made. Fixes some paypal rounding requests.
@coenjacobs
2014-02-20 15:41:08 +00:00
Mike Jolley 3be6664f05 Handle get_rate_code when no matching rate is found. Prevents notices. 2014-02-17 15:11:50 +00:00
Mike Jolley c0c21c8364 Unify textdomains Closes #4814 2014-02-17 13:14:45 +00:00
Mike Jolley 1a92bfeb39 If logged in, and no billing_email is set, set it. 2014-02-13 15:51:16 +00:00
Mike Jolley 5b5183bb35 The checkout's get_value method should return null if a value is not yet set - this allows the 'default' in woocommerce_form_field to be used as a fallback Closes #4746 2014-02-13 09:52:48 +00:00
justinstern 9a2b801e7b A Pair of Useful Shipping Related Actions 2013-12-30 18:59:09 -05:00
Illimar Tambek 9b43089562 Only continue getting checkout value if null 2013-12-27 15:39:21 +02:00
Mike Jolley 33f07a05a8 Pass order ID to woocommerce_payment_successful_result Fixes #4378 2013-12-23 15:47:56 +00:00
Mike Jolley 418a8785b0 woocommerce_checkout_customer_userdata filter Closes #4235 2013-12-03 12:27:53 +00:00
Mike Jolley 6db8ac6f6f Made error counts work with new notices api Closes #4201 2013-11-27 16:15:53 +00:00
Coen Jacobs 47ae00be28 Page functions woocommerce to wc refactor 2013-11-25 15:07:22 +01:00
Coen Jacobs f7df17db1c Order functions woocommerce to wc refactor 2013-11-25 14:54:52 +01:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs 1663eafb68 Customer functions woocommerce to wc refactor 2013-11-25 13:52:53 +01:00
Coen Jacobs aaa14894ca Core functions woocommerce to wc refactor 2013-11-25 13:45:04 +01:00
toddlahman 0c07663b26 wc_ delimiter to identify start of uniquid 2013-11-20 00:03:49 -08:00
thenbrent 2fcd615f88 Update calls to wc_print_messages() function
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent e14e3842b0 Update calls to wc_error_count() function
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 0d45e19fcf Update calls to wc_add_error() function
Part of #4034
2013-11-12 20:59:39 -08:00
Mike Jolley 3fd02a57d0 Locales - store standardised values, and display using locale in admin #3862 2013-11-12 17:43:30 +00:00
James Koster 1fbb6249ff Replaced → / ← on frontend with icons from our font. closes #4009 2013-10-28 09:45:59 +00:00
Mike Jolley 51aba21d76 Rounding + precision for taxes. Store unrounded. Round down (for the moment) for taxes 2013-10-24 13:15:42 +01:00
Mike Jolley 5d2e1ac031 Refactor coupon code so coupons get the actual discount amount, redone edit coupon screen with tabs, added coupon item limits which Closes #3902 2013-10-18 18:10:58 +01:00
Gregory K da19fed52b class-wc-checkout.php : PHPDoc fixes 2013-10-06 00:44:04 -04:00
Mike Jolley 9361ef3120 more hooks closes #3860 2013-10-04 16:58:00 +02:00
Mike Jolley 633ead9390 woocommerce_checkout_update_customer_meta hook Closes #3860 2013-10-04 16:40:03 +02:00
Mike Jolley cabddc4e9f Maintain line breaks. Closes #3882 2013-10-04 14:31:43 +02:00
Mike Jolley 24a3e3e17b Format decimals with single function, convert locale to standard form. #3862 2013-10-01 17:54:32 +01:00
Mike Jolley 3bedaf5e94 Number format taxes, and allow 'auto' DP (we don't want to round these values) Closes #3703 2013-10-01 13:02:58 +01:00
Patrick Garman 1292a9f51a wp_insert_post should have true as $wp_error parameter
Add `true` as $wp_error parameter for wp_insert_post, otherwise it returns zero instead of a WP_Error object and the checkout process is not stopped.

@mikejolley - the messages from WP_Error are not displayed or logged, making debugging this difficult. Maybe we should check WP_DEBUG and display the message if it is set to true? either that or actually use the logger in WooCommerce for the first time?
2013-09-24 16:08:32 -05:00
Mike Jolley 4ef07f6a66 Cleanup defaults. Closes #3778 2013-09-19 15:02:17 +01:00
Mike Jolley 3ee6e2fa22 Validate rules, instead of doing it by key. Closes #3792. 2013-09-19 14:39:53 +01:00
Mike Jolley 5f741819b9 Merge pull request #3757 from ragulka/address-hooks
Allow using custom address types
2013-09-13 08:03:55 -07:00
Mike Jolley 355dd16962 Removed @coenjacobs helpers and cleaned up main clas 2013-09-12 14:41:02 +01:00
Illimar Tambek 41296943a6 Add woocommerce_checkout_get_value filter. 2013-09-10 17:23:26 +03:00
Mike Jolley e1631bd084 Reloads checkout after registration which fixes #3612, removes some notices preventing login cookie being set, moves cart check for #3162
No perfect solution for #3162. DB locking would probably cause more
issues that its worth, we cannot reliably use transactions as some
clients still use MyIsam. Best to accept orders and deal with stock
conflicts after the fact.
2013-09-04 11:26:19 +01:00
Mike Jolley 54b3d53a1b Flag a refresh when creating an account to prevent nonce issues. Fixes #3612.
@coenjacobs Might be for .14? Part of it anyway, can't cherry pick this
one.
2013-09-02 17:43:57 +01:00
Mike Jolley a66472d148 Order panel improvements + save multiple shipping methods 2013-08-16 16:43:26 +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 e29c67b6bc Update user meta for billing fields 2013-08-08 12:38:26 +01:00
Mike Jolley 03af136986 Separate ship to options from sell to. Closes #3215. 2013-08-02 16:54:28 +01:00
Mike Jolley f7cba5948b Filter woocommerce_checkout_customer_id Closes #3491 2013-07-30 14:50:53 +01:00
Mike Jolley 0ef33da03c Make account password 'required' when needed. Closes #3313. 2013-07-19 06:58:45 +01:00
Mike Jolley c72ae714f7 Removed nonce helper
@coe
2013-06-11 17:55:55 +01:00
Mike Jolley 646a8a008c Make use of new functions 2013-06-11 15:59:54 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00