Commit Graph

865 Commits

Author SHA1 Message Date
Adam Jones 0f7398d607 Fixing an issue with an on-body click triggering on pages that do not contain the referenced span.description element. Wrapped it in an if statement to make sure element exists beforehand. 2019-10-02 15:32:36 +01:00
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
Gerhard Potgieter 27be925552
Merge pull request #24406 from kolyasapphire/add-applied_coupon-trigger-to-checkout
Add 'applied_coupon' trigger to checkout.js
2019-09-30 13:59:37 +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
Gerhard Potgieter e8d617156d
Merge pull request #24665 from miguelfspinto/patch-4
Enable append hashes on custom events (like ajax requests)
2019-09-27 13:35:48 +02:00
Miguel Pinto fff09c9811
Enable append hashes on custom events (like ajax requests) 2019-09-23 16:04:31 +01: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
vedanshujain 970271d0b7 Remove `blur` event to keep focus on select box.
This removes the `blur` call so that focus on select box is maintained for accessibility. This call was added way back in 2012 but from what it looks like, it can be removed safely.
2019-08-06 22:08:00 +05:30
Peter Fabian 2f19640ce1 Fixed jshint problems. 2019-07-15 12:59:06 +02:00
Rodrigo Primo 6e3f22fd6c Tabs should be used for indentation instead of spaces 2019-07-12 10:57:18 -03:00
Rodrigo Primo 0809c96168 Merge branch 'master' into fix/23283 2019-07-12 10:55:43 -03:00
Gerhard Potgieter 9ca6dad11e
Merge pull request #23433 from justlevine/master
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
Gerhard 7038c73ab4 Merge branch 'master' into update/exclude-compiled-assets-from-git 2019-07-09 10:57:40 +02:00
Claudio Sanches 61346720c7 Allow enforce password strength meter on checkout 2019-05-24 15:27:26 -03:00
Gerhard bb2d38db49 Remove all frontend minified js files 2019-05-07 10:20:28 +02:00
justlevine 78ae91a77d
Add input-classes to preserve user defined classes on change 2019-04-22 19:43:41 +03:00
Mike Jolley 6579972fd3 Minify 2019-04-16 14:36:37 +01:00
Mike Jolley 2e96f4ab3f override addCaptionHTMLFn 2019-04-16 14:33:41 +01:00
Mike Jolley 81ac8664a9 Avoid update cart on non-cart screens 2019-04-12 12:14:54 +01:00
Mike Jolley 2f9d6ac669 queue remove from cart 2019-04-12 12:05:07 +01:00
Mike Jolley e9836ef298 Add queue for add to cart requests 2019-04-12 11:58:49 +01:00
David Stone 65c4d7d37c Allow wc_product_gallery to be called without any arguments. 2019-04-01 22:56:54 -06:00
Mike Jolley 308d08f97e Run grunt tasks
Fixes warnings from grunt so files are minified correctly. Copied fixes that went into release branch but not master earlier this week.
2019-03-20 20:08:52 +00:00
Mike Jolley 7c42ac0a29 Also remove hardcoding of attributes on frontend state fields 2019-03-19 16:59:22 +00:00
Mike Jolley 81a4b81e7c
Merge pull request #23066 from woocommerce/fix/23055
preventDefault when dismissing store notices
2019-03-18 11:12:26 +00:00
Gerhard 2b90cf845e Pass event as parameter. 2019-03-18 13:09:38 +02: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
Gerhard 63f8359491 preventDefault when dismissing store notice, this fixes jumping of page to top when clicking store notices at the bottom of the page. 2019-03-18 10:23:25 +02: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
Mike Jolley f90f0203b5 Grunt dev 2019-03-15 12:21:51 +00: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 53a7de5244
Merge pull request #22948 from woocommerce/fix/22940
Correctly show state fields after posting the edit address form
2019-03-12 13:20:32 +00:00
Mike Jolley 406364fefb Tidyup unused vars 2019-03-06 15:33:20 +00:00
Mike Jolley 023217c03d Remove required when changing to optional 2019-03-06 15:18:27 +00:00
Mike Jolley 9b6ded2cef Custom init event for state fields 2019-03-06 15:11:39 +00:00
Mike Jolley e1ff1bfae9 Update from master 2019-03-06 12:37:24 +00:00
Mike Jolley f707eeda3e Update from master 2019-03-05 13:31:14 +00:00
Mike Jolley fc1a274fcb Check for hover after timeout 2019-02-20 17:22:43 +00:00
Mike Jolley 76b7a4facf cs 2019-02-20 16:37:40 +00:00
Mike Jolley afe219d854 Select an option vs state 2019-02-18 11:49:46 +00:00
Mike Jolley 34998caa43 Add time to fragment request 2019-02-15 17:35:44 +00:00
Mike Jolley e830b42ba7 Remove old safari code 2019-02-15 17:10:17 +00:00
Mike Jolley b70471448c Merge fix/21858 2019-02-12 16:19:32 +00:00
Mike Jolley 4b8e808a97
Merge pull request #22664 from woocommerce/fix/21788
BlockUI on order form submit
2019-02-12 16:11:08 +00:00
Mike Jolley 8404b644da
Merge pull request #22645 from woocommerce/update/21963
Add notice hash to store notice cookie
2019-02-08 13:05:03 +00:00
Gerhard Potgieter d0898e6a80
Merge pull request #22629 from woocommerce/performance/22260
Use `get` instead of `load` on cart page
2019-02-06 15:47:17 +02:00