Changeset 3162752
- Timestamp:
- 10/04/2024 01:10:26 PM (18 months ago)
- Location:
- eshoplogisticru/trunk
- Files:
-
- 6 edited
-
Classes/Shipping/Base.php (modified) (1 diff)
-
assets/css/style.css (modified) (2 diffs)
-
assets/js/checkout.js (modified) (2 diffs)
-
assets/js/checkout_frame_v2.js (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wc-eshop-logistic.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eshoplogisticru/trunk/Classes/Shipping/Base.php
r3154034 r3162752 247 247 $sessionService->set('shipping_methods', $shippingMethods); 248 248 249 250 251 249 $labelTitle = str_replace(':',' -',$this->title); 252 250 $labelDescription = $this->method_description; -
eshoplogisticru/trunk/assets/css/style.css
r3064439 r3162752 49 49 .wc-esl-search-region-modal__list{ 50 50 display: inline-grid; 51 width: 33%;51 width: 49.9%; 52 52 padding-top: 30px; 53 53 } … … 344 344 .eshoplogistic-widget-cart .eshoplogistic-theme-service__select-tariff{ 345 345 font-size: 1rem !important; 346 } 347 348 #esl_modal_button-search{ 349 margin-top: 25px; 346 350 } 347 351 -
eshoplogisticru/trunk/assets/js/checkout.js
r3143494 r3162752 320 320 if (currentBillingCountry) { 321 321 searchCity(value, function (items) { 322 $this.next('#esl_result-search').html( 323 renderCitiesModal(items, modeInput) 324 ); 322 if(Object.getOwnPropertyNames(items).length > 1) { 323 $this.next('#esl_result-search').html( 324 renderCitiesModal(items, modeInput) 325 ); 326 }else{ 327 $this.next('#esl_result-search').html('<button id="esl_modal_button-search">Выбрать данный населённый пункт</button>'); 328 } 325 329 }, currentBillingCountry, 'region'); 326 330 } … … 334 338 sendRequestCity(this); 335 339 document.getElementById("modal-esl-city").style.display = "none" 340 }); 341 342 $('body').on('click', '#esl_modal_button-search', function (e) { 343 e.preventDefault(); 344 let modalSearch = $('#esl_modal-search'); 345 let value = modalSearch.val(); 346 let modeInput = modalSearch.attr('data-mode'); 347 $( `#${modeInput}_city` ).val( value ); 348 $.ajax({ 349 method: 'POST', 350 url: wc_esl_shipping_global.ajaxUrl, 351 async: true, 352 data: { 353 action : 'wc_esl_update_shipping_address', 354 }, 355 dataType: 'json', 356 success: function( response ) { 357 358 console.log( response ); 359 360 $( 'body' ).trigger( 'update_checkout' ); 361 document.getElementById("modal-esl-city").style.display = "none" 362 } 363 }); 336 364 }); 337 365 } -
eshoplogisticru/trunk/assets/js/checkout_frame_v2.js
r3143494 r3162752 354 354 if (currentBillingCountry) { 355 355 searchCity(value, function (items) { 356 $this.closest('.modal-esl-frame').find('#esl_result-search').html( 357 renderCitiesModal(items, modeInput) 358 ); 356 if(Object.getOwnPropertyNames(items).length > 1) { 357 $this.closest('.modal-esl-frame').find('#esl_result-search').html( 358 renderCitiesModal(items, modeInput) 359 ); 360 }else{ 361 $this.closest('.modal-esl-frame').find('#esl_result-search').html( 362 '<button id="esl_modal_button-search">Выбрать данный населённый пункт</button>' 363 ); 364 } 365 359 366 }, currentBillingCountry, 'region'); 360 367 } … … 370 377 inputSearch.val(city) 371 378 document.getElementById("modal-esl-city").style.display = "none" 379 }); 380 381 $('body').on('click', '#esl_modal_button-search', function (e) { 382 e.preventDefault(); 383 let modalSearch = $('#esl_modal-search'); 384 let value = modalSearch.val(); 385 let modeInput = modalSearch.attr('data-mode'); 386 $( `#${modeInput}_city` ).val( value ); 387 388 document.getElementById("modal-esl-city").style.display = "none" 389 window.keyDelivery = 'door' 390 changeVisibleElements( 391 differentShippingAddress, 392 false, 393 currentBillingCountry, 394 currentShippingCountry 395 ); 396 esl.request(''); 372 397 }); 373 398 } -
eshoplogisticru/trunk/readme.txt
r3161540 r3162752 4 4 Requires at least: 5.3 5 5 Tested up to: 5.8 6 Stable tag: 2.1.2 8e6 Stable tag: 2.1.29 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
eshoplogisticru/trunk/wc-eshop-logistic.php
r3161540 r3162752 6 6 * 7 7 * @link https://wp.eshoplogistic.ru/ 8 * @since 2.1.2 88 * @since 2.1.29 9 9 * @package WC_Eshop_Logistic 10 10 * … … 13 13 * Plugin URI: https://wp.eshoplogistic.ru/ 14 14 * Description: Несколько служб доставки в одной интеграции: CDEK, DPD, Boxberry, IML, Почта России, Деловые Линии, ПЭК, Dostavista, GTD, Байкал Сервис и др. 15 * Version: 2.1.2 815 * Version: 2.1.29 16 16 * Author: eShopLogistic 17 17 * Author URI: https://eshoplogistic.ru/p747575 … … 41 41 define( 'WC_ESL_PLUGIN_DIR', plugin_dir_path(__FILE__) ); 42 42 43 define( 'WC_ESL_VERSION', '2.1.2 8' );43 define( 'WC_ESL_VERSION', '2.1.29' ); 44 44 45 45 define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset
for help on using the changeset viewer.