fix: 🐛 adding a variable declaration in the corresponding scope
This commit is contained in:
parent
b7f42fc518
commit
9c6aefa56e
1 changed files with 1 additions and 0 deletions
|
|
@ -279,6 +279,7 @@ class AjaxController extends Controller
|
|||
$cp = Coupon::where(['coupon_code' => $coupon_code])->first();
|
||||
|
||||
if ($this->isAvailable($cp, $campagne, $contact) && $this->isAvailableToPrint($cp, $campagne)) {
|
||||
$newQtyAvailable = 0;
|
||||
$imgCoupon = $this->printCp($cp, $contact);
|
||||
$panierContent = PanierContent::where(['panier_content_couponId' => $cp->coupon_id, 'panier_content_panierId' => $panier->panier_id])->first();
|
||||
if ($panierContent->panier_content_quantity > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue