Added fields to Preordercampaign

This commit is contained in:
Frank Schubert
2022-05-11 17:35:21 +02:00
parent 11ede6a5b7
commit ebf2f808f3
13 changed files with 531 additions and 15 deletions
@@ -199,6 +199,13 @@ class PreorderController extends mfBaseController {
$this->redirect("Preordercampaign");
}
if(!array_key_exists($data['type'], $campaign->types)) {
$this->layout()->setFlash("Bitte Vorbestelltyp auswählen!", "error");
$this->layout()->set("preorder", $preorder);
$this->layout()->set("campaign", $campaign);
return $this->addAction();
}
$product = new Product($data['product_id']);
if(!$product->id) {
$this->layout()->setFlash("Bitte Produkt auswählen!", "error");