I am using OpenCart 2.3.0.2 . I'm trying to display the total from checkout/cart.tpl to the checkout/checkout.tpl but when i use the code from cart page it doesn't work:
<div class="row">
<div class="col-sm-4 col-sm-offset-8">
<table class="table table-bordered">
<?php foreach ($totals as $total) { ?>
<tr>
<td class="text-right"><strong><?php echo $total['title']; ?>:</strong></td>
<td class="text-right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
</table>
</div>
</div>
The problem is that I don't know how to get the total price as a variable.