Changeset 3169130
- Timestamp:
- 10/15/2024 09:13:01 AM (18 months ago)
- Location:
- eshoplogisticru/trunk
- Files:
-
- 3 edited
-
Modules/OrderCreator.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
wc-eshop-logistic.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eshoplogisticru/trunk/Modules/OrderCreator.php
r2977065 r3169130 64 64 $jsonArr = json_encode( $shippingMethods[$shippingMethodId], JSON_UNESCAPED_UNICODE); 65 65 $item->update_meta_data('esl_shipping_methods', $jsonArr); 66 if($terminal){ 67 if(isset($shippingMethods[$shippingMethodId]['data']['terminal']['time'])){ 68 $timeVal = $shippingMethods[$shippingMethodId]['data']['terminal']['time']['value'] ?? ''; 69 $timeUnit = $shippingMethods[$shippingMethodId]['data']['terminal']['time']['unit'] ?? ''; 70 $timeText = $shippingMethods[$shippingMethodId]['data']['terminal']['time']['text'] ?? ''; 71 $time = $timeVal.' '.$timeUnit.' - '.$timeText; 72 $item->update_meta_data(__("Срок доставки", WC_ESL_DOMAIN), $time); 73 } 74 if(isset($shippingMethods[$shippingMethodId]['time'])){ 75 $timeVal = $shippingMethods[$shippingMethodId]['time']['value'] ?? ''; 76 $timeUnit = $shippingMethods[$shippingMethodId]['time']['unit'] ?? ''; 77 $timeText = $shippingMethods[$shippingMethodId]['time']['text'] ?? ''; 78 $time = $timeVal.' '.$timeUnit.' - '.$timeText; 79 $item->update_meta_data(__("Срок доставки", WC_ESL_DOMAIN), $time); 80 } 81 }else{ 82 if(isset($shippingMethods[$shippingMethodId]['data']['door']['time'])){ 83 $timeVal = $shippingMethods[$shippingMethodId]['data']['door']['time']['value'] ?? ''; 84 $timeUnit = $shippingMethods[$shippingMethodId]['data']['door']['time']['unit'] ?? ''; 85 $timeText = $shippingMethods[$shippingMethodId]['data']['door']['time']['text'] ?? ''; 86 $time = $timeVal.' '.$timeUnit.' - '.$timeText; 87 $item->update_meta_data(__("Срок доставки", WC_ESL_DOMAIN), $time); 88 } 89 if(isset($shippingMethods[$shippingMethodId]['time'])){ 90 $timeVal = $shippingMethods[$shippingMethodId]['time']['value'] ?? ''; 91 $timeUnit = $shippingMethods[$shippingMethodId]['time']['unit'] ?? ''; 92 $timeText = $shippingMethods[$shippingMethodId]['time']['text'] ?? ''; 93 $time = $timeVal.' '.$timeUnit.' - '.$timeText; 94 $item->update_meta_data(__("Срок доставки", WC_ESL_DOMAIN), $time); 95 } 96 } 66 97 } 67 98 $sessionService->drop('shipping_methods'); -
eshoplogisticru/trunk/readme.txt
r3166450 r3169130 4 4 Requires at least: 5.3 5 5 Tested up to: 5.8 6 Stable tag: 2.1.3 16 Stable tag: 2.1.32 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
eshoplogisticru/trunk/wc-eshop-logistic.php
r3166450 r3169130 6 6 * 7 7 * @link https://wp.eshoplogistic.ru/ 8 * @since 2.1.3 18 * @since 2.1.32 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.3 115 * Version: 2.1.32 16 16 * Author: eShopLogistic 17 17 * Author URI: https://eshoplogistic.ru/p747575 … … 41 41 define( 'WC_ESL_PLUGIN_DIR', plugin_dir_path(__FILE__) ); 42 42 43 define( 'WC_ESL_VERSION', '2.1.3 1' );43 define( 'WC_ESL_VERSION', '2.1.32' ); 44 44 45 45 define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset
for help on using the changeset viewer.