float function total_cart_price(boolean $apply_discounts=true, string $cart_name='main')
$apply_discounts
boolean
indicates if the cart-level discounts should be applied to the result.
Calculating discounts on every page could affect the front-end performance. Pass the false value
to the parameter to display the cart total before discounts.
$cart_name
string
specifies the cart name.
{return}
float
returns the total price.
Returns total price of all items in the cart.
Discounts are not applied to the function result. Usage example: