kernel/classes/ezvatmanager.php
\eZVATManager
Package:
Parameters
Parameters
Parameters
Methods


getUserCountry(
$user
=
false, $considerPreferedCountry
=
true
)
:
void
static
Determine user's country.
\public \static
Name | Type | Description |
---|---|---|
$user | ||
$considerPreferedCountry |


getUserCountryAttributeName(
$requireUserCountry
)
:
void
static
Determine name of content attribute that contains user's country.
\private \static
Name | Type | Description |
---|---|---|
$requireUserCountry |


getVAT(
$object, $country
)
:
void
static
Get percentage of VAT type corresponding to the given product and country the user is from.
\return Percentage, or null on error. \public \static
Name | Type | Description |
---|---|---|
$object | ||
$country |