PluginProbe
MakeCommerce for WooCommerce / 3.0.11
MakeCommerce for WooCommerce v3.0.11
4.1.1 4.1.0 4.0.8 trunk 1.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 All 97 releases
makecommerce / payment / gateway / woocommerce / js / mc_paylater.js

mc_paylater.js in MakeCommerce for WooCommerce 3.0.11, at payment/gateway/woocommerce/js/mc_paylater.js

25 lines 865 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function($) {
2
3 if (MC_PAYLATER.type == 'variable') {
4
5 function paylater_block_changes( variation = null )
6 {
7 if ( variation != null
8 && variation != undefined
9 && variation != ''
10 && variation != 0 ) {
11 $( "#mc_paylater_parent" ).load( location.protocol + '//' + location.host + location.pathname + "?paylater_variation_id=" + variation + " #mc_paylater_parent>*", function() {
12 $( '.mc_paylater_block' ).slideDown( 'slow' );
13 } );
14 }
15 }
16
17 paylater_block_changes( $( '.variation_id' ).val() );
18
19 $( '.variation_id' ).change( function() {
20 $( '.mc_paylater_block' ).slideUp( 'slow' );
21 paylater_block_changes( $( '.variation_id' ).val() );
22 } );
23 }
24 });
25