protected function getAppliedTaxList()
    {
        $obResultTaxList = TaxHelper::instance()->getTaxList();
        if ($obResultTaxList->isEmpty()) {
            return $obResultTaxList;
        }

        foreach ($obResultTaxList as $obTaxItem) {
            $bSkipTax = !$obTaxItem->is_global
                && !$obTaxItem->isAvailableForCategory($this->product->category)
                && !$obTaxItem->isAvailableForProduct($this->product)
                && !$obTaxItem->isAvailableForCountry(TaxHelper::instance()->getActiveCountry())
                && !$obTaxItem->isAvailableForState(TaxHelper::instance()->getActiveState());

            if ($bSkipTax) {
                $obResultTaxList->exclude($obTaxItem->id);
            }
        }

        return $obResultTaxList;
    }
protected function getAppliedTaxList()
    {
        $obResultTaxList = TaxHelper::instance()->getTaxList();
        if ($obResultTaxList->isEmpty()) {
            return $obResultTaxList;
        }

        foreach ($obResultTaxList as $obTaxItem) {
            $bSkipTax = !$obTaxItem->is_global
                && !$obTaxItem->isAvailableForCategory($this->product->category)
                && !$obTaxItem->isAvailableForProduct($this->product)
                && !$obTaxItem->isAvailableForCountry(TaxHelper::instance()->getActiveCountry())
                && !$obTaxItem->isAvailableForState(TaxHelper::instance()->getActiveState());

            if ($bSkipTax) {
                $obResultTaxList->exclude($obTaxItem->id);
            }
        }

        return $obResultTaxList;
    }
protected function getAppliedTaxList ( ) { $ obResultTaxList = TaxHelper :: instance ( ) -> getTaxList ( ) ; if ( $ obResultTaxList -> isEmpty ( ) ) { return $ obResultTaxList ; } foreach ( $ obResultTaxList as $ obTaxItem ) { $ bSkipTax = ! $ obTaxItem -> is_global && ! $ obTaxItem -> isAvailableForCategory ( $ this -> product -> category ) && ! $ obTaxItem -> isAvailableForProduct ( $ this -> product ) && ! $ obTaxItem -> isAvailableForCountry ( TaxHelper :: instance ( ) -> getActiveCountry ( ) ) && ! $ obTaxItem -> isAvailableForState ( TaxHelper :: instance ( ) -> getActiveState ( ) ) ; if ( $ bSkipTax ) { $ obResultTaxList -> exclude ( $ obTaxItem -> id ) ; } } return $ obResultTaxList ; }
Get applied tax list
@return \Lovata\Shopaholic\Classes\Collection\TaxCollection|\Lovata\Shopaholic\Classes\Item\TaxItem[]
Get applied tax list