public function getTaxAmount() { $taxPercentage = Configuration::getConfiguration('mage2_tax_class_percentage_of_tax'); $price = $this->price; $taxAmount = $taxPercentage * $price / 100; return $taxAmount; }