Changeset 2819311
- Timestamp:
- 11/16/2022 08:33:41 PM (3 years ago)
- Location:
- shiptimize-for-woocommerce/trunk
- Files:
-
- 3 edited
-
includes/admin/class-shiptimize-shipping.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
shiptimize.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shiptimize-for-woocommerce/trunk/includes/admin/class-shiptimize-shipping.php
r2816584 r2819311 1147 1147 $pickup_behaviour_label = "\$pickup_behaviour_label = \$shiptimize->translate('pickupbehaviour')"; 1148 1148 1149 $pickup0 = "\$pickup0 = \$ shiptimize->translate('pickuppointbehavior0');";1150 $pickup1 = "\$pickup1 = \$ shiptimize->translate('pickuppointbehavior1');";1151 $pickup2 = "\$pickup2 = \$ shiptimize->translate('pickuppointbehavior2');";1152 $extraoptions = "\$extraoptions = \$ shiptimize->translate('extraoptions');";1153 $servicelevel = "\$servicelevel = \$ shiptimize->translate('service_level');";1149 $pickup0 = "\$pickup0 = \$translate('pickuppointbehavior0');"; 1150 $pickup1 = "\$pickup1 = \$translate('pickuppointbehavior1');"; 1151 $pickup2 = "\$pickup2 = \$translate('pickuppointbehavior2');"; 1152 $extraoptions = "\$extraoptions = \$translate('extraoptions');"; 1153 $servicelevel = "\$servicelevel = \$translate('service_level');"; 1154 1154 1155 1155 $shiptimizejs .= "shiptimize_labels = { … … 1216 1216 public function get_admin_options_html() 1217 1217 { 1218 global \$shiptimize; 1219 1220 // Default to returning the string passed by param 1221 \$translate = function (\$str){ return \$str;}; 1222 1223 // how it's possible that someone declares this method before there's an instance of the plugin is a mistery to solve later 1224 // possible they copied the code and did their own rendition of the thing? 1225 if(!\$shiptimize && class_exists('WooShiptimize')) { 1226 \$shiptimize = WooShiptimize::getInstance(); 1227 } 1228 1229 # If we have an instance of shiptimize, then use that translate function 1230 if(\$shiptimize) { 1231 \$translate = function (\$str) { global \$shiptimize; return \$shiptimize->translate(\$str); }; 1232 } 1233 1218 1234 \$shiptimize_options = json_encode(get_option('wbs_'.\$this->instance_id.'_shiptimize')); 1219 1235 $pickup_behaviour_label; -
shiptimize-for-woocommerce/trunk/readme.txt
r2819261 r2819311 59 59 == Changelog == 60 60 61 = 3.1.63 - 2022-11-16 = 62 * Fix - Error with Weight Based Shipping methods 63 61 64 = 3.1.62 - 2022-11-16 = 62 65 * Fix - Issue with re-exporting a shipment that was exported and then deleted in the app. -
shiptimize-for-woocommerce/trunk/shiptimize.php
r2819261 r2819311 3 3 * Plugin Name: Shiptimize for WooCommerce 4 4 * Description: Shiptimize for WooCommerce 5 * Version: 3.1.6 25 * Version: 3.1.63 6 6 * Author: Shiptimize 7 7 * Author URI: https://shiptimize.me
Note: See TracChangeset
for help on using the changeset viewer.