Changeset 3150114
- Timestamp:
- 09/11/2024 01:28:35 PM (19 months ago)
- Location:
- eshoplogisticru/trunk
- Files:
-
- 4 edited
-
Classes/Shipping/ExportFileds.php (modified) (3 diffs)
-
Modules/Unloading.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
wc-eshop-logistic.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eshoplogisticru/trunk/Classes/Shipping/ExportFileds.php
r3137454 r3150114 121 121 } 122 122 123 public function exportFields( $name, $shippingMethods = array() ) {123 public function exportFields( $name, $shippingMethods = array(), $order = array() ) { 124 124 $result = array(); 125 125 if ( $name === 'boxberry' ) { … … 266 266 } 267 267 268 $index = ''; 269 if($order){ 270 $orderData = $order->get_data(); 271 $index = $orderData['billing']['postcode']??''; 272 } 273 268 274 $result = array( 269 275 'delivery' => array( … … 271 277 ), 272 278 'delivery[location_to][address]' => array( 273 'index||text||Индекс адреса доставки' => ''279 'index||text||Индекс адреса доставки' => $index 274 280 ) 275 281 ); -
eshoplogisticru/trunk/Modules/Unloading.php
r3137454 r3150114 285 285 286 286 $methodDelivery = new ExportFileds(); 287 $fieldDelivery = $methodDelivery->exportFields( mb_strtolower( $typeMethod['name'] ), $this->shippingMethods );287 $fieldDelivery = $methodDelivery->exportFields( mb_strtolower( $typeMethod['name'] ), $this->shippingMethods, $order ); 288 288 289 289 $eshopLogisticApi = new EshopLogisticApi( new WpHttpClient() ); -
eshoplogisticru/trunk/readme.txt
r3150055 r3150114 4 4 Requires at least: 5.3 5 5 Tested up to: 5.8 6 Stable tag: 2.1.2 56 Stable tag: 2.1.26 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
eshoplogisticru/trunk/wc-eshop-logistic.php
r3150055 r3150114 6 6 * 7 7 * @link https://wp.eshoplogistic.ru/ 8 * @since 2.1.2 58 * @since 2.1.26 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.2 515 * Version: 2.1.26 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.2 5' );43 define( 'WC_ESL_VERSION', '2.1.26' ); 44 44 45 45 define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset
for help on using the changeset viewer.