You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fulcrm_shoppingcart/fulcrm_shoppingcart_transac...

46 lines
2.1 KiB
PHTML

<table class="table">
<caption>Your order</caption>
<thead>
<tr>
<th>Item</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<?php if ( array_key_exists( 'lineitems', $transaction ) ) { print theme( 'fulcrm_shoppingcart_transaction_items', array( 'items' => $transaction[ 'lineitems' ] ) ); } ?>
</tbody>
<tfoot>
<?php foreach ( $transaction[ 'paymentitems' ] as $paymentitem ) { if ( !$paymentitem[ 'fee' ] ) { print theme( 'fulcrm_shoppingcart_transaction_payment', array( 'item' => $paymentitem ) ); } } ?>
<tr>
<th colspan="3">
Total
</th>
<th class="text-right">
<?php $any = false; ?>
<?php if ( count( $transaction[ '_price' ][ 'outstanding' ] ) ): ?>
<?php foreach ( $transaction[ '_price' ][ 'outstanding' ] as $currency => $price ): ?>
<?php if ( $price[ 'balance' ] > 0 ): ?>
<?php $any = true; ?>
<div><?php print $currency . ' ' . $price[ 'format_balance' ]; ?></div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if ( !$any ): ?>
<em>free</em>
<?php endif; ?>
</th>
</tr>
<tr>
<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>
<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>
</tr>
</tfoot>
</table>