Changeset 3399074
- Timestamp:
- 11/19/2025 03:10:47 PM (3 months ago)
- Location:
- jne-shipping-official
- Files:
-
- 10 added
- 9 edited
- 22 copied
-
tags/1.1.0 (copied) (copied from jne-shipping-official/trunk)
-
tags/1.1.0/LICENSE.txt (copied) (copied from jne-shipping-official/trunk/LICENSE.txt)
-
tags/1.1.0/admin (copied) (copied from jne-shipping-official/trunk/admin)
-
tags/1.1.0/admin/class-jne-woocommerce-admin.php (modified) (4 diffs)
-
tags/1.1.0/admin/includes/class-jne-admin-dashboard.php (added)
-
tags/1.1.0/admin/includes/class-jne-admin-generate-awb.php (copied) (copied from jne-shipping-official/trunk/admin/includes/class-jne-admin-generate-awb.php)
-
tags/1.1.0/admin/includes/class-jne-admin-generate-cnote.php (copied) (copied from jne-shipping-official/trunk/admin/includes/class-jne-admin-generate-cnote.php)
-
tags/1.1.0/admin/includes/class-jne-admin-order-helper.php (copied) (copied from jne-shipping-official/trunk/admin/includes/class-jne-admin-order-helper.php) (1 diff)
-
tags/1.1.0/admin/includes/class-jne-admin-order-list.php (copied) (copied from jne-shipping-official/trunk/admin/includes/class-jne-admin-order-list.php) (1 diff)
-
tags/1.1.0/admin/includes/class-jne-admin-shipping-method.php (copied) (copied from jne-shipping-official/trunk/admin/includes/class-jne-admin-shipping-method.php)
-
tags/1.1.0/admin/partials/jne-woocommerce-admin-dashboard-display.php (added)
-
tags/1.1.0/admin/partials/jne-woocommerce-admin-support-display.php (copied) (copied from jne-shipping-official/trunk/admin/partials/jne-woocommerce-admin-support-display.php)
-
tags/1.1.0/admin/partials/jne-woocommerce-admin-webhook-logs-display.php (added)
-
tags/1.1.0/assets (copied) (copied from jne-shipping-official/trunk/assets)
-
tags/1.1.0/composer.json (copied) (copied from jne-shipping-official/trunk/composer.json) (1 diff)
-
tags/1.1.0/composer.lock (copied) (copied from jne-shipping-official/trunk/composer.lock)
-
tags/1.1.0/includes (copied) (copied from jne-shipping-official/trunk/includes)
-
tags/1.1.0/includes/class-jne-woocommerce-webhook-logger.php (added)
-
tags/1.1.0/includes/class-jne-woocommerce-webhook.php (added)
-
tags/1.1.0/includes/class-jne-woocommerce.php (modified) (2 diffs)
-
tags/1.1.0/index.php (copied) (copied from jne-shipping-official/trunk/index.php)
-
tags/1.1.0/jne-shipping-official.php (copied) (copied from jne-shipping-official/trunk/jne-shipping-official.php) (2 diffs)
-
tags/1.1.0/languages (copied) (copied from jne-shipping-official/trunk/languages)
-
tags/1.1.0/public (copied) (copied from jne-shipping-official/trunk/public)
-
tags/1.1.0/public/includes/jne-woocommerce-public-cod.php (copied) (copied from jne-shipping-official/trunk/public/includes/jne-woocommerce-public-cod.php)
-
tags/1.1.0/public/includes/jne-woocommerce-public-insurance.php (copied) (copied from jne-shipping-official/trunk/public/includes/jne-woocommerce-public-insurance.php)
-
tags/1.1.0/readme.txt (copied) (copied from jne-shipping-official/trunk/readme.txt) (3 diffs)
-
tags/1.1.0/uninstall.php (copied) (copied from jne-shipping-official/trunk/uninstall.php)
-
tags/1.1.0/vendor (copied) (copied from jne-shipping-official/trunk/vendor)
-
trunk/admin/class-jne-woocommerce-admin.php (modified) (4 diffs)
-
trunk/admin/includes/class-jne-admin-dashboard.php (added)
-
trunk/admin/includes/class-jne-admin-order-helper.php (modified) (1 diff)
-
trunk/admin/includes/class-jne-admin-order-list.php (modified) (1 diff)
-
trunk/admin/partials/jne-woocommerce-admin-dashboard-display.php (added)
-
trunk/admin/partials/jne-woocommerce-admin-webhook-logs-display.php (added)
-
trunk/composer.json (modified) (1 diff)
-
trunk/includes/class-jne-woocommerce-webhook-logger.php (added)
-
trunk/includes/class-jne-woocommerce-webhook.php (added)
-
trunk/includes/class-jne-woocommerce.php (modified) (2 diffs)
-
trunk/jne-shipping-official.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jne-shipping-official/tags/1.1.0/admin/class-jne-woocommerce-admin.php
r3387194 r3399074 112 112 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/includes/class-jne-admin-generate-cnote.php'; 113 113 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/includes/class-jne-admin-generate-awb.php'; 114 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/includes/class-jne-admin-dashboard.php'; 114 115 } 115 116 … … 365 366 add_submenu_page( 366 367 'jneshof-landing', 368 __('Dashboard', 'jne-shipping-official'), 369 __('Dashboard', 'jne-shipping-official'), 370 'manage_options', 371 'jneshof-dashboard', 372 [$this, 'display_dashboard_page'] 373 ); 374 add_submenu_page( 375 'jneshof-landing', 367 376 __('Pengaturan Akses', 'jne-shipping-official'), 368 377 __('Pengaturan Akses', 'jne-shipping-official'), … … 381 390 add_submenu_page( 382 391 'jneshof-landing', 392 __('Webhook Logs', 'jne-shipping-official'), 393 __('Webhook Logs', 'jne-shipping-official'), 394 'manage_options', 395 'jneshof-webhook-logs', 396 [$this, 'display_webhook_logs_page'] 397 ); 398 add_submenu_page( 399 'jneshof-landing', 383 400 __('Bantuan', 'jne-shipping-official'), 384 401 __('Bantuan', 'jne-shipping-official'), … … 422 439 { 423 440 return include_once plugin_dir_path(__FILE__) . 'partials/jne-woocommerce-admin-support-display.php'; 441 } 442 443 public function display_webhook_logs_page() 444 { 445 return include_once plugin_dir_path(__FILE__) . 'partials/jne-woocommerce-admin-webhook-logs-display.php'; 446 } 447 448 public function display_dashboard_page() 449 { 450 return include_once plugin_dir_path(__FILE__) . 'partials/jne-woocommerce-admin-dashboard-display.php'; 424 451 } 425 452 -
jne-shipping-official/tags/1.1.0/admin/includes/class-jne-admin-order-helper.php
r3398965 r3399074 535 535 536 536 /** 537 * Get JNE shipping status. 538 * @return string|null 539 */ 540 public function getJNEShippingStatus(): ?string 541 { 542 return $this->getOrderMetaValue('jneshof_shipping_status'); 543 } 544 545 /** 537 546 * Save JNE pickup number. 538 547 * @param string $pickup_number -
jne-shipping-official/tags/1.1.0/admin/includes/class-jne-admin-order-list.php
r3391700 r3399074 405 405 } 406 406 407 // Save shipping status from API response if pod_status exists 408 if (isset($response['data']['cnote']['pod_status']) && !empty($response['data']['cnote']['pod_status'])) { 409 $order_helper = Jneshof_Order_Helper::getOrderByID($order_id); 410 if ($order_helper) { 411 $pod_status = $response['data']['cnote']['pod_status']; 412 // Get WC_Order object from helper 413 $wc_order = wc_get_order($order_id); 414 if ($wc_order) { 415 Jneshof_Woocommerce_Webhook::save_shipping_status_from_api($wc_order, $pod_status); 416 } 417 } 418 } 419 407 420 wp_send_json_success($response); 408 421 } -
jne-shipping-official/tags/1.1.0/composer.json
r3398965 r3399074 2 2 "name": "jne-shipping/jne-shipping-official", 3 3 "description": "WordPress plugin integrated with WooCommerce for JNE shipping services", 4 "version": "1. 0.12",4 "version": "1.1.0", 5 5 "type": "wordpress-plugin", 6 6 "license": "GPL-2.0+", -
jne-shipping-official/tags/1.1.0/includes/class-jne-woocommerce.php
r3387194 r3399074 134 134 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jne-woocommerce-alert.php'; 135 135 136 /** 137 * The class responsible for handling webhook requests from JNE. 138 */ 139 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jne-woocommerce-webhook.php'; 140 141 /** 142 * The class responsible for logging webhook requests. 143 */ 144 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jne-woocommerce-webhook-logger.php'; 145 136 146 $this->loader = new Jneshof_Woocommerce_Loader(); 137 147 … … 175 185 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 176 186 187 // Register webhook REST API routes 188 $webhook_handler = Jneshof_Woocommerce_Webhook::get_instance(); 189 $this->loader->add_action( 'rest_api_init', $webhook_handler, 'register_routes' ); 190 177 191 } 178 192 -
jne-shipping-official/tags/1.1.0/jne-shipping-official.php
r3398965 r3399074 20 20 * Plugin Name: JNE Shipping Official 21 21 * Description: WordPress plugin integrated with WooCommerce for JNE shipping services 22 * Version: 1. 0.1222 * Version: 1.1.0 23 23 * Author: PT. Tiki Jalur Nugraha Ekakurir 24 24 * Author URI: https://jne.co.id/ … … 48 48 * Rename this for your plugin and update it as you release new versions. 49 49 */ 50 define('JNESHOF_PLUGIN_VERSION', '1. 0.12');50 define('JNESHOF_PLUGIN_VERSION', '1.1.0'); 51 51 52 52 /** -
jne-shipping-official/tags/1.1.0/readme.txt
r3398965 r3399074 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1. 0.128 Stable tag: 1.1.0 9 9 License: GPL-2.0+ 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 91 91 == Changelog == 92 92 93 = 1.1.0 = 94 * Added JNE Shipping Dashboard with comprehensive analytics 95 * Added Shipping Status Statistics showing distribution of shipping statuses (MENUNGGU PICKUP, SUCCESS PICKUP, FAILED PICKUP, SHIPPED, DELIVERED, SHIPMENT PROBLEM, RETURN TO SHIPPER) with total orders and percentage 96 * Added Aging Shipment tracking for orders 3-7 days, 8-14 days, and >15 days (excluding DELIVERED and RETURN TO SHIPPER) 97 * Added Shipping Cost Statistics showing total shipping costs for completed orders, delivered orders, and non-delivered orders 98 * Added Top Destinations analysis showing most popular shipping destinations by city and province 99 * Added Top JNE Services analysis showing most used JNE service codes 100 * Added date range filter (default: current month) and payment type filter (COD/Non-COD) for dashboard 101 * Dashboard only shows orders with completed status 102 93 103 = 1.0.12 = 94 104 * Added fallback to billing phone when shipping phone is empty in AWB and CNote generation … … 155 165 == Upgrade Notice == 156 166 167 = 1.1.0 = 168 Major update: Added comprehensive JNE Shipping Dashboard with analytics including Shipping Status Statistics, Aging Shipment tracking, Shipping Cost Statistics, Top Destinations, and Top JNE Services. Includes date range and payment type filters. Dashboard provides valuable insights into your shipping operations. Recommended for all users. 169 157 170 = 1.0.12 = 158 171 Improved phone number handling: Added automatic fallback to billing phone when shipping phone is not available during AWB and CNote generation. This ensures better data completeness for shipping labels. Recommended for all users. -
jne-shipping-official/trunk/admin/class-jne-woocommerce-admin.php
r3387194 r3399074 112 112 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/includes/class-jne-admin-generate-cnote.php'; 113 113 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/includes/class-jne-admin-generate-awb.php'; 114 require_once plugin_dir_path(dirname(__FILE__)) . 'admin/includes/class-jne-admin-dashboard.php'; 114 115 } 115 116 … … 365 366 add_submenu_page( 366 367 'jneshof-landing', 368 __('Dashboard', 'jne-shipping-official'), 369 __('Dashboard', 'jne-shipping-official'), 370 'manage_options', 371 'jneshof-dashboard', 372 [$this, 'display_dashboard_page'] 373 ); 374 add_submenu_page( 375 'jneshof-landing', 367 376 __('Pengaturan Akses', 'jne-shipping-official'), 368 377 __('Pengaturan Akses', 'jne-shipping-official'), … … 381 390 add_submenu_page( 382 391 'jneshof-landing', 392 __('Webhook Logs', 'jne-shipping-official'), 393 __('Webhook Logs', 'jne-shipping-official'), 394 'manage_options', 395 'jneshof-webhook-logs', 396 [$this, 'display_webhook_logs_page'] 397 ); 398 add_submenu_page( 399 'jneshof-landing', 383 400 __('Bantuan', 'jne-shipping-official'), 384 401 __('Bantuan', 'jne-shipping-official'), … … 422 439 { 423 440 return include_once plugin_dir_path(__FILE__) . 'partials/jne-woocommerce-admin-support-display.php'; 441 } 442 443 public function display_webhook_logs_page() 444 { 445 return include_once plugin_dir_path(__FILE__) . 'partials/jne-woocommerce-admin-webhook-logs-display.php'; 446 } 447 448 public function display_dashboard_page() 449 { 450 return include_once plugin_dir_path(__FILE__) . 'partials/jne-woocommerce-admin-dashboard-display.php'; 424 451 } 425 452 -
jne-shipping-official/trunk/admin/includes/class-jne-admin-order-helper.php
r3398965 r3399074 535 535 536 536 /** 537 * Get JNE shipping status. 538 * @return string|null 539 */ 540 public function getJNEShippingStatus(): ?string 541 { 542 return $this->getOrderMetaValue('jneshof_shipping_status'); 543 } 544 545 /** 537 546 * Save JNE pickup number. 538 547 * @param string $pickup_number -
jne-shipping-official/trunk/admin/includes/class-jne-admin-order-list.php
r3391700 r3399074 405 405 } 406 406 407 // Save shipping status from API response if pod_status exists 408 if (isset($response['data']['cnote']['pod_status']) && !empty($response['data']['cnote']['pod_status'])) { 409 $order_helper = Jneshof_Order_Helper::getOrderByID($order_id); 410 if ($order_helper) { 411 $pod_status = $response['data']['cnote']['pod_status']; 412 // Get WC_Order object from helper 413 $wc_order = wc_get_order($order_id); 414 if ($wc_order) { 415 Jneshof_Woocommerce_Webhook::save_shipping_status_from_api($wc_order, $pod_status); 416 } 417 } 418 } 419 407 420 wp_send_json_success($response); 408 421 } -
jne-shipping-official/trunk/composer.json
r3398965 r3399074 2 2 "name": "jne-shipping/jne-shipping-official", 3 3 "description": "WordPress plugin integrated with WooCommerce for JNE shipping services", 4 "version": "1. 0.12",4 "version": "1.1.0", 5 5 "type": "wordpress-plugin", 6 6 "license": "GPL-2.0+", -
jne-shipping-official/trunk/includes/class-jne-woocommerce.php
r3387194 r3399074 134 134 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jne-woocommerce-alert.php'; 135 135 136 /** 137 * The class responsible for handling webhook requests from JNE. 138 */ 139 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jne-woocommerce-webhook.php'; 140 141 /** 142 * The class responsible for logging webhook requests. 143 */ 144 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-jne-woocommerce-webhook-logger.php'; 145 136 146 $this->loader = new Jneshof_Woocommerce_Loader(); 137 147 … … 175 185 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 176 186 187 // Register webhook REST API routes 188 $webhook_handler = Jneshof_Woocommerce_Webhook::get_instance(); 189 $this->loader->add_action( 'rest_api_init', $webhook_handler, 'register_routes' ); 190 177 191 } 178 192 -
jne-shipping-official/trunk/jne-shipping-official.php
r3398965 r3399074 20 20 * Plugin Name: JNE Shipping Official 21 21 * Description: WordPress plugin integrated with WooCommerce for JNE shipping services 22 * Version: 1. 0.1222 * Version: 1.1.0 23 23 * Author: PT. Tiki Jalur Nugraha Ekakurir 24 24 * Author URI: https://jne.co.id/ … … 48 48 * Rename this for your plugin and update it as you release new versions. 49 49 */ 50 define('JNESHOF_PLUGIN_VERSION', '1. 0.12');50 define('JNESHOF_PLUGIN_VERSION', '1.1.0'); 51 51 52 52 /** -
jne-shipping-official/trunk/readme.txt
r3398965 r3399074 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1. 0.128 Stable tag: 1.1.0 9 9 License: GPL-2.0+ 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 91 91 == Changelog == 92 92 93 = 1.1.0 = 94 * Added JNE Shipping Dashboard with comprehensive analytics 95 * Added Shipping Status Statistics showing distribution of shipping statuses (MENUNGGU PICKUP, SUCCESS PICKUP, FAILED PICKUP, SHIPPED, DELIVERED, SHIPMENT PROBLEM, RETURN TO SHIPPER) with total orders and percentage 96 * Added Aging Shipment tracking for orders 3-7 days, 8-14 days, and >15 days (excluding DELIVERED and RETURN TO SHIPPER) 97 * Added Shipping Cost Statistics showing total shipping costs for completed orders, delivered orders, and non-delivered orders 98 * Added Top Destinations analysis showing most popular shipping destinations by city and province 99 * Added Top JNE Services analysis showing most used JNE service codes 100 * Added date range filter (default: current month) and payment type filter (COD/Non-COD) for dashboard 101 * Dashboard only shows orders with completed status 102 93 103 = 1.0.12 = 94 104 * Added fallback to billing phone when shipping phone is empty in AWB and CNote generation … … 155 165 == Upgrade Notice == 156 166 167 = 1.1.0 = 168 Major update: Added comprehensive JNE Shipping Dashboard with analytics including Shipping Status Statistics, Aging Shipment tracking, Shipping Cost Statistics, Top Destinations, and Top JNE Services. Includes date range and payment type filters. Dashboard provides valuable insights into your shipping operations. Recommended for all users. 169 157 170 = 1.0.12 = 158 171 Improved phone number handling: Added automatic fallback to billing phone when shipping phone is not available during AWB and CNote generation. This ensures better data completeness for shipping labels. Recommended for all users.
Note: See TracChangeset
for help on using the changeset viewer.