Plugin Directory

Changeset 3149181


Ignore:
Timestamp:
09/10/2024 11:27:35 AM (19 months ago)
Author:
eshoplogistic
Message:

Корректировка получения габаритов для выгрузки заказов

Location:
eshoplogisticru/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eshoplogisticru/trunk/Classes/Table.php

    r3111217 r3149181  
    9696                }
    9797
    98                 $attrProduct = $getProductDetail->get_data();
    99                 $records[$key]['weight'] = (isset($attrProduct['weight']))?round(floatval($attrProduct['weight']),2):0;
    100                 $records[$key]['width'] = (isset($attrProduct['width']))?round(floatval($attrProduct['width']),2):0;
    101                 $records[$key]['length'] = (isset($attrProduct['length']))?round(floatval($attrProduct['length']),2):0;
    102                 $records[$key]['height'] = (isset($attrProduct['height']))?round(floatval($attrProduct['height']),2):0;
     98                $weight = $getProductDetail->get_weight();
     99                $width = $getProductDetail->get_width();
     100                $length = $getProductDetail->get_length();
     101                $height = $getProductDetail->get_height();
     102                $records[$key]['weight'] = (isset($weight))?round(floatval($weight),2):0;
     103                $records[$key]['width'] = (isset($width))?round(floatval($width),2):0;
     104                $records[$key]['length'] = (isset($length))?round(floatval($length),2):0;
     105                $records[$key]['height'] = (isset($height))?round(floatval($height),2):0;
    103106            }
    104107        }
  • eshoplogisticru/trunk/readme.txt

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

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