uc_ajax_cart_block_content.tpl.php in Ubercart AJAX Cart 6.2
Same filename and directory in other branches
Theme file for non empty cart.
2 theme calls to uc_ajax_cart_block_content.tpl.php
File
templates/uc_ajax_cart_block_content.tpl.phpView source
<?php
/**
* @file
*
* Theme file for non empty cart.
*/
?>
<div id="cart-block-contents-ajax">
<table class="cart-block-items">
<thead>
<tr>
<th colspan="4">
<?php
print t('Products');
?>
</th>
</tr>
</thead>
<tbody>
<?php
foreach ($items as $item) {
?>
<tr class="odd">
<td class="cart-block-item-qty">
<?php
print $item['qty'];
?>
</td>
<td class="cart-block-item-title">
<?php
print $item['title'];
print $item['descr'];
?>
</td>
<td>
<?php
print $item['total'];
?>
</td>
</tr>
<tr>
<td colspan="4" class="cart-block-item-desc">
<?php
print $item['remove_link'];
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<table>
<tbody>
<?php
if ($total_no_discount) {
?>
<tr>
<td class="cart-block-summary-items">
</td>
<td class="cart-block-summary-total">
<?php
print t('Subtotal');
?>:
<?php
print $total_no_discount;
?>
</td>
</tr>
<tr>
<td class="cart-block-summary-items">
</td>
<td class="cart-block-summary-total">
<?php
print t('Discount');
?>:
<?php
print $discount_amount;
?>
</td>
</tr>
<tr>
<td class="cart-block-summary-items">
<?php
print $items_text;
?>
</td>
<td class="cart-block-summary-total">
<?php
print t('Total');
?>:
<?php
print $total;
?>
</td>
</tr>
<?php
}
else {
?>
<tr>
<td class="cart-block-summary-items">
<?php
print $items_text;
?>
</td>
<td class="cart-block-summary-total">
<label><?php
print t('Total');
?>: </label><?php
print $total;
?>
</td>
</tr>
<?php
}
// no discounts
?>
<tr class="cart-block-summary-links">
<td colspan="2">
<?php
print $cart_links;
?>
</td>
</tr>
</tbody>
</table>