Changeset 3054718
- Timestamp:
- 03/19/2024 07:27:21 PM (2 years ago)
- Location:
- kiskadi/trunk
- Files:
-
- 2 edited
-
assets/js/frontend/checkout.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kiskadi/trunk/assets/js/frontend/checkout.js
r2800910 r3054718 1 1 jQuery( 2 2 function ($) { 3 let kiskadi_exchangeable_points = $( '#kiskadi_exchangeable_points' ).is( ':checked' ); 3 4 $( document ).on( 4 5 'updated_checkout', 5 6 function () { 6 let billing_cpf = $( '#billing_cpf' ).val(); 7 let kiskadi_exchangeable_points = $( '#kiskadi_exchangeable_points' ).is( ':checked' ); 8 7 let billing_document = ($('#billing_persontype').val() == 1)? $( '#billing_cpf' ).val() : $( '#billing_cnpj' ).val(); 9 8 let data = { 10 9 action: 'kiskadi_cashback_available', 11 billing_cpf: billing_ cpf,10 billing_cpf: billing_document, 12 11 kiskadi_exchangeable_points : kiskadi_exchangeable_points, 13 12 wp_nonce: kiskadi_param.wp_nonce … … 29 28 $( document ).on( 30 29 'blur', 31 '#billing_cpf ',30 '#billing_cpf, #billing_cnpj', 32 31 function (event) { 33 32 event.stopImmediatePropagation(); … … 42 41 event.stopImmediatePropagation(); 43 42 $( document.body ).trigger( 'update_checkout' ); 43 if($( '#kiskadi_exchangeable_points' ).is( ':checked' )){ 44 kiskadi_exchangeable_points = true; 45 }else{ 46 kiskadi_exchangeable_points = false; 47 } 44 48 } 45 49 ); -
kiskadi/trunk/readme.txt
r2814319 r3054718 1 1 === Kiskadi === 2 Contributors: aztecweb2 Contributors: kiskadi 3 3 Donate link: 4 4 Tags: kiskadi, crm, elementor, woocommerce 5 5 Requires at least: 4.4 6 Tested up to: 6. 0.16 Tested up to: 6.4.3 7 7 Requires PHP: 7.2 8 Stable tag: 1.1. 18 Stable tag: 1.1.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 35 35 == Changelog == 36 36 37 = 1.1.2 = 38 * Fix - Fixes plugin update issue 39 37 40 = 1.1.1 = 38 41 * Fix - Fixes plugin update issue
Note: See TracChangeset
for help on using the changeset viewer.