Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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();
|
$cp = Coupon::where(['coupon_code' => $coupon_code])->first();
|
||||||
|
|
||||||
if ($this->isAvailable($cp, $campagne, $contact) && $this->isAvailableToPrint($cp, $campagne)) {
|
if ($this->isAvailable($cp, $campagne, $contact) && $this->isAvailableToPrint($cp, $campagne)) {
|
||||||
|
$newQtyAvailable = 0;
|
||||||
$imgCoupon = $this->printCp($cp, $contact);
|
$imgCoupon = $this->printCp($cp, $contact);
|
||||||
$panierContent = PanierContent::where(['panier_content_couponId' => $cp->coupon_id, 'panier_content_panierId' => $panier->panier_id])->first();
|
$panierContent = PanierContent::where(['panier_content_couponId' => $cp->coupon_id, 'panier_content_panierId' => $panier->panier_id])->first();
|
||||||
if ($panierContent->panier_content_quantity > 0) {
|
if ($panierContent->panier_content_quantity > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue