phpDocumentor

AfterbuyTaxHelper
in package

Table of Contents

$connection  : Connection
__construct()  : mixed
getTaxRate()  : float
Returns the tax rate based on a tax class ID, country and (optionally) state/zone.
mustAddTax()  : bool
Determines whether VAT must be added for a given customers_status_id.
findCountryIdByName()  : int
Finds country ID by name.
findZoneIdByCountryIdAndName()  : int
Finds zone ID by name.

Properties

Methods

__construct()

public __construct(Connection $connection) : mixed
Parameters
$connection : Connection
Return values
mixed

getTaxRate()

Returns the tax rate based on a tax class ID, country and (optionally) state/zone.

public getTaxRate(int $taxClassId, string $countryName[, string $zoneName = '' ]) : float
Parameters
$taxClassId : int
$countryName : string
$zoneName : string = ''
Tags
throws
Exception
Return values
float

mustAddTax()

Determines whether VAT must be added for a given customers_status_id.

public mustAddTax(int $customerStatusId) : bool
Parameters
$customerStatusId : int
Tags
throws
Exception
Return values
bool

findCountryIdByName()

Finds country ID by name.

private findCountryIdByName(string $countryName) : int
Parameters
$countryName : string
Tags
throws
Exception
Return values
int

findZoneIdByCountryIdAndName()

Finds zone ID by name.

private findZoneIdByCountryIdAndName(int $countryId, string $zoneName) : int
Parameters
$countryId : int
$zoneName : string
Tags
throws
Exception
Return values
int

Search results