fulcrm_shoppingcart/fulcrm_shoppingcart_transaction_checkout.tpl.php

39 lines
1.6 KiB
PHP
Raw Normal View History

2016-03-27 22:35:01 +01:00
<table class="table">
<caption>Your order</caption>
<thead>
<tr>
<th>Item</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
</thead>
2016-04-08 11:04:28 +01:00
<tbody>
<?php if ( array_key_exists( 'lineitems', $transaction ) ) { print theme( 'fulcrm_shoppingcart_transaction_items', array( 'items' => $transaction[ 'lineitems' ] ) ); } ?>
2016-03-27 22:35:01 +01:00
</tbody>
<tfoot>
<tr>
<th colspan="3">
Total
</th>
2016-04-07 17:09:54 +01:00
<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; ?>
2016-03-27 22:35:01 +01:00
</th>
</tr>
<tr>
2016-04-08 11:04:28 +01:00
<td><a class="btn btn-success" href="<?php print check_plain( variable_get( 'fulcrm_shoppingcart_proceed_url', url('<front>') ) )?>"><?php print check_plain( variable_get( 'fulcrm_shoppingcart_proceed_text', '' ) ); ?></a></td>
2016-03-27 22:35:01 +01:00
<td colspan="2">&nbsp;</td>
<td class="text-right"><?php foreach ( ( $transaction[ '_paymentmethods' ][ 'pay' ][ 'preferred' ] + $transaction[ '_paymentmethods' ][ 'pay' ][ 'other' ] ) as $paymentmethod ): ?><a class="btn btn-primary" href="<?php print $paymentmethod[ 'payment_direct_url' ]; ?>"><?php print check_plain( $paymentmethod[ 'name' ] ); ?></a><?php endforeach; ?></td>
2016-03-27 22:35:01 +01:00
</tr>
</tfoot>
</table>