SilverCommerce\TaxAdmin\Traits\Taxable
Synopsis
trait Taxable
{
- // methods
- public mixed filterTaxableExtensionResults()
- public NumberFormatter getFormatter()
- public string getCurrency()
- public string getCurrencySymbol()
- public float getNoTaxPrice()
- public float getTaxPercentage()
- public float getTaxAmount()
- public float getPriceAndTax()
- public string getTaxString()
- public string getFormattedPrice()
- public string getNicePrice()
Hierarchy
Methods
public
- filterTaxableExtensionResults() — Filter the results returned by an extension
- getCurrency() — Get ISO 4217 currency code from curent locale
- getCurrencySymbol() — Get a currency symbol from the current site local
- getFormattedPrice() — Return a formatted price (based on locale)
- getFormatter() — Get currency formatter
- getNicePrice() — Get nicely formatted currency (based on current locale)
- getNoTaxPrice() — Shortcut to get the price of this product without tax
- getPriceAndTax() — Get the Total price and tax
- getTaxAmount() — Get a final tax amount for this object. You can extend this method using "UpdateTax" allowing third party modules to alter tax amounts dynamically.
- getTaxPercentage() — Get the percentage tax rate assotiated with this field
- getTaxString() — Generate a string to go with the the product price. We can overwrite the wording of this by using Silverstripes language files