Skip to content

Commit 4930d4f

Browse files
authored
Merge pull request #24 from wuunder/development
fix check parcelshop selection
2 parents f18e3d4 + c6f4397 commit 4930d4f

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Please file changes under `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed` o
55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
66
## Unreleased
77

8+
## [1.3.6](https://github.com/kabisa/wuunder-webshopplugin-shopware/releases/tag/1.3.6)
9+
10+
### Fixed
11+
- Check for selected parcelshop on cart completion
12+
813
## [1.3.5](https://github.com/kabisa/wuunder-webshopplugin-shopware/releases/tag/1.3.5) - 2020-03-10
914

1015
### Added

Wuunder/Controllers/Backend/WuunderShipment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class Shopware_Controllers_Backend_WuunderShipment extends Enlight_Controller_Action implements CSRFWhitelistAware
1515
{
1616

17-
private static $WUUNDER_PLUGIN_VERSION = array("product" => "Shopware extension", "version" => array("build" => "1.3.5", "plugin" => "1.0"));
17+
private static $WUUNDER_PLUGIN_VERSION = array("product" => "Shopware extension", "version" => array("build" => "1.3.6", "plugin" => "1.0"));
1818

1919
public function getWhitelistedCSRFActions()
2020
{

Wuunder/Subscriber/RouteSubscriber.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function onSaveShipping(\Enlight_Controller_ActionEventArgs $args)
6161
$config = $controller
6262
->get('shopware.plugin.config_reader')
6363
->getByPluginName('Wuunder');
64-
$ourDispatch = (int)$config['parcelshop_method']; //TODO Make Dynamic
64+
$ourDispatch = (int)$config['parcelshop_method'];
6565

6666
$basket = Shopware()->Session()->connectGetBasket;
6767
$basketId = $basket['content'][0]['id'];
@@ -96,7 +96,10 @@ public function onCheckoutFinish(\Enlight_Event_EventArgs $args)
9696
$action = $request->getActionName();
9797
if ($action === 'finish') {
9898
$dispatch = Shopware()->Session()['sDispatch'];
99-
$ourDispatch = 18; //TODO Make Dynamic
99+
$config = $controller
100+
->get('shopware.plugin.config_reader')
101+
->getByPluginName('Wuunder');
102+
$ourDispatch = (int)$config['parcelshop_method'];
100103

101104
if ($dispatch == $ourDispatch) {
102105
$basket = Shopware()->Session()->connectGetBasket;

Wuunder/plugin.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"license": "proprietary",
99
"link": "http:\/\/www.wearewuunder.com",
1010
"author": "Wuunder",
11-
"currentVersion": "1.3.5",
11+
"currentVersion": "1.3.6",
1212
"changelog": {
1313
"nl": {
14+
"1.3.6": "Fixed check for selected parcelshop",
1415
"1.3.5": "Added support for order inserted via API",
1516
"1.3.4": "Exception catch order article details",
1617
"1.3.3": "Support for MultiSafePay 2.1.0",
@@ -32,6 +33,7 @@
3233
"1.0.0": "Wuunder module"
3334
},
3435
"en": {
36+
"1.3.6": "Fixed check for selected parcelshop",
3537
"1.3.5": "Added support for order inserted via API",
3638
"1.3.4": "Exception catch order article details",
3739
"1.3.3": "Support for MultiSafePay 2.1.0",
@@ -53,6 +55,7 @@
5355
"1.0.0": "Wuunder module"
5456
},
5557
"de": {
58+
"1.3.6": "Fixed check for selected parcelshop",
5659
"1.3.5": "Added support for order inserted via API",
5760
"1.3.4": "Exception catch order article details",
5861
"1.3.3": "Support for MultiSafePay 2.1.0",

Wuunder/plugin.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@
66
<label lang="en">Wuunder shipping module</label>
77
<label lang="nl">Wuunder verzendmodule</label>
88

9-
<version>1.3.5</version>
9+
<version>1.3.6</version>
1010
<copyright>(c) by Wuunder</copyright>
1111
<license>proprietary</license>
1212
<link>http://www.wearewuunder.com</link>
1313
<author>Wuunder</author>
1414
<compatibility minVersion="5.3.0"/>
1515

16+
<changelog version="1.3.6">
17+
<changes lang="de">Fixed check for selected parcelshop</changes>
18+
<changes lang="en">Fixed check for selected parcelshop</changes>
19+
</changelog>
20+
1621
<changelog version="1.3.5">
1722
<changes lang="de">Added support for order inserted via API</changes>
1823
<changes lang="en">Added support for order inserted via API</changes>

0 commit comments

Comments
 (0)