Skip to content

Commit

Permalink
Fix: Small fix for re-announcing w/o delivery date
Browse files Browse the repository at this point in the history
  • Loading branch information
fean committed Aug 20, 2022
1 parent eefa7d0 commit 9422e61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions includes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public static function announceShipment($order, string $reference, $deliveryDate
}

if ($error->name === 'NoTimeslotFound') {
$order->add_order_note("The requested delivery date of [$deliveryDate] couldn't be met. Next available timeslot is used.");
return TRUNKRS_WC_Api::announceShipment($order, $reference);
$order->add_order_note("The requested delivery date of '$deliveryDate' couldn't be met. Next available timeslot is used.");
return TRUNKRS_WC_Api::announceShipment($order, $reference, null);
}
}

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: fean
Tags: delivery, packages, woocommerce, trunkrs, sameday, delivery
Requires at least: 3.6 & WooCommerce 3.0+
Tested up to: 5.9
Stable tag: 1.2.10
Stable tag: 1.2.11
Requires PHP: 7.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Expand Down
4 changes: 2 additions & 2 deletions trunkrs-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Add excellent consumer focused shipping to your WooCommerce store.
* Author: Trunkrs
* Author URI: https://trunkrs.nl
* Version: 1.2.10
* Version: 1.2.11
* Requires at least: 3.6 & WooCommerce 3.0+
* Requires PHP: 7.1
* License: GPLv3
Expand All @@ -23,7 +23,7 @@ class TRUNKRS_WC_Bootstrapper
/**
* @var string The semver version of the plugin.
*/
public $version = '1.2.10';
public $version = '1.2.11';

/**
* @var TRUNKRS_WC_Bootstrapper The shared plugin instance.
Expand Down

0 comments on commit 9422e61

Please sign in to comment.