Commit Graph

201 Commits

Author SHA1 Message Date
Pan Seba d5952d3b00 Trigger removed_coupon_in_checkout event after coupon removal on checkout 2020-05-18 13:16:30 +02:00
Claudio Sanches 9e1738be70
Revert "Eliminate update order AJAX request on checkout page load" 2020-02-04 14:19:52 -03:00
Claudio Sanches 7fe05d46e4
Revert "Remove code that ignored the woocommerce_ship_to_destination option" 2020-02-04 14:18:48 -03:00
Claudio Sanches f4263d8c11 Remove code that ignored the woocommerce_ship_to_destination option 2020-01-29 12:18:14 -03:00
Rafi Yagudin e03861640e Add a triggerHandler called "checkout_place_order_success" so plugin developers can hook into AJAX order success event. 2019-12-22 17:06:50 -07:00
Christopher Allford ed7c891675 Adjusted the checkout email validation regex to be more accurate 2019-12-17 13:18:53 -08:00
Gerhard Potgieter 8827dfb3a4
Merge pull request #24609 from JohnTendik/feature/24429
Added unload event to prevent reload during checkout (#24429)
2019-12-06 14:57:59 +02:00
Claudio Sanches 6bdb7f7a83
Merge pull request #24271 from woocommerce/update/avoid-ajax-request-on-checkout-page-load-2
Eliminate update order AJAX request on checkout page load
2019-12-05 21:09:10 -03:00
Vedanshu Jain 05a89e849e
Merge pull request #24227 from woocommerce/update/replace-checkout-fragment-only-on-change
Cache checkout fragments and update DOM on change only
2019-11-15 18:49:58 +05:30
Gerhard Potgieter dec4a381fe
Merge pull request #24720 from ChromeOrange/master
Allow select fields in credit card form to maintain value when the checkout form refreshes
2019-09-30 14:36:16 +02:00
Andrew Benbow d339452bce
Update checkout.js 2019-09-30 10:24:00 +01:00
Andrew Benbow f8b268d3a0
Update checkout.js 2019-09-30 10:22:08 +01:00
johntendik 0a9563dacd fixing indentation 2019-09-10 20:43:13 -04:00
johntendik 366681038f added unload event to prevent reload during checkout 2019-09-10 20:23:10 -04:00
kolyasapphire faf05c00c2 Renamed the trigger
Changed to applied_coupon_in_checkout to avoid unexpected behaviour
2019-08-23 16:15:57 +03:00
kolyasapphire fe3395cd6b Add 'applied_coupon' trigger to checkout.js
To check it’s working correctly:

add_action( 'woocommerce_after_checkout_form', 'alert_on_coupon');
add_action( 'woocommerce_after_cart', 'alert_on_coupon');

function alert_on_coupon() { ?>
<script type="text/javascript">
	jQuery(document).ready(function($) {
    $( document.body ).on( 'applied_coupon', function(event,code){
    	alert(code);
    });
});

$( document.body ).trigger( 'applied_coupon', [ data.coupon_code ] );
2019-08-14 19:09:18 +03:00
Paul Dechov e15e51868c Remove accidental jQuery references in favor of $ 2019-08-02 18:10:47 -04:00
Paul Dechov 429161e1c6 Add logic to initialize checkbox based on whether shipping address is different 2019-07-30 18:42:51 -04:00
Paul Dechov 264556be91 Call ship-to-different-address change handler manually in lieu of event trigger
Avoids unnecessary update_checkout call on initialization.
2019-07-29 22:39:19 -04:00
Paul Dechov 4a94037c52 Replace update_checkout request on checkout page load with updated_checkout event 2019-07-29 22:32:56 -04:00
Paul Dechov c3076209c7 Cache checkout fragments and only update DOM on change 2019-07-24 18:00:29 -04:00
Mike Jolley 3070961783 Merge branch 'pr/23047' 2019-03-18 11:02:33 +00:00
Mike Jolley 5d22b3a2eb data check 2019-03-18 11:02:26 +00:00
JeroenSormani 5faab22c77 Merge remote-tracking branch 'upstream/master' into checkout-input-fields 2019-03-16 10:46:49 +01:00
JeroenSormani 772244d82f Recognize all :input checkout fields with ID, not just input (JS) 2019-03-16 10:46:18 +01:00
popala 023d9fe9ed
Fixed "e is null" error on checkout page
Fixed "e is null" on checkout page which caused the order panel to be disabled.
2019-03-13 19:37:14 +01:00
Mike Jolley b70471448c Merge fix/21858 2019-02-12 16:19:32 +00:00
Mike Jolley 3948e9f83c BlockUI on order form submit 2019-02-05 11:40:10 +00:00
Mike Jolley fa9465a2cb novalidate order review form 2019-02-05 11:23:47 +00:00
Mike Jolley ec1d44c742 Prevent selected payment method description box from sliding up
Closes #21770
2019-01-15 12:14:55 +00:00
Dominik Krebs 0af4941187 corrected code style 2018-09-26 16:10:37 +02:00
Dominik Krebs 64399b65b9 fixes an issue with additional payment select fields having 'disabled selected' 2018-09-19 13:35:00 +02:00
Peter Fabian 11da1898b8 Removed unnecessary form change trigger on load of checkout page. 2018-06-28 18:12:04 +02:00
Mike Jolley d74db270b8 stopPropagation when payment method selected 2018-06-07 15:41:25 +01:00
Chase Wiseman 346e710314 Only hide .payment_box elements init for multiple methods
Prevents hiding a single payment method’s UI on the order pay page
2018-05-22 14:42:16 -07:00
Mike Jolley 9cb0d3c884 Slideup during init to prevent jump on RTL sites 2018-05-11 11:55:22 +01:00
pierrebuet 030cb2690a Identation change 2018-04-27 22:42:42 +02:00
pierrebuet 74c7fdb35c Modify jQuery selector to include select tags 2018-04-27 01:20:53 +02:00
Mike Jolley 860e7a5d23 Merge branch 'master' into update/gdpr-checkout-customizer 2018-04-16 18:02:28 +01:00
Peter Fabian 2baa7fbbdc Added scroll to notices to cart page 2018-04-12 13:34:34 +02:00
Mike Jolley 3140a0fb62 More customistion options for terms and conditions. 2018-04-06 11:43:30 +01:00
Shiva Poudel 56317052f2 Fix - Order button text on payment method change
CC @kloon
2017-11-18 20:08:19 +05:45
Mike Jolley e7f1a3f22f scrollElement.length 2017-11-08 14:12:36 +00:00
Mike Jolley e14814aa2a min 2017-11-01 16:41:01 +00:00
Mike Jolley aab1d688d1 Add a wc_checkout_form.scroll_to_notices helper and use scrollIntoView
scrollIntoView lets us scroll something to the centre of the viewport.
This ensures the messages, or top of the checkout, comes into view.

Falls back to the old logic for older browsers.

Closes #17220 which didn’t solve the issue.
2017-11-01 16:40:31 +00:00
Mike Jolley 1da13769c8 Merge branch 'master' into pr/16550
# Conflicts:
#	assets/js/frontend/checkout.min.js
2017-11-01 12:10:39 +00:00
Mike Jolley b6b505e2c5 Use custom event instead of blur to trigger validation
Closes #17404
2017-10-27 18:00:08 +01:00
Mike Jolley a7b2ae8661 Update shipping code to see if full address has been entered before showing no shipping notice
Fixes #16757
2017-09-08 14:54:15 +01:00
Mike Jolley 394a426be7 Remove change from this.queue_update_checkout 2017-08-22 11:54:44 +01:00
Emil Kjær Eriksen 722749f14e Add payment_method_selected event on checkout 2017-08-21 15:04:39 +02:00