@@ -877,7 +877,7 @@ class OrderController extends BackendController | |||
foreach ($products as $key => $quantity) { | |||
$product = Product::findOne($key); | |||
if ($product) { | |||
if ($product && $quantity) { | |||
$productOrder = new ProductOrder; | |||
$productOrder->id_order = $order->id; | |||
$productOrder->id_product = $key; |