Skip to content

Commit

Permalink
Merge pull request #46 from wuunder/development
Browse files Browse the repository at this point in the history
Fixed receiver e-mail and housenumber placeholder
  • Loading branch information
timoj authored May 4, 2020
2 parents 74a6b40 + 783ae03 commit 69d5562
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Released

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

### Fixed
- Fixed customer booking email
- Removed housenumber field placeholder '-'

## [2.7.16](https://github.com/kabisa/wuunder-webshopplugin-woocommerce/tag/2.7.16) - 2020-03-23

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions includes/wcwuunder-create.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,12 @@ public function wcwp_get_customer_address($orderid)
$address_line_1 = $this->wcwp_get_customer_address_part($order_meta, '_address_1', $prefix);
$address_line_2 = $this->wcwp_get_customer_address_part($order_meta, '_address_2', $prefix);

$deliveryAddress->setEmailAddress($this->wcwp_get_customer_address_part($order_meta, '_email', $prefix));
$deliveryAddress->setEmailAddress($this->wcwp_get_customer_address_part($order_meta, '_email'));
$deliveryAddress->setFamilyName($this->wcwp_get_customer_address_part($order_meta, '_last_name', $prefix));
$deliveryAddress->setGivenName($this->wcwp_get_customer_address_part($order_meta, '_first_name', $prefix));
$deliveryAddress->setLocality($this->wcwp_get_customer_address_part($order_meta, '_city', $prefix));
$deliveryAddress->setStreetName($address_line_1);
$deliveryAddress->setAddress2($address_line_2);
$deliveryAddress->setHouseNumber('-');
$deliveryAddress->setZipCode(str_replace(' ', '', $this->wcwp_get_customer_address_part($order_meta, '_postcode', $prefix)));
$deliveryAddress->setPhoneNumber($order_meta['_billing_phone'][0]);
$deliveryAddress->setCountry($this->wcwp_get_customer_address_part($order_meta, '_country', $prefix));
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ You can best contact us via [email protected]
7. Eenvoudig labels printen

== Changelog ==
= 2.7.17 =
* Fix customer booking email
= 2.7.16 =
* Fix notify php warnings
= 2.7.15 =
Expand Down
2 changes: 1 addition & 1 deletion 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.16
* Version: 2.7.17
* Author: Wuunder
* Author URI: http://wearewuunder.com
*/
Expand Down

0 comments on commit 69d5562

Please sign in to comment.