Plugin Directory

Changeset 3298834


Ignore:
Timestamp:
05/22/2025 01:51:58 PM (11 months ago)
Author:
eshoplogistic
Message:

Улучшен поиск по городу

Location:
eshoplogisticru/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • eshoplogisticru/trunk/Api/EshopLogisticApi.php

    r2980050 r3298834  
    127127     * @return ApiResponseInterface
    128128     */
    129     public function search($target = '', $currentCountry = '')
     129    public function search($target = '', $currentCountry = '', $region = '')
    130130    {
    131131        if($this->moduleVersion){
     
    134134            if($currentCountry)
    135135                $data['country'] = $currentCountry;
     136            if($region)
     137                $data['region'] = $region;
    136138
    137139            return $this->sendLoadRequest($data);
  • eshoplogisticru/trunk/Modules/Shipping.php

    r3249790 r3298834  
    131131                if($mode == 'shipping'){
    132132                    $city = WC()->customer->get_shipping_city();
     133                    $region = WC()->customer->get_shipping_state();
    133134                }else{
    134135                    $city = WC()->customer->get_billing_city();
    135                 }
     136                    $region = WC()->customer->get_billing_state();
     137                }
    136138
    137139                $widgetCityEsl = $sessionService->get($mode) ? $sessionService->get($mode) : [];
     
    142144                    $searchDefault = '';
    143145                    if($city){
    144                         $searchDefault = $eshopLogisticApi->search($city);
     146                        $searchDefault = $eshopLogisticApi->search($city, '', $region);
    145147                        $searchDefault = $searchDefault->data();
    146148                    }
  • eshoplogisticru/trunk/readme.txt

    r3277981 r3298834  
    33Tags: доставка, eshoplogisticru, woocommerce, цена доставки, срок доставки, стоимость доставки, сдэк, пэк, dostavista, picpoint, деловые линии, iml, boxberry, gtd, байкалсервис, сберлогистика, delivery, яндекс доставка
    44Tested up to: 6.71
    5 Stable tag: 2.1.57
     5Stable tag: 2.1.58
    66License: GPLv2
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • eshoplogisticru/trunk/wc-eshop-logistic.php

    r3277981 r3298834  
    66 *
    77 * @link              https://wp.eshoplogistic.ru/
    8  * @since             2.1.57
     8 * @since             2.1.58
    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.57
     15 * Version:           2.1.58
    1616 * Author:            eShopLogistic
    1717 * Author URI:        https://eshoplogistic.ru/p747575
     
    4242define( 'WC_ESL_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    4343
    44 define( 'WC_ESL_VERSION', '2.1.57' );
     44define( 'WC_ESL_VERSION', '2.1.58' );
    4545
    4646define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset for help on using the changeset viewer.