Changeset 2884804
- Timestamp:
- 03/22/2023 09:50:21 AM (3 years ago)
- Location:
- shipping-nova-poshta-for-woocommerce/trunk
- Files:
-
- 5 edited
-
assets/build/js/main.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
shipping-nova-poshta-for-woocommerce.php (modified) (1 diff)
-
src/Api/Api.php (modified) (1 diff)
-
src/Notice/Notice.php (modified) (1 diff)
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 4 4 Requires at least: 5.8 5 5 Tested up to: 6.2 6 Stable tag: 1.5.4. 46 Stable tag: 1.5.4.5 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 85 85 == Changelog == 86 86 87 = 1.5.4.5 = 88 * Fixed filds weren't loaded on the WooCommerce 7.5 89 87 90 = 1.5.4.4 = 88 91 * Fixed cache flushing on after plugin settings update -
shipping-nova-poshta-for-woocommerce/trunk/shipping-nova-poshta-for-woocommerce.php
r2874649 r2884804 6 6 * Plugin URI: http://wp-unit.com/ 7 7 * 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. 48 * Version: 1.5.4.5 9 9 * Author: WP Unit 10 10 * Author URI: http://wp-unit.com/ -
shipping-nova-poshta-for-woocommerce/trunk/src/Api/Api.php
r2820918 r2884804 473 473 474 474 $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() ); 485 478 } 486 479 } -
shipping-nova-poshta-for-woocommerce/trunk/src/Notice/Notice.php
r2470822 r2884804 106 106 'btn_url' => $btn_url, 107 107 ]; 108 109 $this->notices = array_unique( $this->notices ); 108 110 } 109 111
Note: See TracChangeset
for help on using the changeset viewer.