<?php

declare(strict_types=1);

namespace External\HannahBundle\EventSubscriber;

use KupShop\KupShopBundle\Context\CurrencyContext;
use KupShop\KupShopBundle\Util\Contexts;
use KupShop\OrderingBundle\Event\CartEvent;
use KupShop\OrderingBundle\EventListener\CartEventListener;

class OrderCartSubscriber extends CartEventListener
{
    public function checkCoupons(CartEvent $event)
    {
        if (Contexts::get(CurrencyContext::class)->getActiveId() === 'CZK') {
            return;
        }

        parent::checkCoupons($event);
    }
}
