woocommerce/assets/js
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
..
accounting Grunt dev 2017-06-19 12:49:34 +01:00
admin Use strict checking 2019-08-02 14:55:17 +02:00
flexslider Minify 2019-04-16 14:36:37 +01:00
frontend Add 'applied_coupon' trigger to checkout.js 2019-08-14 19:09:18 +03:00
jquery-blockui Grunt dev 2017-06-19 12:49:34 +01:00
jquery-cookie Grunt dev 2017-06-19 12:49:34 +01:00
jquery-flot recalc on remove/add 2017-08-10 16:32:24 +01:00
jquery-payment Merge branch 'add/15602-store-street-level-address' 2017-06-30 15:00:51 +01:00
jquery-qrcode Grunt dev 2017-06-19 12:49:34 +01:00
jquery-serializejson Grunt dev 2017-06-19 12:49:34 +01:00
jquery-tiptip Grunt dev 2017-06-19 12:49:34 +01:00
jquery-ui-touch-punch Grunt dev 2017-06-19 12:49:34 +01:00
js-cookie Grunt dev 2017-06-19 12:49:34 +01:00
photoswipe Update photoswipe 2019-02-20 11:49:55 +00:00
prettyPhoto Reduce the file size by merging two selectors 2018-11-02 17:06:30 +01:00
round Grunt dev 2017-06-19 12:49:34 +01:00
select2 Add select2 files back 2017-07-06 08:47:27 -07:00
selectWoo Fixed conflicts in SelectWoo .min files 2019-04-23 16:39:50 -03:00
stupidtable Grunt dev 2017-06-19 12:49:34 +01:00
zeroclipboard Merge branch 'add/15602-store-street-level-address' 2017-06-30 15:00:51 +01:00
zoom Zoom improvements for mobile 2018-05-08 14:48:25 +01:00