You are here

function uc_ajax_cart_show_cart in Ubercart AJAX Cart 6.2

Same name and namespace in other branches
  1. 7.2 uc_ajax_cart.module \uc_ajax_cart_show_cart()
1 call to uc_ajax_cart_show_cart()
uc_ajax_cart_callback in ./uc_ajax_cart.module

File

./uc_ajax_cart.module, line 118

Code

function uc_ajax_cart_show_cart() {
  $cartContent = uc_cart_get_contents();
  if (count($cartContent) > 0) {
    print theme('uc_ajax_cart_block_content', $cartContent);
  }
  else {
    print theme('uc_ajax_cart_block_content_empty', $cartContent);
  }
}