Changeset 2972632
- Timestamp:
- 09/28/2023 12:06:10 PM (2 years ago)
- Location:
- shipbubble
- Files:
-
- 45 added
- 3 edited
-
tags/1.5.1 (added)
-
tags/1.5.1/admin (added)
-
tags/1.5.1/admin/css (added)
-
tags/1.5.1/admin/css/styles-wc.css (added)
-
tags/1.5.1/admin/index.php (added)
-
tags/1.5.1/admin/js (added)
-
tags/1.5.1/admin/js/ajax-create-shipment.js (added)
-
tags/1.5.1/admin/js/ajax-validate-address.js (added)
-
tags/1.5.1/admin/js/ajax-validate-auth.js (added)
-
tags/1.5.1/admin/woocommerce (added)
-
tags/1.5.1/admin/woocommerce/async-create-shipment.php (added)
-
tags/1.5.1/admin/woocommerce/async-validate-address.php (added)
-
tags/1.5.1/admin/woocommerce/enqueue-styles.php (added)
-
tags/1.5.1/admin/woocommerce/orders.php (added)
-
tags/1.5.1/admin/woocommerce/shipping-settings.php (added)
-
tags/1.5.1/admin/wordpress (added)
-
tags/1.5.1/admin/wordpress/async-validate-auth.php (added)
-
tags/1.5.1/admin/wordpress/index.php (added)
-
tags/1.5.1/admin/wordpress/settings-callback.php (added)
-
tags/1.5.1/admin/wordpress/settings-field-validation.php (added)
-
tags/1.5.1/admin/wordpress/settings-menu.php (added)
-
tags/1.5.1/admin/wordpress/settings-page.php (added)
-
tags/1.5.1/admin/wordpress/settings-register.php (added)
-
tags/1.5.1/includes (added)
-
tags/1.5.1/includes/constants.php (added)
-
tags/1.5.1/includes/core-methods.php (added)
-
tags/1.5.1/includes/endpoints.php (added)
-
tags/1.5.1/includes/index.php (added)
-
tags/1.5.1/index.php (added)
-
tags/1.5.1/languages (added)
-
tags/1.5.1/languages/index.php (added)
-
tags/1.5.1/license.txt (added)
-
tags/1.5.1/public (added)
-
tags/1.5.1/public/async-checkout-couriers.php (added)
-
tags/1.5.1/public/css (added)
-
tags/1.5.1/public/css/styles-wc.css (added)
-
tags/1.5.1/public/js (added)
-
tags/1.5.1/public/js/couriers-on-checkout.js (added)
-
tags/1.5.1/public/js/sweetalert2.min.js (added)
-
tags/1.5.1/public/woocommerce (added)
-
tags/1.5.1/public/woocommerce/checkout.php (added)
-
tags/1.5.1/public/woocommerce/enqueue-styles.php (added)
-
tags/1.5.1/readme.txt (added)
-
tags/1.5.1/shipbubble.php (added)
-
tags/1.5.1/uninstall.php (added)
-
trunk/admin/woocommerce/orders.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/shipbubble.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shipbubble/trunk/admin/woocommerce/orders.php
r2957216 r2972632 90 90 if ($key == 'order_status') { 91 91 // Inserting after STATUS Column 92 $reorderedColumns['s hipping_status'] = __('Shipping Status', 'theme_domain');92 $reorderedColumns['sb_shipping_status'] = esc_html('Shipbubble Status'); 93 93 } 94 94 } … … 101 101 function custom_orders_list_column_content($column, $post_id) 102 102 { 103 $order = wc_get_order($post_id); 104 $orderShippingMethod = $order->get_items('shipping'); 105 $orderShippingMethodId = ''; 106 103 107 switch ($column) { 104 case 'shipping_status': 105 $order = wc_get_order($post_id); 106 $orderShippingMethodId = reset($order->get_items('shipping'))->get_method_id(); 107 108 if (strtolower($orderShippingMethodId) === strtolower(SHIPBUBBLE_ID)) { 108 case 'sb_shipping_status': 109 if (is_array($orderShippingMethod)) { 110 $orderShippingMethodId = reset($orderShippingMethod)->get_method_id(); 111 } 112 113 if (!empty($orderShippingMethodId) && strtolower($orderShippingMethodId) === strtolower(SHIPBUBBLE_ID)) { 109 114 $status = get_post_meta($post_id, 'shipbubble_tracking_status', true); 110 115 if (!empty($status)) { … … 119 124 </mark>'; 120 125 } 126 } elseif (!empty($orderShippingMethodId)) { 127 echo esc_html($order->get_shipping_method()); 121 128 } else { 122 echo esc_html( $order->get_shipping_method());129 echo esc_html('Not Specified'); 123 130 } 124 125 131 126 132 break; -
shipbubble/trunk/readme.txt
r2972370 r2972632 5 5 Requires at least: 4.0 6 6 Tested up to: 6.3 7 Stable tag: 1.5 7 Stable tag: 1.5.1 8 8 Requires PHP: 5.6 9 9 License: GPLv3 or later -
shipbubble/trunk/shipbubble.php
r2972370 r2972632 9 9 * Requires at least: 4.0 10 10 * Tested up to: 6.3 11 * Version: 1.5 11 * Version: 1.5.1 12 12 * Requires PHP: 5.6 13 13 * Text Domain: shipbubble
Note: See TracChangeset
for help on using the changeset viewer.