Commit Graph

91 Commits

Author SHA1 Message Date
Jake Johnson afe3e1f236 Update checkout when changing address text fields. Fixes #8308 2015-06-05 11:27:44 -07:00
Mike Jolley c1e3da8bcb Return real json response during checkout
Closes #8086
2015-05-15 13:51:51 +01:00
Claudio Sanches 1dadbb2842 Fixed coding standards for #7879 2015-04-13 12:37:22 -03:00
Danny van Kooten 88f2e690bb Changing all inefficient selectors of $('body') to $(document.body), which is about 80% faster (and even more on mobile, see https://jsperf.com/jquery-body-vs-document-body-selector/2 ). 2015-04-03 14:21:47 +02:00
Mike Jolley 21c5513526 Added endpoint for faster ajax requests 2015-03-20 12:28:26 +00:00
Mike Jolley 492c8e361b No selected payment method? Check the first. 2015-02-24 10:43:11 +00:00
Mike Jolley 600b561fd9 Small timeout on checkout update action to prevent several triggering at once.
Closes #7423
2015-02-16 15:45:25 +00:00
Mike Jolley 4cfabb8e16 Only update checkout when form.checkout exists
Fixes #7422
2015-02-16 14:57:04 +00:00
Mike Jolley 68049d08fd Fix place order button text on init
Closes #7435
Fixes #7428
2015-02-16 12:46:00 +00:00
Jack Gregory 5ea03dc8df Update form selector 2015-02-02 11:53:07 +00:00
Jack Gregory b468710ab0 Fix coupon message output during checkout 2015-02-01 14:08:20 +00:00
Brent Shepherd 3a1dc68ff9 Fix typo 2015-01-27 14:42:36 -08:00
Jack Gregory acfc4f5b55 Typo in assets/js/frontend/checkout.js:437 2015-01-27 09:22:38 +00:00
Mike Jolley 0f5c6c4219 Add error handler/debug info in checkout ajax #7176 2015-01-26 14:24:03 +00:00
Mike Jolley 741ef73b99 Only hide messages when placing order - not when updating fields.
Closes #6964 Pending @barrykooij approval
2015-01-06 17:49:22 +00:00
Mike Jolley 054d499636 Made checkout JS more modular 2015-01-06 17:49:22 +00:00
Barry Kooij 3f0a8be3d2 Merge branch 'master' into enhancement/checkout-order-review-error-handling 2014-12-11 12:10:53 +01:00
splashingpixels 25b6377298 ajaxified coupon removal on checkout page for better UX closes #6881 2014-12-07 22:15:03 -08:00
Barry Kooij 438988d9c7 Added the possibility to display notices and/or force reload on order review. 2014-12-04 09:40:49 +01:00
Kathy Darling 62db978078 stray console.log 2014-12-01 16:34:38 +01:00
Mike Jolley 2e398a3a79 Decoupled the order summary and payments area. Both are updated independently via ajax fragments and can be moved around via actions. TEMPLATES OVERRIDING THESE TEMPLATES WILL NEED TO UPDATE THEIR FILES.
Closes #5781
Closes #6570
2014-11-26 14:19:53 +00:00
claudiosmweb c683720b02 Removed old ajax_loader_url param from all js files 2014-11-14 09:52:44 -02:00
Mike Jolley cf867fec35 Decode redirect URL only when needed to prevent PayPal issues
Fixes #5798
2014-10-23 15:33:12 +01:00
Mike Jolley 91149c4ac3 Backwards ship-to-different-address logic on checkout.
When you choose the option to ship to billing only, the second
condition would make the checkout try to set shipping address to
non-existent fields. cc @claudiosmweb
2014-09-01 10:54:16 +01:00
justinstern ce3ac21ab3 Checkout Update Totals for Radio Fields 2014-06-11 12:32:23 -04:00
Mike Jolley aeeb68f3ff [2.2] Respect login hidden toggle Fixes #5479 2014-05-14 11:38:06 +01:00
Mike Jolley 5d872918d6 Change the way order review data is appended to checkout to reduce likelihood of error
Fixes #5332
2014-04-24 15:08:38 +01:00
Mike Jolley 5810fe97a6 Prevent totals refreshing on every keydown event on the checkout
Fixes #5240
2014-04-07 12:42:54 +01:00
JDGrimes f3ab25c12c Check wc_checkout_params.is_checkout against string '1' instead of int 1
This was causing `’init_checkout’` not to be triggered on page load. I
noticed this when the taxes for an order weren’t being shown on the
checkout page until changing the billing address.

Introduced in b85b1ab03b
2014-03-28 16:46:33 -04:00
Mike Jolley 995f6a48f1 Trigger click event correctly in checkout 2014-03-24 11:16:07 +00:00
splashingpixels b85b1ab03b frontend checkout jshinted and coding standards 2014-03-18 20:42:53 -07:00
jmotes 1be965cdf9 Fix for #5106 - allow checkout in older IE 2014-03-11 18:54:37 -05:00
Niko Wicaksono e1d3cb6dd8 Allow city field to use another input method 2014-03-10 10:05:35 +07:00
Marc Pfister e365413cfc trim whitespace so parseHTML only contains HTML 2014-02-28 08:18:41 -07:00
Mike Jolley 3b8cbe350b Ensure button text stays changed 2014-02-24 15:39:15 +00:00
Mike Jolley 9a115dc1f4 Use parseHTML and enforce 1.8 jquery Closes #4899 2014-02-24 15:34:28 +00:00
Mike Jolley 9f7363a717 Turn off cursor for IE Closes #4824 2014-02-17 12:09:35 +00:00
toddlahman 13c24b410e Removed (document).ready from jQuery scripts
jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
2014-01-30 18:44:17 -08:00
Mike Jolley 39344f2ed5 Allow gateways to change the checkout place order button text on selection. Closes #4573 2014-01-28 11:25:57 +00:00
Mike Jolley c6cd7e4017 Sliding payment boxes tweaks Closes #4538 2014-01-20 15:18:47 +00:00
splashingpixels 74f0d1c4c6 fixes shipping total not updating when select method is used on checkout page 2014-01-15 21:22:43 -08:00
Mike Jolley 7ddd4d012a Move localisation to address-i18n.js for account page. Closes #4446 2014-01-08 14:38:20 +00:00
Jared Cobb 9fc47db17f Make frontend scripts safe to run on non WC pages (check for objects)
For a more detailed explaination of why this is helpful, see
Issue #4202. In short, from a dev ops perspective, if we want to build /
concatonate our front end scripts into a single application.js file, we
need to ensure scripts first check for dependent global object helpers
before trying to use them. For example, there are several objects
(created via PHP using `wp_localize_script`) which generate objects such
as `wc_single_product_params`. These objects will not exist on most
other pages, however these scripts attempt to execute code that
references these objects.
2013-12-04 12:15:24 -07:00
Mike Jolley af34b43ee6 Tweaks for #4239 2013-12-03 12:14:12 +00:00
Ewout Fernhout bfa4ce53ff Allow custom checkout fields to be localized 2013-11-28 15:46:08 +01:00
Mike Jolley 5f7753b343 Checkout error hook
@coenjacobs useful for .15 IMO
2013-09-16 14:55:21 +01: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 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
Legradi Szabolcs 94f8baee1a Coupon slidedown animation clipping effect, fixes #3590 2013-08-06 10:36:28 +02:00