PricePercentTaxType
class PricePercentTaxType extends BaseTaxType
Methods
For a price percent tax type, return the percentage (e.g. 20 for 20%) of the product price to use in tax calculation.
For constant amount tax type, return the absolute amount to use in tax calculation.
Returns the requirements definition of this tax type. This is an array of TaxTypeRequirementDefinition, which defines the name and the type of the requirements. Example :
No description
No description
Details
at line 34
number
pricePercentRetriever()
For a price percent tax type, return the percentage (e.g. 20 for 20%) of the product price to use in tax calculation.
For other tax types, this method shoud return 0.
in
BaseTaxType at line 52
number
fixAmountRetriever(
Product $product)
For constant amount tax type, return the absolute amount to use in tax calculation.
For other tax types, this method shoud return 0.
at line 39
array
getRequirementsDefinition()
Returns the requirements definition of this tax type. This is an array of TaxTypeRequirementDefinition, which defines the name and the type of the requirements. Example :
array( 'percent' => new FloatType() );