wpsc_checkout_loop_end

Located in: checkout.class.php

Functions that call this hook: have_gateways(), have_checkout_items()
Arguments Accepted: none
Version Introduced: 3.8

Description: This hook is triggered at the very end of the checkout loop but before all the items are cleaned up.

Similar Hooks: wpsc_checkout_loop_start triggered right at the start of the checkout loop.

Code in context:
[php firstline=”1169″ highlight=”1173″]
function have_gateways() {
if ( $this->current_gateway + 1 < $this->gateway_count ) {
return true;
} else if ( $this->current_gateway + 1 == $this->gateway_count && $this->gateway_count > 0 ) {
do_action( ‘wpsc_checkout_loop_end’ );
// Do some cleaning up after the loop,
$this->rewind_gateways();
}

$this->in_the_loop = false;
return false;
}

[/php]

Code in context:
[php firstline=”929″ highlight=”933″]
function have_checkout_items() {
if ( $this->current_checkout_item + 1 < $this->checkout_item_count ) {
return true;
} else if ( $this->current_checkout_item + 1 == $this->checkout_item_count && $this->checkout_item_count > 0 ) {
do_action( ‘wpsc_checkout_loop_end’ );
// Do some cleaning up after the loop,
$this->rewind_checkout_items();
}

$this->in_the_loop = false;
return false;
}
[/php]