diff --git a/application/Preorder/Preorder.php b/application/Preorder/Preorder.php index 87942b1be..8406b36c4 100644 --- a/application/Preorder/Preorder.php +++ b/application/Preorder/Preorder.php @@ -1125,7 +1125,7 @@ class Preorder extends mfBaseModel { $campaign = $this->getProperty("campaign"); $cifcableurl = $campaign->cifcableurl; - str_replace("{{}}", $this->ciftoken, $cifcableurl); + str_replace("{{CIFTOKEN}}", $this->ciftoken, $cifcableurl); return $cifcableurl; } diff --git a/application/Preorderlogistics/PreorderlogisticsController.php b/application/Preorderlogistics/PreorderlogisticsController.php index b53c2d262..767e019eb 100644 --- a/application/Preorderlogistics/PreorderlogisticsController.php +++ b/application/Preorderlogistics/PreorderlogisticsController.php @@ -209,12 +209,12 @@ class PreorderlogisticsController extends mfBaseController { */ if(!$preorder->ciftoken) { $preorder->createCiftoken(); - $preorder->cifurl = "https://pro.ichwillglasfaser.at/ClientSubmit/finishedInstallationWork?c=".$preorder->ciftoken; + $preorder->generateCifUrl(); $preorder->save(); } - + if(!$preorder->cifcableurl) { - $preorder->cifcableurl = "https://www.deineglasfaser.at/kundinnen/leerrohr-nachbestellung/"; + $preorder->generateCifCableUrl(); $preorder->save(); }