if ($tax_class_id && $calculate) { $amount = $this->getTax($value, $tax_class_id); return $value + $amount; } else { return $value; }