* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ class TaxConfigurationCore { private $taxCalculationMethod = []; /** * @return bool */ public function includeTaxes() { if (!Configuration::get('PS_TAX')) { return false; } $idCustomer = (int) Context::getContext()->cookie->id_customer; if (!array_key_exists($idCustomer, $this->taxCalculationMethod)) { $this->taxCalculationMethod[$idCustomer] = !Product::getTaxCalculationMethod($idCustomer); } return $this->taxCalculationMethod[$idCustomer]; } }