I'm using discount coupon. I want that as a customer checkout, I must get the total price. If it's between $25 - $100, he will get $3 discount. If it's between $101 - $500, he will get $10 discount. I want to put some thing like: "You will get coupon discount of $3. Please contact us". This information will be shown on the confirm page, and also will be sent included the order to his email , and to the owner's email.
At file .../catalog/view/theme/default/template/checkout/confirm.tpl , I got this:
Code: Select all
<?php foreach ($totals as $total) { ?>
<tr>
<td align="right"><?php echo $total['title']; ?></td>
<td align="right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
If I'm not wrong, I need the $total['text'] . But it is something like $ 25,40
I just want the last total 25.40 . How to get this ?
Thanks in advance.
- pedma -