/home/sharedstore/public_html/prestashop.sharedstore.ma/classes/tax
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/classes/tax/TaxConfiguration.php (1633B)
* @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];
}
}