Plugin Directory

Changeset 3149256


Ignore:
Timestamp:
09/10/2024 01:06:08 PM (19 months ago)
Author:
eshoplogistic
Message:

Улучшение формы для выгрузки заказов

Location:
eshoplogisticru/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • eshoplogisticru/trunk/Modules/Ajax.php

    r3109301 r3149256  
    629629        }
    630630        if(isset($result['state']['number'])){
    631             $html .= '<div class="esl-status_infoTitle">Номер заказа: '.$result['state']['number'].'</div>';
     631            $html .= '<div class="esl-status_infoTitle">Номер заказа: <input type="text" value="'.$result['state']['number'].'" id="copyText1" disabled><button class="button button-primary" onclick="copyToClipboard(copyText1)">Скопировать номер</button></div>';
    632632        }
    633633        if(isset($shippingMethod) && $shippingMethod){
    634634            $shippingMethods = json_decode($shippingMethod, true);
    635635            if(isset($shippingMethods['answer']['order']['id'])){
    636                 $html .= '<div class="esl-status_infoTitle">Идентификатор заказа в системе "название тк": '.$shippingMethods['answer']['order']['id'].'</div>';
     636                $html .= '<div class="esl-status_infoTitle">Идентификатор заказа в системе "'.$_POST['order_type'].'": '.$shippingMethods['answer']['order']['id'].'</div>';
    637637            }
    638638        }
  • eshoplogisticru/trunk/assets/js/settings_unloading.js

    r3103504 r3149256  
    2020
    2121    //modalDoorButton.onclick = function () {
    22         //modalEsl.style.display = "none"
     22    //modalEsl.style.display = "none"
    2323    //}
    2424
     
    189189
    190190})( jQuery );
     191
     192function copyToClipboard(containerid) {
     193    let copyText = containerid;
     194    copyText.select();
     195    document.execCommand("copy");
     196    alert("Текст скопирован: " + copyText.value);
     197}
  • eshoplogisticru/trunk/readme.txt

    r3149181 r3149256  
    44Requires at least: 5.3
    55Tested up to: 5.8
    6 Stable tag: 2.1.23
     6Stable tag: 2.1.24
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • eshoplogisticru/trunk/wc-eshop-logistic.php

    r3149181 r3149256  
    66 *
    77 * @link              https://wp.eshoplogistic.ru/
    8  * @since             2.1.23
     8 * @since             2.1.24
    99 * @package           WC_Eshop_Logistic
    1010 *
     
    1313 * Plugin URI:        https://wp.eshoplogistic.ru/
    1414 * Description:       Несколько служб доставки в одной интеграции: CDEK, DPD, Boxberry, IML, Почта России, Деловые Линии, ПЭК, Dostavista, GTD, Байкал Сервис и др.
    15  * Version:           2.1.23
     15 * Version:           2.1.24
    1616 * Author:            eShopLogistic
    1717 * Author URI:        https://eshoplogistic.ru/p747575
     
    4141define( 'WC_ESL_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    4242
    43 define( 'WC_ESL_VERSION', '2.1.23' );
     43define( 'WC_ESL_VERSION', '2.1.24' );
    4444
    4545define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset for help on using the changeset viewer.