From 210dac33232be995e7290813c41d0acad8a98f4b Mon Sep 17 00:00:00 2001 From: Kabelo Morokane Date: Mon, 19 Sep 2022 17:00:29 +0200 Subject: [PATCH] #163, setting request url, update plugin version --- info.xml | 16 ++++++++++++++++ version/208/class/Shipment.php | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/info.xml b/info.xml index 59ca7b3..1b0760e 100644 --- a/info.xml +++ b/info.xml @@ -54,6 +54,9 @@ 2022-06-10 + + 2022-09-19 + 75_bestellungInDb.php 131_globalinclude.php @@ -186,6 +189,19 @@ + + Tracking URL den Versandinformationen anfügen? + + + + trackingActive + + + + + + Bestellungen automatisch stornieren Wenn diese Einstellung aktiviert ist, werden komplett Stornierte Bestellungen auch bei diff --git a/version/208/class/Shipment.php b/version/208/class/Shipment.php index a22a8d3..26414cc 100644 --- a/version/208/class/Shipment.php +++ b/version/208/class/Shipment.php @@ -258,7 +258,7 @@ public function loadRequest(&$options = []) 'carrier' => utf8_encode($oVersand->getLogistik()), 'code' => utf8_encode($oVersand->getIdentCode()), ]; - if ($oVersand->getLogistikVarUrl()) { + if ($oVersand->getLogistikVarUrl() && (Helper::getSetting('trackingActive') === 'Y')) { $tracking['url'] = utf8_encode($oVersand->getLogistikURL()); } $this->tracking = $tracking;