Changeset 3298834
- Timestamp:
- 05/22/2025 01:51:58 PM (11 months ago)
- Location:
- eshoplogisticru/trunk
- Files:
-
- 4 edited
-
Api/EshopLogisticApi.php (modified) (2 diffs)
-
Modules/Shipping.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wc-eshop-logistic.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eshoplogisticru/trunk/Api/EshopLogisticApi.php
r2980050 r3298834 127 127 * @return ApiResponseInterface 128 128 */ 129 public function search($target = '', $currentCountry = '' )129 public function search($target = '', $currentCountry = '', $region = '') 130 130 { 131 131 if($this->moduleVersion){ … … 134 134 if($currentCountry) 135 135 $data['country'] = $currentCountry; 136 if($region) 137 $data['region'] = $region; 136 138 137 139 return $this->sendLoadRequest($data); -
eshoplogisticru/trunk/Modules/Shipping.php
r3249790 r3298834 131 131 if($mode == 'shipping'){ 132 132 $city = WC()->customer->get_shipping_city(); 133 $region = WC()->customer->get_shipping_state(); 133 134 }else{ 134 135 $city = WC()->customer->get_billing_city(); 135 } 136 $region = WC()->customer->get_billing_state(); 137 } 136 138 137 139 $widgetCityEsl = $sessionService->get($mode) ? $sessionService->get($mode) : []; … … 142 144 $searchDefault = ''; 143 145 if($city){ 144 $searchDefault = $eshopLogisticApi->search($city );146 $searchDefault = $eshopLogisticApi->search($city, '', $region); 145 147 $searchDefault = $searchDefault->data(); 146 148 } -
eshoplogisticru/trunk/readme.txt
r3277981 r3298834 3 3 Tags: доставка, eshoplogisticru, woocommerce, цена доставки, срок доставки, стоимость доставки, сдэк, пэк, dostavista, picpoint, деловые линии, iml, boxberry, gtd, байкалсервис, сберлогистика, delivery, яндекс доставка 4 4 Tested up to: 6.71 5 Stable tag: 2.1.5 75 Stable tag: 2.1.58 6 6 License: GPLv2 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
eshoplogisticru/trunk/wc-eshop-logistic.php
r3277981 r3298834 6 6 * 7 7 * @link https://wp.eshoplogistic.ru/ 8 * @since 2.1.5 78 * @since 2.1.58 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.5 715 * Version: 2.1.58 16 16 * Author: eShopLogistic 17 17 * Author URI: https://eshoplogistic.ru/p747575 … … 42 42 define( 'WC_ESL_PLUGIN_DIR', plugin_dir_path(__FILE__) ); 43 43 44 define( 'WC_ESL_VERSION', '2.1.5 7' );44 define( 'WC_ESL_VERSION', '2.1.58' ); 45 45 46 46 define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset
for help on using the changeset viewer.