Fix panier
This commit is contained in:
parent
a9fac75863
commit
2fcd3f9f99
1 changed files with 2 additions and 4 deletions
|
|
@ -48,10 +48,8 @@ class PanierController extends Controller
|
|||
foreach ($panierContents as $panierContent) {
|
||||
$cp = Coupon::where(['coupon_id'=> $panierContent->panier_content_couponId])->first();
|
||||
$qty = $panierContent->panier_content_quantity;
|
||||
if($qty > 0){
|
||||
for ($i=0; $i < $qty; $i++) {
|
||||
$coupons[$i] = $cp;
|
||||
}
|
||||
for ($i=0; $i < $qty; $i++) {
|
||||
$coupons[] = $cp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue