public function total()
{
$sum = $this->sum();
$shipping = floatval($this->app->user_manager->session_get('shipping_cost'));
$total = $sum + $shipping;
if (get_option('enable_taxes', 'shop') == 1) {
if ($total > 0) {
$tax = $this->app->tax_manager->calculate($sum);
$total = $total + $tax;
}
}
return $total;
}