Свойство | Тип | Описание | |
---|---|---|---|
$cartCouponRepository | Elcodi\Component\CartCoupon\Repository\CartCouponRepository | CartCoupon repository |
Метод | Описание | |
---|---|---|
__construct ( Elcodi\Component\CartCoupon\Repository\CartCouponRepository $cartCouponRepository ) | Constructor | |
assertJustOneManualCoupon ( Elcodi\Component\CartCoupon\Event\CartCouponOnApplyEvent $event ) | Avoid applying a manual coupon if another is being applied |
Метод | Описание | |
---|---|---|
isManual ( Elcodi\Component\Coupon\Entity\Interfaces\CouponInterface $coupon ) : boolean | Check if a coupon has manual enforcement |
public __construct ( Elcodi\Component\CartCoupon\Repository\CartCouponRepository $cartCouponRepository ) | ||
$cartCouponRepository | Elcodi\Component\CartCoupon\Repository\CartCouponRepository | CartCoupon Repository |
public assertJustOneManualCoupon ( Elcodi\Component\CartCoupon\Event\CartCouponOnApplyEvent $event ) | ||
$event | Elcodi\Component\CartCoupon\Event\CartCouponOnApplyEvent |