You are here

uc_ajax_cart_block_content.tpl.php in Ubercart AJAX Cart 7.2

Same filename and directory in other branches
  1. 6.2 templates/uc_ajax_cart_block_content.tpl.php

Theme file for non empty cart.

File

templates/uc_ajax_cart_block_content.tpl.php
View 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>
    <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>
    <tr class="cart-block-summary-links">
      <td colspan="2">
        <?php

print $cart_links;
?>
      </td>
    </tr>
  </tbody>
</table>