@@ -564,6 +564,7 @@ class OrderController extends ProducerBaseController | |||
$product['photo'] = '' ; | |||
} | |||
$product['quantity_max'] = $product['productDistribution'][0]['quantity_max'] ; | |||
$quantityOrder = Order::getProductQuantity($product['id'], $ordersArray) ; | |||
$product['quantity_ordered'] = $quantityOrder ; | |||
$product['quantity_remaining'] = $product['quantity_max'] - $quantityOrder ; |