Plugin Directory

Changeset 2884804


Ignore:
Timestamp:
03/22/2023 09:50:21 AM (3 years ago)
Author:
wppunk
Message:

Release 1.5.4.5

Location:
shipping-nova-poshta-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • shipping-nova-poshta-for-woocommerce/trunk/assets/build/js/main.js

    r2534855 r2884804  
    1 (window.NovaPoshta||function(o,e,n){var t={init:function(){n((function(){n("#shipping_nova_poshta_for_woocommerce_city, #shipping_nova_poshta_for_woocommerce_warehouse").length&&(t.initCitySearch(),t.initWarehouseSearch())})),n(o).ajaxComplete((function(o,e,n){"update_order_review"===t.getQueryParams("wc-ajax",n.url)&&(t.initCitySearch(),t.initWarehouseSearch())}))},initCitySearch:function(){var e=n("#shipping_nova_poshta_for_woocommerce_city");e.length&&e.np_select2({language:shippingNovaPoshtaForWoocommerce.language,minimumInputLength:1,ajax:{url:shippingNovaPoshtaForWoocommerce.url,type:"POST",data:function(o){return{nonce:shippingNovaPoshtaForWoocommerce.nonce,action:"shipping_nova_poshta_for_woocommerce_city",search:o.term}},processResults:function(o){return{results:o}}}}).on("select2:select",(function(){n(o.body).trigger("update_checkout")}))},initWarehouseSearch:function(){var o=n("#shipping_nova_poshta_for_woocommerce_warehouse");o.length&&o.np_select2({language:shippingNovaPoshtaForWoocommerce.language})},getQueryParams:function(o,e){var n=e,t=new RegExp("[?&]"+o+"=([^&#]*)","i").exec(n);return t?t[1]:""}};return t}(document,window,jQuery)).init();
     1(window.NovaPoshta||function(o,e,n){var t={init:function(){n((function(){n("#shipping_nova_poshta_for_woocommerce_city, #shipping_nova_poshta_for_woocommerce_warehouse").length&&(t.initCitySearch(),t.initWarehouseSearch())})),n(o).on("updated_checkout",(function(){t.initCitySearch(),t.initWarehouseSearch()}))},initCitySearch:function(){var e=n("#shipping_nova_poshta_for_woocommerce_city");e.length&&e.np_select2({language:shippingNovaPoshtaForWoocommerce.language,minimumInputLength:1,ajax:{url:shippingNovaPoshtaForWoocommerce.url,type:"POST",data:function(o){return{nonce:shippingNovaPoshtaForWoocommerce.nonce,action:"shipping_nova_poshta_for_woocommerce_city",search:o.term}},processResults:function(o){return{results:o}}}}).on("select2:select",(function(){n(o.body).trigger("update_checkout")}))},initWarehouseSearch:function(){var o=n("#shipping_nova_poshta_for_woocommerce_warehouse");o.length&&o.np_select2({language:shippingNovaPoshtaForWoocommerce.language})},getQueryParams:function(o,e){var n=e,t=new RegExp("[?&]"+o+"=([^&#]*)","i").exec(n);return t?t[1]:""}};return t}(document,window,jQuery)).init();
  • shipping-nova-poshta-for-woocommerce/trunk/readme.txt

    r2874649 r2884804  
    44Requires at least: 5.8
    55Tested up to: 6.2
    6 Stable tag: 1.5.4.4
     6Stable tag: 1.5.4.5
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    8585== Changelog ==
    8686
     87= 1.5.4.5 =
     88* Fixed filds weren't loaded on the WooCommerce 7.5
     89
    8790= 1.5.4.4 =
    8891* Fixed cache flushing on after plugin settings update
  • shipping-nova-poshta-for-woocommerce/trunk/shipping-nova-poshta-for-woocommerce.php

    r2874649 r2884804  
    66 * Plugin URI:  http://wp-unit.com/
    77 * Description: Select a branch on the checkout page, the creation of electronic invoices, calculating shipping costs, COD payment, and much more ...
    8  * Version: 1.5.4.4
     8 * Version: 1.5.4.5
    99 * Author: WP Unit
    1010 * Author URI: http://wp-unit.com/
  • shipping-nova-poshta-for-woocommerce/trunk/src/Api/Api.php

    r2820918 r2884804  
    473473
    474474        $connection = $this->client->new_connection( $api_key );
    475         $response   = $connection->get_cities();
    476 
    477         if ( is_wp_error( $response ) || is_wp_error( $response->get_body() ) ) {
    478             return false;
    479         }
    480 
    481         $cities = $response->get_body();
    482         $this->db->update_cities( $cities );
    483 
    484         return true;
     475        $response   = $connection->get_city();
     476
     477        return ! is_wp_error( $response ) && ! is_wp_error( $response->get_body() );
    485478    }
    486479}
  • shipping-nova-poshta-for-woocommerce/trunk/src/Notice/Notice.php

    r2470822 r2884804  
    106106            'btn_url'   => $btn_url,
    107107        ];
     108
     109        $this->notices = array_unique( $this->notices );
    108110    }
    109111
Note: See TracChangeset for help on using the changeset viewer.