Skip to content

Commit

Permalink
Merge pull request #34 from wuunder/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
TimD90 authored May 6, 2020
2 parents 2e6993d + 41d0213 commit 455dd94
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 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

## [1.3.5](https://github.com/kabisa/wuunder-webshopplugin-prestashop/releases/tag/1.3.5)

### Fixed
- Changed Link to instance to access getImageLink correctly
- Added business name to receiver address in booking

## [1.3.3](https://github.com/kabisa/wuunder-webshopplugin-prestashop/releases/tag/1.3.3)

### Added
Expand Down
2 changes: 1 addition & 1 deletion wuunderconnector/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>wuunderconnector</name>
<displayName><![CDATA[Wuunder shipping module]]></displayName>
<version><![CDATA[1.3.4]]></version>
<version><![CDATA[1.3.5]]></version>
<description><![CDATA[Send and receive your shipments easily, personally and efficiently. You can ship via more then 23 carriers. Wuunder takes care of all your transport and warehouse solutions you need.]]></description>
<author><![CDATA[Wuunder]]></author>
<tab><![CDATA[shipping_logistics]]></tab>
Expand Down
6 changes: 4 additions & 2 deletions wuunderconnector/controllers/admin/AdminWuunderConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct()
$this->logger->setFilename(_PS_ROOT_DIR_ . ((_PS_VERSION_ < '1.7') ? "/log/wuunder.log" : "/app/logs/wuunder.log"));
$this->bootstrap = true;
$this->override_folder = "";
$this->sourceObj = array("product" => "Prestashop extension", "version" => array("build" => "1.3.4", "plugin" => "1.0"));
$this->sourceObj = array("product" => "Prestashop extension", "version" => array("build" => "1.3.5", "plugin" => "1.0"));
}

private function setBookingToken($order_id, $booking_url, $booking_token)
Expand Down Expand Up @@ -204,6 +204,7 @@ private function buildWuunderData($order_info)
$customerAdr->setZipCode($shippingAddress->postcode);
$customerAdr->setPhoneNumber($shippingAddress->phone);
$customerAdr->setCountry($order_info['iso_code']);
$customerAdr->setBusiness($shippingAddress->company);

$webshopAdr = new \Wuunder\Api\Config\AddressConfig();

Expand All @@ -225,7 +226,8 @@ private function buildWuunderData($order_info)
$image= Image::getCover($order_info['id_product']);
$product = new Product(($order_info['id_product']));
$protocol = array_key_exists('HTTPS', $_SERVER) && $_SERVER['HTTPS'] == "on"? 'https://' : 'http://';
$imagePath = $protocol . Link::getImageLink($product->link_rewrite[Context::getContext()->language->id], $image['id_image'], 'home_default');
$link = new Link();
$imagePath = $protocol . $link->getImageLink($product->link_rewrite[Context::getContext()->language->id], $image['id_image'], 'home_default');
if ($imagePath) {
$image = base64_encode(Tools::file_get_contents($imagePath));
}
Expand Down
2 changes: 1 addition & 1 deletion wuunderconnector/wuunderconnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct()
$this->name = 'wuunderconnector';
$this->tab = 'shipping_logistics';

$this->version = '1.3.4';
$this->version = '1.3.5';

$this->author = 'Wuunder';
$this->need_instance = 0;
Expand Down

0 comments on commit 455dd94

Please sign in to comment.