coupon fix
This commit is contained in:
parent
97fa456a0a
commit
fe27ad24b1
1 changed files with 1 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ class PanierController extends Controller
|
|||
$panier->save();
|
||||
|
||||
foreach($coupons as $couponCode => $quantity){
|
||||
$cp = Coupon::where('coupon_code', $couponCode)->first();
|
||||
$cp = $campagne->coupons()->where('coupon_code', $couponCode)->first();
|
||||
if($cp){
|
||||
// Ajout du contenu
|
||||
if($quantity > 0){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue