wpsc_cart_loop_end

Located in: cart.class.php

Functions that call this hook: have_cart_items()
Arguments Accepted: none
Version Introduced: 3.8

Description: This hook is triggered right at the very end of the cart loop before the cart items and cleaned up.

Similar Hooks: wpsc_cart_loop_start - triggered right at the start of the cart loop.

Code in context:
[php firstline="1336" highlight="1340"]
function have_cart_items() {
if ($this->current_cart_item + 1 < $this->cart_item_count) {
return true;
} else if ($this->current_cart_item + 1 == $this->cart_item_count && $this->cart_item_count > 0) {
do_action('wpsc_cart_loop_end');
// Do some cleaning up after the loop,
$this->rewind_cart_items();
}

[/php]