Plugin Directory

Changeset 3227463


Ignore:
Timestamp:
01/23/2025 12:58:52 PM (14 months ago)
Author:
eshoplogistic
Message:

Исправление отображения выгрузки

Location:
eshoplogisticru/trunk
Files:
3 edited

Legend:

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

    r3205693 r3227463  
    166166        if ( $pageType == 'shop_order' ) {
    167167
     168            $order          = wc_get_order( $postId );
     169            $orderShippings = $order->get_shipping_methods();
     170            $orderShipping  = array();
     171
     172            foreach ( $orderShippings as $key => $item ) {
     173                $orderShipping = array(
     174                    'id'   => $item->get_method_id(),
     175                    'name' => $item->get_method_title(),
     176                );
     177            }
     178            $checkDelivery = stripos( $orderShipping['id'], WC_ESL_PREFIX );
     179            if ( $checkDelivery === false ) {
     180                return false;
     181            }
     182
     183            $checkName = $this->getMethodByName( $orderShipping['name'] );
     184            if ( ! $checkName['name'] ) {
     185                return false;
     186            }
     187
    168188            add_meta_box(
    169189                'woocommerce-order-esl-unloading',
  • eshoplogisticru/trunk/readme.txt

    r3210317 r3227463  
    44Requires at least: 5.3
    55Tested up to: 6.6
    6 Stable tag: 2.1.45
     6Stable tag: 2.1.46
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • eshoplogisticru/trunk/wc-eshop-logistic.php

    r3210317 r3227463  
    66 *
    77 * @link              https://wp.eshoplogistic.ru/
    8  * @since             2.1.45
     8 * @since             2.1.46
    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.45
     15 * Version:           2.1.46
    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.45' );
     43define( 'WC_ESL_VERSION', '2.1.46' );
    4444
    4545define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset for help on using the changeset viewer.