Skip to content

Commit

Permalink
Merge pull request #42 from wuunder/development
Browse files Browse the repository at this point in the history
Support orders without shippingmethod
  • Loading branch information
TimD90 authored Feb 19, 2020
2 parents a249328 + 517b18a commit 89d15c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Released

## [2.7.13](https://github.com/kabisa/wuunder-webshopplugin-woocommerce/tag/2.7.13) - 2020-02-19

### Added
- Support for orders without selected shipping method


## [2.7.12](https://github.com/kabisa/wuunder-webshopplugin-woocommerce/tag/2.7.12) - 2020-02-17

### Added
- Support for WC switch destination address billing/shippinh
- Support for WC switch destination address billing/shipping

## [2.7.11](https://github.com/kabisa/wuunder-webshopplugin-woocommerce/tag/2.7.11) - 2020-01-21

Expand Down
4 changes: 3 additions & 1 deletion includes/checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ function prefix_wc_rest_prepare_order_object($response, $object, $request)
try {
$order = new WC_Order($object->get_id());
$shipping_object = $order->get_items('shipping');
$shipping_method_id = wcwp_get_filter_from_shippingmethod(reset($shipping_object)->get_method_id());
if (count($shipping_method) > 0) {
$shipping_method_id = wcwp_get_filter_from_shippingmethod(reset($shipping_object)->get_method_id());
}
} catch (Exception $e) {

}
Expand Down
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ You can best contact us via [email protected]
7. Eenvoudig labels printen

== Changelog ==

= 2.7.13 =
* Support order without Shipping method
= 2.7.10 =
* Shipping methods are taxable
* 2nd address line will be send to wuunder with booking
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-wuunder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Wuunder for-woocommerce
* Plugin URI: https://wearewuunder.com/wuunder-voor-webshops/
* Description: Wuunder shipping plugin
* Version: 2.7.12
* Version: 2.7.13
* Author: Wuunder
* Author URI: http://wearewuunder.com
*/
Expand Down Expand Up @@ -57,7 +57,7 @@ class Woocommerce_Wuunder {
public static $plugin_path;
public static $plugin_basename;

const VERSION = '2.7.12';
const VERSION = '2.7.13';

public function __construct() {

Expand Down

0 comments on commit 89d15c3

Please sign in to comment.