Changeset 2930228
- Timestamp:
- 06/23/2023 08:36:54 PM (3 years ago)
- Location:
- shiptimize-for-woocommerce/trunk
- Files:
-
- 6 edited
-
constants.php (modified) (1 diff)
-
includes/class-woo-shiptimize-order.php (modified) (4 diffs)
-
includes/core/ShiptimizeOptions.php (modified) (4 diffs)
-
includes/core/class-shiptimize-order.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
shiptimize.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shiptimize-for-woocommerce/trunk/constants.php
r2929670 r2930228 4 4 define( 'SHIPTIMIZE_API_URL', 'https://api.pakketmail.nl/v3' ); 5 5 define( 'SHIPTIMIZE_BRAND', 'Shiptimize' ); 6 define( 'SHIPTIMIZE_VERSION', '3.1.7 0' );6 define( 'SHIPTIMIZE_VERSION', '3.1.71' ); 7 7 define( 'SHIPTIMIZE_CREATE_ACCOUNT', 'https://www.shiptimize.me/quote/' ); 8 8 define( 'SHIPTIMIZE_CHECKOUT', 0); -
shiptimize-for-woocommerce/trunk/includes/class-woo-shiptimize-order.php
r2914515 r2930228 361 361 // Figure out if this is a local pickup 362 362 363 364 363 $shiptimize_carrier = get_post_meta( $this->ShopItemId , 'shiptimize_carrier' , true); 365 364 $settings = ''; … … 422 421 423 422 if ( $settings ) { 423 WooShiptimize::log( $this->ShippingMethodName . " settings " . var_export($settings,true)); 424 424 425 foreach ($this->shiptimizeOptions->getCheckoutStrIds() as $fieldstr) { 426 WooShiptimize::log("CheckOUT OPTION $fieldstr "); 425 427 $this->checkSimpleOptionWithOrderValue($settings,$fieldstr); 426 428 } … … 462 464 */ 463 465 protected function checkSimpleOptionWithOrderValue($settings,$optionname) { 464 466 WooShiptimize::log("Checking $optionname"); 465 467 if (isset($settings[$optionname]) && $settings[$optionname]) { //can be 0 in checkboxes for "no" 468 466 469 $optionvalue = $settings[$optionname]; 467 470 $childOptionId = 1; 468 471 472 WooShiptimize::log("optionvalue $optionvalue"); 469 473 if (isset($settings[$optionname . $optionvalue])) { 470 474 $childOptionId = $settings[$optionname . $optionvalue]; … … 479 483 } 480 484 481 if ($option && $option->Value != '-') { 485 # It's a checkbox or it's an option with a valid value 486 if (!isset($option->Value) || $option->Value != '-') { 482 487 array_push( $this->OptionList , $option ); 483 488 } -
shiptimize-for-woocommerce/trunk/includes/core/ShiptimizeOptions.php
r2757277 r2930228 68 68 '31' => 'sendinsured', # PostNL Pakkatten 69 69 '32' => 'activatepickup', # Activate pickup at seller 70 '56' => 'activatepickup', # CTT Activate pickup at seller 70 71 '57' => 'sendinsured', # DHL Parcel (2C) 72 '59' => 'activatepickup', # Activate pickup at seller 71 73 '70' => 'fragile', # CTT Fragile 72 '56' => 'activatepickup', # CTT Activate pickup at seller73 '59' => 'activatepickup', # Activate pickup at seller74 74 ); 75 75 } … … 81 81 $checkboxes = $this->getCheckboxFieldIds(); 82 82 $outstr = array(); 83 84 83 foreach ($checkboxes as $boxid => $boxhandle ) { 85 84 if (!in_array($boxhandle, $outstr)) { … … 115 114 ); 116 115 } 116 else if(in_array($optionId, array_keys($this->getCheckboxFieldIds()))) { 117 $option = array( 118 'Id' => $optionId, 119 'Value' => 1 120 ); 121 } 117 122 else { //default all others to value => 1 which basically just means set 118 123 $option = array( … … 137 142 ); 138 143 } 144 } 139 145 140 return $option; 141 }146 147 return $option; 142 148 } 143 149 } -
shiptimize-for-woocommerce/trunk/includes/core/class-shiptimize-order.php
r2830540 r2930228 427 427 428 428 foreach ($errors as $error) { 429 if( $error->Id == ShiptimizeOrder::$ERROR_ORDER_EXISTS){429 if( isset($error->Id) && $error->Id == ShiptimizeOrder::$ERROR_ORDER_EXISTS){ 430 430 $this->set_status(ShiptimizeOrder::$STATUS_EXPORTED_SUCCESSFULLY); 431 431 $this->add_message($this->get_formated_message("Order Exists")); -
shiptimize-for-woocommerce/trunk/readme.txt
r2914515 r2930228 59 59 == Changelog == 60 60 61 = 3.1.71 - 2023-06-23 = 62 * BugFix - Collection option not recognized when exporting. 63 61 64 = 3.1.70 - 2023-05-15 = 62 65 * BugFix - Issue in exporting orders incorrectly assigning a point selection. -
shiptimize-for-woocommerce/trunk/shiptimize.php
r2914515 r2930228 3 3 * Plugin Name: Shiptimize for WooCommerce 4 4 * Description: Shiptimize for WooCommerce 5 * Version: 3.1.7 05 * Version: 3.1.71 6 6 * Author: Shiptimize 7 7 * Author URI: https://shiptimize.me
Note: See TracChangeset
for help on using the changeset viewer.