mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-26 04:31:14 +01:00
Paketmarke bugfix versandart send no email
This commit is contained in:
parent
bba2f6e56f
commit
4f8e5958ef
@ -18,7 +18,7 @@ abstract class Versanddienstleister
|
|||||||
protected int $projectId;
|
protected int $projectId;
|
||||||
protected ?int $labelPrinterId;
|
protected ?int $labelPrinterId;
|
||||||
protected ?int $documentPrinterId;
|
protected ?int $documentPrinterId;
|
||||||
protected bool $shippingMail;
|
protected int $shippingMail;
|
||||||
protected ?int $businessLetterTemplateId;
|
protected ?int $businessLetterTemplateId;
|
||||||
protected ?object $settings;
|
protected ?object $settings;
|
||||||
|
|
||||||
@ -453,6 +453,17 @@ abstract class Versanddienstleister
|
|||||||
$countries = Array();
|
$countries = Array();
|
||||||
$this->app->Tpl->addMessage('error', 'Länderliste ist leer. Siehe Einstellungen -> Länderliste.', false, 'PAGE');
|
$this->app->Tpl->addMessage('error', 'Länderliste ist leer. Siehe Einstellungen -> Länderliste.', false, 'PAGE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch ($this->shippingMail) {
|
||||||
|
case -1:
|
||||||
|
$address['email'] = '';
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
// User text template (not implemented)
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$json['form'] = $address;
|
$json['form'] = $address;
|
||||||
$json['countries'] = $countries;
|
$json['countries'] = $countries;
|
||||||
@ -469,6 +480,7 @@ abstract class Versanddienstleister
|
|||||||
$json['form']['services'] = [
|
$json['form']['services'] = [
|
||||||
Product::SERVICE_PREMIUM => false
|
Product::SERVICE_PREMIUM => false
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->app->Tpl->Set('JSON', json_encode($json));
|
$this->app->Tpl->Set('JSON', json_encode($json));
|
||||||
$this->app->Tpl->Set('CARRIERNAME', $this->GetName());
|
$this->app->Tpl->Set('CARRIERNAME', $this->GetName());
|
||||||
$this->app->Tpl->Parse($target, 'createshipment.tpl');
|
$this->app->Tpl->Parse($target, 'createshipment.tpl');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user