Back to Phoca Cart project (class list)

Class PhocacartTax - list of methods

Copyright: Copyright (C) Jan Pavelka https://www.phoca.cz
License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
Located at: Phocacart/tax/tax.php
Project: Phoca Cart

Method Summary

public static
()

Show source code of this method: getAllTaxes Source Code

public static
(mixed $countryId)

Show source code of this method: getTaxesByCountry Source Code

public static
(mixed $regionId)

Show source code of this method: getTaxesByRegion Source Code

public static
(mixed $taxId)

Show source code of this method: getTaxByCountry Source Code

public static
(mixed $taxId)

Show source code of this method: getTaxByRegion Source Code

public static
(mixed $taxId, mixed $tax, mixed $taxCalculationType, mixed $taxTitle)

Show source code of this method: changeTaxBasedOnRule Source Code

public static
()

Show source code of this method: getUserCountryId Source Code

public static
()

Show source code of this method: getUserRegionId Source Code

public static string
(mixed $id, mixed $countryId = 0, mixed $regionId = 0)

In case that the tax is overriden by country or region we need to identify it, this is why we don't use tax id as key but whole key: tax id:country tax id:region tax id
Parameters
  • \unknown $id
  • \number $countryId
  • \number $regionId
Returns
  • string
Show source code of this method: getTaxKey Source Code

public static
(mixed $taxKey)

Show source code of this method: getTaxIdsFromKey Source Code