/** * Applies VAT to article * * @param oxPrice $oPrice Price object * @param double $dVat VAT percent * * @return null */ protected function _applyVAT(oxPrice $oPrice, $dVat) { startProfile(__FUNCTION__); $oPrice->setVAT($dVat); if (($dVat = oxVatSelector::getInstance()->getArticleUserVat($this)) !== false) { $oPrice->setUserVat($dVat); } stopProfile(__FUNCTION__); }