Changeset 3182334
- Timestamp:
- 11/05/2024 01:18:34 PM (17 months ago)
- Location:
- time-express/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
timexpress-delivery.php (modified) (2 diffs)
-
utils/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
time-express/trunk/readme.txt
r3182295 r3182334 5 5 Tested up to: 6.6.2 6 6 Requires PHP: 7.0 7 Stable tag: 1.0.1 07 Stable tag: 1.0.11 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
time-express/trunk/timexpress-delivery.php
r3182295 r3182334 2 2 /** 3 3 * @package timexpress-delivery 4 * @version 1.0.1 04 * @version 1.0.11 5 5 */ 6 6 /* … … 8 8 Description: Plugin Enables Option To Add Time Express as shipping provider 9 9 Author: Time Express 10 Version: 1.0.1 010 Version: 1.0.11 11 11 * Requires at least: 5.4 12 12 * Requires PHP: 7.0 -
time-express/trunk/utils/functions.php
r2794840 r3182334 46 46 $store_raw_country = get_option( 'woocommerce_default_country' ); 47 47 48 // Split the country/state 49 $split_country = explode( ":", $store_raw_country ); 50 // Country and state separated: 51 $store_country = $split_country[0]; 52 $store_state = $split_country[1]; 48 $split_country = explode( ":", $store_raw_country ); 49 50 if (isset($split_country[1])) { 51 $store_country = $split_country[0]; 52 $store_state = $split_country[1]; 53 } else { 54 // Handle the case where the colon was not found or there's no state provided 55 $store_country = $split_country[0]; 56 $store_state = ''; // Set a default or handle as needed 57 } 53 58 $total_qty=0; 54 59 $good_description=""; … … 287 292 288 293 function TIMEX_currency_conversion($amount, $to="USD",$from="AED"){ 294 return $amount; 289 295 // print_r($amount); 290 296 // print_r($from); 291 297 // print_r($to); 292 $from=strtoupper($from);298 /*$from=strtoupper($from); 293 299 $to=strtoupper($to); 294 300 $rates=TIMEX_getCurrencyRates(); 295 301 $currency_rate_multiplier=((float)$rates[$to])/((float)$rates[$from]); 296 //print_r($currency_rate_multiplier); 297 298 return (float)(round($amount*$currency_rate_multiplier,2)); 302 303 return (float)(round($amount*$currency_rate_multiplier,2));*/ 299 304 } 300 305 //export orders
Note: See TracChangeset
for help on using the changeset viewer.