Changeset 2801237
- Timestamp:
- 10/19/2022 01:02:12 PM (3 years ago)
- Location:
- sendbox-shipping/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
includes/class-wooss-shipping-method.php (modified) (7 diffs)
-
wooss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendbox-shipping/trunk/README.txt
r2776142 r2801237 126 126 <p>new update</p> 127 127 128 <b>3.3.5</b> 129 <p>Get shipping quotes based on store currency</p> 130 131 128 132 <h3> Arbitrary section </h3> 129 133 -
sendbox-shipping/trunk/includes/class-wooss-shipping-method.php
r2742157 r2801237 115 115 wc_add_notice( sprintf( '<strong>Unable to get shipping fees at this time.</strong>' ), 'error' ); 116 116 } 117 117 118 //MAKING CHANGES HERE 118 119 //$origin_country = 'Nigeria';// get_option('wooss_country'); … … 156 157 $destination_country = wooss_get_countries( $package, 'country' ); 157 158 $destination_state = wooss_get_countries( $package, 'state' ); 159 $currency = get_option('woocommerce_currency'); 158 160 159 161 if ( preg_match( '/\s\(\w+\)/', $destination_country ) == true ) { … … 199 201 'incoming_option_code' => $incoming_option_code, 200 202 'pickup_date' => $pickup_date, 203 'currency' => $currency, 201 204 ); 202 205 … … 213 216 214 217 $quoted_fee = $quotes_fee + $wooss_extra_fees; 218 215 219 216 220 /* … … 222 226 $payload_array_data['destination_state'] = $destination_state; 223 227 $payload_array_data['destination_city'] = $destination_city; 228 $payload_array_data['currency'] = $currency; 224 229 225 230 if ( (int)$quoted_fee == 0 ) { … … 233 238 $quoted_fee = $quotes_fee + $wooss_extra_fees; 234 239 } 240 235 241 236 242 $new_rate = array( … … 659 665 break; 660 666 667 case 'currency': 668 $payload_data->currency = $value; 669 break; 670 661 671 default: 662 672 break; -
sendbox-shipping/trunk/wooss.php
r2776142 r2801237 16 16 * Plugin URI: # 17 17 * Description: This is a woocommerce plugin that enables you ship from your store to anywhere in the world. 18 * Version: 3.3. 418 * Version: 3.3.5 19 19 * Author: sendbox 20 20 * Author URI: https://sendbox.ng/ … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define('WOOSS_VERSION', '3.3. 3');37 define('WOOSS_VERSION', '3.3.5'); 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.