Skip to content

Commit 210dac3

Browse files
committed
#163, setting request url, update plugin version
1 parent 6de77d4 commit 210dac3

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

info.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
<Version nr="207">
5555
<CreateDate>2022-06-10</CreateDate>
5656
</Version>
57+
<Version nr="208">
58+
<CreateDate>2022-09-19</CreateDate>
59+
</Version>
5760
<Hooks>
5861
<Hook id="75">75_bestellungInDb.php</Hook>
5962
<Hook id="131">131_globalinclude.php</Hook>
@@ -186,6 +189,19 @@
186189
<Option value="N" sort="3"><![CDATA[Nein, ich mache alles manuell.]]></Option>
187190
</SelectboxOptions>
188191
</Setting>
192+
<Setting type="selectbox" initialValue="N" sort="52" conf="Y">
193+
<Name>Tracking URL den Versandinformationen anfügen?</Name>
194+
<Description>
195+
<![CDATA[Soll die Tracking URL für OrderAPI Methoden an Mollie gesendet werden?
196+
Achtung wenn die Tracking URL nicht im korrekt URL Format ist, wird dies von mollie abgelehnt. In diesem Fall kann der gesamte Versandstatus nicht an mollie übergeben werden.]]>
197+
</Description>
198+
<ValueName>trackingActive</ValueName>
199+
<SelectboxOptions>
200+
<Option value="N" sort="1"><![CDATA[Nein]]></Option>
201+
<Option value="Y" sort="2"><![CDATA[Ja]]></Option>
202+
</SelectboxOptions>
203+
</Setting>
204+
189205
<Setting type="selectbox" initialValue="N" sort="40" conf="Y">
190206
<Name>Bestellungen automatisch stornieren</Name>
191207
<Description>Wenn diese Einstellung aktiviert ist, werden komplett Stornierte Bestellungen auch bei

version/208/class/Shipment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function loadRequest(&$options = [])
258258
'carrier' => utf8_encode($oVersand->getLogistik()),
259259
'code' => utf8_encode($oVersand->getIdentCode()),
260260
];
261-
if ($oVersand->getLogistikVarUrl()) {
261+
if ($oVersand->getLogistikVarUrl() && (Helper::getSetting('trackingActive') === 'Y')) {
262262
$tracking['url'] = utf8_encode($oVersand->getLogistikURL());
263263
}
264264
$this->tracking = $tracking;

0 commit comments

Comments
 (0)