Plugin Directory

Changeset 2956556


Ignore:
Timestamp:
08/22/2023 06:51:43 AM (3 years ago)
Author:
protport4991
Message:

update file custom.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wc-nova-poshta-for-shop/trunk/assets_file/js/custom.js

    r2956550 r2956556  
    1111        if(billing_city.length > 2){
    1212            if(jQuery('#billing_warehouses').hasClass('is-loader')){
    13                 console.log('zaq');
     13                // console.log('zaq');
    1414                jQuery('#billing_city_field').addClass('is-loader');
    1515            }
    16              console.log('zaq!QQQ');
     16             // console.log('zaq!QQQ');
    1717 
    1818            jQuery.ajax({
     
    129129    });
    130130
    131     jQuery(document).on('change','#ship-to-different-address',function() {
    132         var city_ref = jQuery('#billing_city,#billing_np_city').attr('data-cityref');
    133         console.log('test');
    134         jQuery.ajax({
    135             url:myajax.url,
    136             data: {
    137                 'action' : 'get_document_price',
    138                 'city_ref': city_ref
    139             },
    140             type:'POST',
    141             success:function(data){
    142                 var result_data = JSON.parse(data);
    143             }
    144         });
    145     });
     131    // jQuery(document).on('change','#ship-to-different-address',function() {
     132    //     var city_ref = jQuery('#billing_city,#billing_np_city').attr('data-cityref');
     133    //     console.log('test');
     134    //     jQuery.ajax({
     135    //         url:myajax.url,
     136    //         data: {
     137    //             'action' : 'get_document_price',
     138    //             'city_ref': city_ref
     139    //         },
     140    //         type:'POST',
     141    //         success:function(data){
     142    //             var result_data = JSON.parse(data);
     143    //         }
     144    //     });
     145    // });
    146146
    147147
Note: See TracChangeset for help on using the changeset viewer.