KataoCartProduct.php 494 B

12345678910111213141516
  1. <?php
  2. /**
  3. * Subclass for representing a row from the 'katao_cart_product' table.
  4. *
  5. * @package lib.model
  6. */
  7. class KataoCartProduct extends BaseKataoCartProduct {
  8. public function getProductPriceWithoutTaxes() {
  9. return round($this->getProductPriceEuro() * (1 + $this->getProductMargin()), 2);
  10. }
  11. public function getProductPriceWithTaxes() {
  12. return round($this->getProductPriceEuro() * (1 + $this->getProductMargin()) * (1 + $this->getProductTvaRate()), 2);
  13. }
  14. }