Changeset 3369389
- Timestamp:
- 09/29/2025 03:30:07 AM (6 months ago)
- Location:
- freightexchange/tags/1.8.12
- Files:
-
- 2 edited
-
freight-exchange.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
freightexchange/tags/1.8.12/freight-exchange.php
r2978445 r3369389 19 19 } 20 20 if ( ! defined( 'FX_API_URL' ) ) { 21 define("FX_API_URL",'https:// portal-api.freightexchange.com.au/portal/api/v2/quote');21 define("FX_API_URL",'https://api.freightexchange.com.au/portal/api/v2/quote'); 22 22 } 23 23 … … 224 224 // get shipping rates 225 225 public function freightexchange_api( $package, $saved_quoteId ) { 226 226 $response_data = array(); 227 227 if ( empty( $package ) ) { 228 228 return array(); … … 359 359 } 360 360 fe_error_log($log_msg); 361 361 if ( ! empty( $destination['city']) and ! empty( $destination['postcode'])) { 362 362 $response_hooks = wp_remote_request( $send_url, array( 363 363 'method' => $api_method, … … 372 372 373 373 $response_code = wp_remote_retrieve_response_code( $response_hooks ); 374 $response_data = array();374 375 375 376 376 if( 200 == $response_code ){ … … 385 385 fe_error_log( $log_msg ); 386 386 } 387 387 } 388 388 return $response_data; 389 389 } 390 390 391 } 391 392 } -
freightexchange/tags/1.8.12/readme.txt
r3326055 r3369389 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.3 8 Stable tag: 1.8.1 18 Stable tag: 1.8.12 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 108 108 2023.09.05 - Version 1.8.11 109 109 * Tweak - Allowed Local Pickup Shipping options to be available always 110 111 2025.09.26 - Version 1.8.12 112 * Tweak - Added the checks to stop calling the API if the destination postcode and suburb is missing 110 113 111 114 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.