more tidying of checkout templates

This commit is contained in:
Marek Isalski 2016-04-07 17:09:54 +01:00
parent b67436c465
commit d0b137ca59
2 changed files with 16 additions and 4 deletions

View File

@ -20,8 +20,14 @@
<th colspan="3">
Total
</th>
<th>
<?php print $transaction[ '_price' ][ 'format_total' ]; ?>
<th class="text-right">
<?php if ( count( $transaction[ '_price' ][ 'total' ] ) ): ?>
<?php foreach ( $transaction[ '_price' ][ 'total' ] as $currency => $price ): ?>
<div><?php print $price[ 'format_total' ]; ?></div>
<?php endforeach; ?>
<?php else: ?>
<em>free</em>
<?php endif; ?>
</th>
</tr>
<tr>

View File

@ -22,8 +22,14 @@
<th colspan="3">
Total
</th>
<th>
<?php print $transaction[ '_price' ][ 'format_total' ]; ?>
<th class="text-right">
<?php if ( count( $transaction[ '_price' ][ 'total' ] ) ): ?>
<?php foreach ( $transaction[ '_price' ][ 'total' ] as $currency => $price ): ?>
<div><?php print $price[ 'format_total' ]; ?></div>
<?php endforeach; ?>
<?php else: ?>
<em>free</em>
<?php endif; ?>
</th>
</tr>
</tfoot>