Plugin Directory

Changeset 2915882


Ignore:
Timestamp:
05/22/2023 01:28:17 PM (3 years ago)
Author:
peterlogisnap
Message:

readme.txt

Location:
logisnap
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • logisnap/trunk/includes/class-lss-admin.php

    r2727263 r2915882  
    675675        ?>
    676676        <form action='options.php' method='post'>
    677             <div style="margin: 0 0px 30px -20px;padding: 20px;background-color: #161637;">
    678                 <img src="<?php _e(LogiSnapShipping()->public_plugin_url('images/logo.png'), 'logisnap-shipping-for-woocommerce'); ?>" style="width: 150px;">
     677            <div style="margin: 0 0px 30px -20px;padding: 20px;background-color: #303030;">
     678                <img src="<?php _e(LogiSnapShipping()->public_plugin_url('images/logo.png'), 'logisnap-shipping-for-woocommerce'); ?>" style="width: 75px;">
    679679
    680680                <div style="float:right; color:white;">
  • logisnap/trunk/public/js/pickup-points.js

    r2729261 r2915882  
    1818
    1919function translate_text(text){
    20     if(lang == 'da_DK')
     20    if(lang == 'da_DK' || lang == 'dk' || lang == 'da')
    2121        return DKLOCALE[text] ? DKLOCALE[text] : text;
    2222
     
    4747
    4848(function ($) {
     49
     50    check_shipping_method();
     51   
     52    $(document).on('updated_checkout', function (e, data) {
     53        check_carrier_type();
     54       
     55        if(!$('.lss-parcel-pickup-postalcode-input').hasClass('touched')) {
     56            $('.lss-parcel-pickup-postalcode-input').val($('#billing_postcode').val());
     57        }   
     58    });
     59
    4960    var map_holder_identifier = 'lss_parcel_pickup_gmap';
    5061
     
    5364    trigger_holder.hide();
    5465
    55    
     66    function check_carrier_type()
     67    {
     68        $.post('/wp-admin/admin-ajax.php', {
     69            action: 'logisnap_carrier_type',
     70        }, function(response)
     71        {
     72            $('form.checkout button[type="submit"]').prop('disabled', false);
     73   
     74            $('#parcel_pickup_id').val('');
     75            $('#parcel_pickup_place_description').val('');
     76            jQuery('#parcel_pickup_chosen_wrap').hide();
     77   
     78            is_parcel_pickup = false;
     79       
     80            trigger_holder.hide();
     81       
     82            if(typeof google !== 'undefined'){
     83                set_google_map();
     84            }
     85                   
     86            if(response === 'service_point') {
     87                trigger_holder.show();
     88                is_parcel_pickup = true;
     89                $('form.checkout button[type="submit"]').prop('disabled', true);
     90       
     91                    return;
     92                } 
     93            });
     94    }
     95
    5696    function check_shipping_method()
    5797    {
     
    75115            }
    76116           
    77              $.post('/wp-admin/admin-ajax.php', {
    78         action: 'logisnap_carrier_type',
    79     }, function(response)
    80     {
    81         $('form.checkout button[type="submit"]').prop('disabled', false);
    82    
    83         $('#parcel_pickup_id').val('');
    84         $('#parcel_pickup_place_description').val('');
    85         jQuery('#parcel_pickup_chosen_wrap').hide();
    86    
    87         is_parcel_pickup = false;
    88    
    89         trigger_holder.hide();
    90    
    91         if(typeof google !== 'undefined'){
    92             set_google_map();
    93         }
    94                
    95         if(response === 'service_point') {
    96             trigger_holder.show();
    97             is_parcel_pickup = true;
    98             $('form.checkout button[type="submit"]').prop('disabled', true);
    99    
    100                 return;
    101             } 
    102         });
    103 
    104117
    105118            return key_response;
    106119        });   
    107120    }
     121
    108122
    109123    $( 'form.checkout' ).on( 'checkout_place_order', function() {
     
    114128        // allow the submit AJAX call
    115129        return true;
    116     });
    117 
    118     $(document).on('updated_checkout', function (e, data) {
    119         check_shipping_method();
    120 
    121         if(!$('.lss-parcel-pickup-postalcode-input').hasClass('touched')) {
    122             $('.lss-parcel-pickup-postalcode-input').val($('#billing_postcode').val());
    123         }
    124 
    125    
    126130    });
    127131
  • logisnap/trunk/readme.txt

    r2729261 r2915882  
    44Tags: custom shipping, shipping
    55Requires at least: 5.0
    6 Tested up to: 5.8
    7 Stable tag: 1.2.1
     6Tested up to: 6.2.2
     7Stable tag: 1.2.2
    88Requires PHP: 5.6.0
    99Requires WooCommerce: 3.0.0
     
    2323
    2424== Changelog ==
     25
     26= 1.2.2 =
     27* Fixed droppoint button sometimes not showing
     28* Added danish translations
     29* Updated banner and icon
    2530
    2631= 1.2.1 =
Note: See TracChangeset for help on using the changeset viewer.