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_cart.tp...

37 lines
1.4 KiB
PHP

<table class="table">
<caption>Your shopping cart</caption>
<thead>
<tr>
<th>Item</th>
<th>Quantity</th>
<th>Price</th>
</tr>
</thead>
<?php if ( $cart ): ?>
<tbody>
<?php if ( array_key_exists( 'shoppingitems', $cart ) ) { print theme( 'fulcrm_shoppingcart_cart_items', array( 'items' => $cart[ 'shoppingitems' ] ) ); } ?>
</tbody>
<tfoot>
<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>&nbsp;</td>
<td class="text-right"><a class="btn btn-primary" href="<?php print url('fulcrm/checkout'); ?>">Proceed to Checkout</a></td>
</tr>
</tfoot>
<?php else: ?>
<tbody>
<tr>
<th colspan="3">Your shopping cart is empty!</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>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
<?php endif; ?>
</table>