Browse Source

[Boutique] Commande avec quantité produit à 0

feature/rotating_product
Guillaume Bourgeois 7 months ago
parent
commit
2f5104a50e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      producer/controllers/OrderController.php

+ 4
- 1
producer/controllers/OrderController.php View File

@@ -444,7 +444,10 @@ class OrderController extends ProducerBaseController
]);
$productOrder->unit = $product->unit;
$productOrder->step = $product->step;
$productOrder->save();

if($quantity) {
$productOrder->save();
}
}
}


Loading…
Cancel
Save