Changeset 2816584
- Timestamp:
- 11/11/2022 11:25:39 AM (3 years ago)
- Location:
- shiptimize-for-woocommerce/trunk
- Files:
-
- 4 edited
-
constants.php (modified) (1 diff)
-
includes/admin/class-shiptimize-shipping.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
shiptimize.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shiptimize-for-woocommerce/trunk/constants.php
r2808620 r2816584 4 4 define( 'SHIPTIMIZE_API_URL', 'https://api.pakketmail.nl/v3' ); 5 5 define( 'SHIPTIMIZE_BRAND', 'Shiptimize' ); 6 define( 'SHIPTIMIZE_VERSION', '3.1. 59' );6 define( 'SHIPTIMIZE_VERSION', '3.1.60' ); 7 7 define( 'SHIPTIMIZE_CREATE_ACCOUNT', 'https://www.shiptimize.me/quote/' ); 8 8 define( 'SHIPTIMIZE_CHECKOUT', 0); -
shiptimize-for-woocommerce/trunk/includes/admin/class-shiptimize-shipping.php
r2800116 r2816584 589 589 public function get_option_string($type,$class,$optionname,$defaultvalue='',$options=''){ 590 590 $str= "\$this->instance_form_fields['$optionname'] = array( 591 'title' => \$ shiptimize->translate('$optionname'),591 'title' => \$translate('$optionname'), 592 592 'type' => '$type', 593 593 'class' => '$class', … … 748 748 ); 749 749 750 // Default to returning the string passed by param 751 \$translate = function (\$str){ return \$str;}; 752 750 753 // how it's possible that someone declares this method before there's an instance of the plugin is a mistery to solve later 751 754 // possible they copied the code and did their own rendition of the thing? 752 if(!\$shiptimize ) {755 if(!\$shiptimize && class_exists('WooShiptimize')) { 753 756 \$shiptimize = WooShiptimize::getInstance(); 757 } 758 759 # If we have an instance of shiptimize, then use that translate function 760 if(\$shiptimize) { 761 \$translate = function (\$str) { global \$shiptimize; return \$shiptimize->translate(\$str); }; 754 762 } 755 763 … … 997 1005 998 1006 \$this->init(); 999 1007 1008 // Default to returning the string passed by param 1009 \$translate = function (\$str){ return \$str;}; 1010 1011 // how it's possible that someone declares this method before there's an instance of the plugin is a mistery to solve later 1012 // possible they copied the code and did their own rendition of the thing? 1013 if(!\$shiptimize && class_exists('WooShiptimize')) { 1014 \$shiptimize = WooShiptimize::getInstance(); 1015 } 1016 1017 # If we have an instance of shiptimize, then use that translate function 1018 if(\$shiptimize) { 1019 \$translate = function (\$str) { global \$shiptimize; return \$shiptimize->translate(\$str); }; 1020 } 1021 1000 1022 /*Service Level*/ 1001 1023 %s … … 1194 1216 public function get_admin_options_html() 1195 1217 { 1196 global \$shiptimize;1197 1218 \$shiptimize_options = json_encode(get_option('wbs_'.\$this->instance_id.'_shiptimize')); 1198 1219 $pickup_behaviour_label; -
shiptimize-for-woocommerce/trunk/readme.txt
r2808620 r2816584 59 59 == Changelog == 60 60 61 = 3.1.60 - 2022-11-01 = 62 * Fix - Some shops seem to load shipping methods before the plugin is loaded, triggering an error in trying to use a method in the plugin. We've written a fallback 63 61 64 = 3.1.59 - 2022-11-01 = 62 65 * Fix - when sending item weight to the api, send the individual item weight not qty * item_weight -
shiptimize-for-woocommerce/trunk/shiptimize.php
r2808620 r2816584 3 3 * Plugin Name: Shiptimize for WooCommerce 4 4 * Description: Shiptimize for WooCommerce 5 * Version: 3.1. 595 * Version: 3.1.60 6 6 * Author: Shiptimize 7 7 * Author URI: https://shiptimize.me
Note: See TracChangeset
for help on using the changeset viewer.