creating Snopp Order from Order (OrderProduct with oaid or preroder_id)

This commit is contained in:
Frank Schubert
2026-01-26 13:57:38 +01:00
parent 976844d623
commit 038e6e1734

View File

@@ -1500,7 +1500,11 @@ class OrderController extends mfBaseController {
$this->redirect("Order", "Index", ["id" => $order->id]);
}
if($resp->result->order_id) {
$order_product->snopp_order_id = $resp->result->order_id;
} else {
$order_product->snopp_order_id = 1;
}
$order_product->save();
$this->layout()->setFlash("Bestellung erfolgreich in SNOPP erstellt.", "success");