Plugin Directory

Changeset 3054718


Ignore:
Timestamp:
03/19/2024 07:27:21 PM (2 years ago)
Author:
fxholl
Message:

Fixes plugin update issue

Location:
kiskadi/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kiskadi/trunk/assets/js/frontend/checkout.js

    r2800910 r3054718  
    11jQuery(
    22    function ($) {
     3        let kiskadi_exchangeable_points = $( '#kiskadi_exchangeable_points' ).is( ':checked' );
    34        $( document ).on(
    45            'updated_checkout',
    56            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();
    98                let data = {
    109                    action: 'kiskadi_cashback_available',
    11                     billing_cpf: billing_cpf,
     10                    billing_cpf: billing_document,
    1211                    kiskadi_exchangeable_points : kiskadi_exchangeable_points,
    1312                    wp_nonce: kiskadi_param.wp_nonce
     
    2928        $( document ).on(
    3029            'blur',
    31             '#billing_cpf',
     30            '#billing_cpf, #billing_cnpj',
    3231            function (event) {
    3332                event.stopImmediatePropagation();
     
    4241                event.stopImmediatePropagation();
    4342                $( 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                }
    4448            }
    4549        );
  • kiskadi/trunk/readme.txt

    r2814319 r3054718  
    11=== Kiskadi ===
    2 Contributors: aztecweb
     2Contributors: kiskadi
    33Donate link:
    44Tags: kiskadi, crm, elementor, woocommerce
    55Requires at least: 4.4
    6 Tested up to: 6.0.1
     6Tested up to: 6.4.3
    77Requires PHP: 7.2
    8 Stable tag: 1.1.1
     8Stable tag: 1.1.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
     37= 1.1.2 =
     38* Fix - Fixes plugin update issue
     39
    3740= 1.1.1 =
    3841* Fix - Fixes plugin update issue
Note: See TracChangeset for help on using the changeset viewer.