Returns the total price of the item.

Total Price = ( Unit Price - Unit Discount ) * Purchasing Quantity

@param type $precision
@return type
513596
public function getTotalPrice( $precision = 2 ) {

		$price	= ( $this->price - $this->discount ) * $this->purchase;

		return round( $price, $precision );
	}
827248
public function Total($decimal_size = null)
    {
        if ($this->Cost && $this->Tax) {
            $cost = $this->Cost + (($this->Cost / 100) * $this->Tax);
        } else {
            $cost = $this->Cost;
        }
        
        if($decimal_size) {
            $cost = number_format($cost, $decimal_size);
        }
        
        return $cost;
    }
18120
public function toBest($precision = null)
    {
        $fromUnit = UnitResolver::resolve($this->from);
        $base = $this->getBase() == 2 ? 1024 : 1000;
        $converted = $this->start;
        while ($converted >= 1) {
            $fromUnit++;
            $result = $this->div($this->start, pow($base, $fromUnit), $precision);
            if ($result <= 1) return $converted;
            $converted = $result;
        }
        return $converted;
    }
118118
public function getSubTotal()
    {
        $total = $this->UnitPrice * $this->Quantity;

        $this->extend("updateSubTotal", $total);

        return $total;
    }
303190
function getTotal() {
		if ($this->total === null) {
			$q = clone $this->query;
			$q->setLimit(null);
			$q->setOffset(null);
			if ($this->className) {
				$total = call_user_func(array($this->className, 'doCount'), $q);
			} else {
				$total = $q->doCount();
			}
			$this->total = $total;
		}
		return $this->total;
	}
394607
public function subtotal($decimals = null, $decimalPoint = null, $thousandSeperator = null)
    {
        $content = $this->getContent();

        $subTotal = $content->reduce(function ($subTotal, CartItem $cartItem) {
            return $subTotal + ($cartItem->qty * $cartItem->price);
        }, 0);

        return $this->numberFormat($subTotal, $decimals, $decimalPoint, $thousandSeperator);
    }
1255594
public function getTotalCost()
    {
        $subtotal = $this->SubTotalCost;
        $discount = $this->DiscountAmount;
        $postage = $this->PostageCost;
        $tax = $this->TaxCost;

        return ($subtotal - $discount) + $postage + $tax;
    }
1164962
public function roundDown(int $precision = 0): Utility
    {
        return $this->round($this->number, $precision, PHP_ROUND_HALF_DOWN);
    }
1017703
public function GetPrice()
    {
        if (is_null($this->dPrice)) {
            $this->dPrice = 0;
            $oBasket = TShopBasket::GetInstance();
            if ('absolut' == $this->fieldValueType) {
                $this->dPrice = $this->fieldValue;
            } else {
                $this->dPrice = ($oBasket->dCostArticlesTotalAfterDiscounts * ($this->fieldValue / 100));
            }
            $this->dPrice = round($this->dPrice, 2);
        }

        return $this->dPrice;
    }
381603
public function total($formatted = true)
    {
        $total = 0.00;
        $cartProducts = $this->getSession();

        foreach ($cartProducts as $product) {
            $total += $product->lineTotal();
        }

        if ($formatted == true) {
            $symbol = Session::get('currency_symbol');
            return $symbol . number_format($total, 2);
        }

        return $total;
    }
1356631
public function getFTPrice()
    {
        // module
        if ($oPrice = $this->getTPrice()) {
            if ($dPrice = $this->_getPriceForView($oPrice)) {
                return \OxidEsales\Eshop\Core\Registry::getLang()->formatCurrency($dPrice);
            }
        }
    }
24570
public function getUnitPrice()
    {
        $total = $this->Price;

        foreach ($this->Customisations() as $customisation) {
            $total += $customisation->Price;
        }

        $this->extend("updateUnitPrice", $total);

        return $total;
    }
594989
public function prices() : Float
    {
        $total = 0;

        if( ! empty(Properties::$items) ) foreach( Properties::$items as $values )
        {
            $quantity = (int)   ($values['quantity'] ?? 1);
            $price    = (float) ($values['price']    ?? 0);

            $total += $price * $quantity;
        }

        return $total;
    }
879142
public function getIsDecimalEven( $precision = false )
	{
		if ( ! $this->getIsDecimal() ) {
			return false;
		}

		if ( $precision === false ) $precision = $this->scale( $this->_value );
		if ( $precision < 0 ) $precision = $precision = 0;

		$decimalPart = $this->getDecimalPart();
		if ( $precision >= strlen( $decimalPart ) ) return false;

		// Get the portion of the decimal part affected by the scale value
		$decimalPart = substr( $decimalPart, $precision );
		return $decimalPart[0] % 2 === 0;
	}
53604
public function total($decimals = null, $decimalPoint = null, $thousandSeperator = null)
    {
        $content = $this->getContent();

        $total = $content->reduce(function ($total, CartItem $cartItem) {
            return $total + ($cartItem->qty * $cartItem->priceTax);
        }, 0);

        return $this->numberFormat($total, $decimals, $decimalPoint, $thousandSeperator);
    }
1021105
public function getFUnitPrice()
    {
        return \OxidEsales\Eshop\Core\Registry::getLang()->formatCurrency($this->getUnitPrice()->getPrice());
    }
368836
public function getTaxTotal()
    {
        $total = $this->UnitTax * $this->Quantity;

        $this->extend("updateTaxTotal", $total);

        return $total;
    }