PluginProbe
seQura / 2.0.0
seQura v2.0.0
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / templates / checkout-script.php

checkout-script.php in seQura 2.0.0, at templates/checkout-script.php

23 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <script>
2 jQuery('.payment_method_sequra').show();
3 if( typeof window.sq_product_campaign === 'undefined' ) {
4 window.sq_product_campaign = jQuery('input[name=sq_product_campaign]:first').val()
5 }
6 jQuery('input[value=' + sq_product_campaign + ']').prop('checked', true);
7 jQuery('#payment_method_sequra').removeClass( 'input-radio' ).hide();
8 jQuery('label[for=payment_method_sequra').hide();
9 jQuery('div.payment_method_sequra').removeClass( 'payment_box' );
10 jQuery('input[name=sq_product_campaign]').on('click', function () {
11 jQuery('#payment_method_sequra').prop('checked', true).click();
12 window.sq_product_campaign = jQuery( this ).val();
13 jQuery('input[name="payment_method"]').trigger('change');
14 });
15 jQuery('input.input-radio:not(.sq-input-radio)').on('click', function () {
16 jQuery('input[name=sq_product_campaign]').prop('checked', false);
17 });
18 jQuery(document.body).on('update_checkout', function(e){
19 jQuery('.payment_method_sequra').show();
20 jQuery('#payment_method_sequra').removeClass( 'input-radio' ).hide();
21 });
22 Sequra.onLoad(function(){Sequra.refreshComponents();});
23 </script>