creating Snopp Order from Order (OrderProduct with oaid or preroder_id)
This commit is contained in:
@@ -1500,7 +1500,11 @@ class OrderController extends mfBaseController {
|
|||||||
$this->redirect("Order", "Index", ["id" => $order->id]);
|
$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->snopp_order_id = 1;
|
||||||
|
}
|
||||||
$order_product->save();
|
$order_product->save();
|
||||||
|
|
||||||
$this->layout()->setFlash("Bestellung erfolgreich in SNOPP erstellt.", "success");
|
$this->layout()->setFlash("Bestellung erfolgreich in SNOPP erstellt.", "success");
|
||||||
|
|||||||
Reference in New Issue
Block a user