# Class Opencart\System\Library\Cart\Tax

Class Tax

Located at system\library\cart\tax.php

Methods
`public` | `__construct(Registry $registry)` Constructor Constructor | #
`public` | `setShippingAddress(int $country_id, int $zone_id): void` setShippingAddress setShippingAddress | #
`public` | `setPaymentAddress(int $country_id, int $zone_id): void` setPaymentAddress setPaymentAddress | #
`public` | `setStoreAddress(int $country_id, int $zone_id): void` setStoreAddress setStoreAddress | #
`public` | `calculate(float $value, int $tax_class_id, bool $calculate = true): float` Calculate Calculate | #
`public` | `getTax(float $value, int $tax_class_id): float` getTax getTax | #
`public` | `getRateName(int $tax_rate_id): false|string` getRateName getRateName | #
`public` | `getRates(float $value, int $tax_class_id): array<int, array<string, mixed>>` getRates getRates | #
`public` | `clear(): void` Clear Clear | #

OpenCart API API documentation generated by ApiGen dev-master