Changeset 3228612
- Timestamp:
- 01/25/2025 10:29:57 PM (14 months ago)
- Location:
- shipbubble
- Files:
-
- 49 added
- 3 edited
-
tags/2.7.1 (added)
-
tags/2.7.1/admin (added)
-
tags/2.7.1/admin/css (added)
-
tags/2.7.1/admin/css/styles-wc.css (added)
-
tags/2.7.1/admin/index.php (added)
-
tags/2.7.1/admin/js (added)
-
tags/2.7.1/admin/js/ajax-create-shipment.js (added)
-
tags/2.7.1/admin/js/ajax-validate-address.js (added)
-
tags/2.7.1/admin/js/ajax-validate-auth.js (added)
-
tags/2.7.1/admin/woocommerce (added)
-
tags/2.7.1/admin/woocommerce/async-create-shipment.php (added)
-
tags/2.7.1/admin/woocommerce/async-validate-address.php (added)
-
tags/2.7.1/admin/woocommerce/enqueue-styles.php (added)
-
tags/2.7.1/admin/woocommerce/orders.php (added)
-
tags/2.7.1/admin/woocommerce/shipping-settings.php (added)
-
tags/2.7.1/admin/wordpress (added)
-
tags/2.7.1/admin/wordpress/async-validate-auth.php (added)
-
tags/2.7.1/admin/wordpress/index.php (added)
-
tags/2.7.1/admin/wordpress/settings-callback.php (added)
-
tags/2.7.1/admin/wordpress/settings-field-validation.php (added)
-
tags/2.7.1/admin/wordpress/settings-menu.php (added)
-
tags/2.7.1/admin/wordpress/settings-page.php (added)
-
tags/2.7.1/admin/wordpress/settings-register.php (added)
-
tags/2.7.1/includes (added)
-
tags/2.7.1/includes/constants.php (added)
-
tags/2.7.1/includes/core-methods.php (added)
-
tags/2.7.1/includes/endpoints.php (added)
-
tags/2.7.1/includes/index.php (added)
-
tags/2.7.1/index.php (added)
-
tags/2.7.1/languages (added)
-
tags/2.7.1/languages/index.php (added)
-
tags/2.7.1/license.txt (added)
-
tags/2.7.1/public (added)
-
tags/2.7.1/public/async-checkout-couriers.php (added)
-
tags/2.7.1/public/css (added)
-
tags/2.7.1/public/css/styles-wc.css (added)
-
tags/2.7.1/public/images (added)
-
tags/2.7.1/public/images/logo.svg (added)
-
tags/2.7.1/public/js (added)
-
tags/2.7.1/public/js/blockui (added)
-
tags/2.7.1/public/js/blockui/jquery.blockUI.js (added)
-
tags/2.7.1/public/js/couriers-on-checkout.js (added)
-
tags/2.7.1/public/js/sweetalert2.min.js (added)
-
tags/2.7.1/public/woocommerce (added)
-
tags/2.7.1/public/woocommerce/checkout.php (added)
-
tags/2.7.1/public/woocommerce/enqueue-styles.php (added)
-
tags/2.7.1/readme.txt (added)
-
tags/2.7.1/shipbubble.php (added)
-
tags/2.7.1/uninstall.php (added)
-
trunk/admin/woocommerce/orders.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shipbubble.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shipbubble/trunk/admin/woocommerce/orders.php
r3166489 r3228612 1 1 <?php 2 3 use Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController; 2 4 3 5 add_action('woocommerce_admin_order_data_after_billing_address', 'shipbubble_order_data_after_billing_address', 10, 1); … … 203 205 function mv_add_meta_boxes() 204 206 { 205 add_meta_box('sb_track_shipment', __('Track Shipment', 'woocommerce'), 'shipbubble_track_order_shipment', 'shop_order', 'side', 'core'); 207 $screen = class_exists( '\Automattic\WooCommerce\Internal\DataStores\Orders\CustomOrdersTableController' ) && wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled() 208 ? wc_get_page_screen_id( 'shop-order' ) 209 : 'shop_order'; 210 211 add_meta_box('sb_track_shipment', __('Track Shipment', 'woocommerce'), 'shipbubble_track_order_shipment', $screen, 'side', 'core'); 206 212 } 207 213 } … … 209 215 // Adding Meta field in the meta container admin shop_order pages 210 216 if (!function_exists('shipbubble_track_order_shipment')) { 211 function shipbubble_track_order_shipment( )217 function shipbubble_track_order_shipment($post_or_order_object) 212 218 { 213 219 global $post; 214 220 215 $shipbubbleOrderId = shipbubble_get_order_meta($post->ID, 'shipbubble_order_id', true) ?? ''; 221 if (!$post) { 222 $postID = ( $post_or_order_object instanceof WC_Order ) 223 ? $post_or_order_object->get_id() 224 : wc_get_order($post_or_order_object->ID)->get_id(); 225 } else { 226 $postID = $post->ID; 227 } 228 229 $shipbubbleOrderId = shipbubble_get_order_meta($postID, 'shipbubble_order_id') ?? ''; 216 230 217 231 $response = null; … … 232 246 233 247 // set shipping status 234 shipbubble_update_order_meta($post ->ID, 'shipbubble_tracking_status', strtolower($latestPackageStatus->status));248 shipbubble_update_order_meta($postID, 'shipbubble_tracking_status', strtolower($latestPackageStatus->status)); 235 249 236 250 ?> -
shipbubble/trunk/readme.txt
r3200475 r3228612 5 5 Requires at least: 4.0 6 6 Tested up to: 6.5 7 Stable tag: 2.7 7 Stable tag: 2.7.1 8 8 Requires PHP: 5.6 9 9 License: GPLv3 or later … … 70 70 71 71 == Changelog == 72 = 2.7.1 = 73 * HPOS order tracking fix. 74 72 75 = 2.7 = 73 76 * Checkout options change effect fix. -
shipbubble/trunk/shipbubble.php
r3200475 r3228612 9 9 * Requires at least: 4.0 10 10 * Tested up to: 6.5 11 * Version: 2.7 11 * Version: 2.7.1 12 12 * Requires PHP: 5.6 13 13 * Text Domain: shipbubble
Note: See TracChangeset
for help on using the changeset viewer.