Changeset 3208751
- Timestamp:
- 12/16/2024 06:49:29 PM (14 months ago)
- Location:
- routeapp/trunk
- Files:
-
- 4 edited
-
includes/tracking-providers/class-routeapp-astracker-shipment-tracking.php (modified) (6 diffs)
-
public/class-routeapp-public.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
routeapp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
routeapp/trunk/includes/tracking-providers/class-routeapp-astracker-shipment-tracking.php
r3104227 r3208751 39 39 $courier_id = strtolower( $courier_id ); 40 40 $shipping_info[] = array( 41 'source_order_id' => $order_id,42 'source_product_ids' => $product_ids,43 'courier_id' => $courier_id,44 'tracking_number' => $tracking_item['tracking_number']41 'source_order_id' => $order_id, 42 'source_product_ids' => $product_ids, 43 'courier_id' => $courier_id, 44 'tracking_number' => $tracking_item['tracking_number'] 45 45 ); 46 46 } … … 55 55 56 56 $existing_tracking_numbers = explode(self::SEPARATOR_PIPE, 57 $this->get_meta_data( $order_id, 'routeapp_shipment_tracking_number' ));57 $this->get_meta_data( $order_id, 'routeapp_shipment_tracking_number' )); 58 58 59 59 if ( count($tracking_items) > 0 ) { … … 74 74 $courier_id = strtolower( $courier_id ); 75 75 $params = array( 76 'source_order_id' => $order_id,77 'source_product_ids' => $product_ids,78 'courier_id' => $courier_id76 'source_order_id' => $order_id, 77 'source_product_ids' => $product_ids, 78 'courier_id' => $courier_id 79 79 ); 80 80 … … 91 91 $params['tracking_id'] = $tracking_item['tracking_number']; 92 92 $extraData = array( 93 'params' => $params,94 'method' => 'POST'93 'params' => $params, 94 'method' => 'POST' 95 95 ); 96 96 $routeapp_public->routeapp_log($exception, $extraData); … … 106 106 } 107 107 $tracking_numbers = implode(self::SEPARATOR_PIPE, $tracking_numbers_array); 108 if (!empty($tracking_ number)) {108 if (!empty($tracking_item['tracking_number'])) { 109 109 $this->add_custom_post_meta($order_id, $tracking_numbers); 110 110 } … … 124 124 } 125 125 } 126 -
routeapp/trunk/public/class-routeapp-public.php
r3142452 r3208751 129 129 add_action( 'added_post_meta', array( $this, 'routeapp_update_tracking_order_api' ), 20, 3 ); 130 130 add_action( 'updated_post_meta', array( $this, 'routeapp_update_tracking_order_api' ), 20, 3 ); 131 132 add_action('woocommerce_after_order_object_save', array($this, 'routeapp_update_tracking_order_api_HPOS'), 20, 2); 133 131 134 add_action( 'added_order_item_meta', array( $this, 'routeapp_update_tracking_order_item_api' ), 20, 3 ); 132 135 add_action( 'updated_order_item_meta', array( $this, 'routeapp_update_tracking_order_item_api' ), 20, 3 ); … … 685 688 } 686 689 $this->routeapp_shipment_tracking->update($order, $this); 690 } 691 692 /** 693 * Update tracking order data sending when HPOS is enable 694 * @param object $order 695 * @param object $data_store 696 */ 697 public function routeapp_update_tracking_order_api_HPOS($order, $data_store) { 698 static $already_executed = false; 699 700 if ($already_executed) { 701 return false; // Prevent recursion 702 } 703 704 $already_executed = true; 705 706 // Ensure the $order object is valid and of type 'shop_order' 707 if (!$order || $order->get_type() !== 'shop_order') { 708 return false; 709 } 710 711 $this->routeapp_shipment_tracking->update($order->get_id(), $this); 687 712 } 688 713 -
routeapp/trunk/readme.txt
r3143097 r3208751 5 5 Tags: route, routeapp, protection, tracking 6 6 Requires at least: 4.0 7 Tested up to: 6. 4.18 Stable tag: 2.2.2 17 Tested up to: 6.7.1 8 Stable tag: 2.2.22 9 9 Requires PHP: 5.6 10 10 License: GPLv2 or later … … 106 106 107 107 == Changelog == 108 = 2.2.22 = 109 * Fix problem for astracker shipment tracking compatibility 110 108 111 = 2.2.21 = 109 112 * Fix route information columns -
routeapp/trunk/routeapp.php
r3143097 r3208751 10 10 * Plugin URI: https://route.com/for-merchants/ 11 11 * Description: Route allows shoppers to insure their orders with one-click during checkout, adding a layer of 3rd party trust while improving the customer shopping experience. 12 * Version: 2.2.2 112 * Version: 2.2.22 13 13 * Author: Route 14 14 * Author URI: https://route.com/ … … 26 26 * Currently plugin version. 27 27 */ 28 define( 'ROUTEAPP_VERSION', '2.2.2 1' );28 define( 'ROUTEAPP_VERSION', '2.2.22' ); 29 29 30 30 /**
Note: See TracChangeset
for help on using the changeset viewer.