wpsc_before_packing_slip

Located in: ajax-and-init.php

Functions that call this hook: wpsc_display_invoice()
Arguments Accepted: $purchase_id
Version Introduced: 3.8

Description: Called before any data is output onto the packing slip.

Similar hooks:
wpsc_packing_slip – Used by WP-e-Commerce to display the default packing slip
wpsc_packing_slip_extra_info – Used to insert data into the packing slip.

Code in context:
[php firstline=”514″ highlight=”517″]
function wpsc_display_invoice() {
$purchase_id = (int)$_GET[‘purchaselog_id’];
add_action(‘wpsc_packing_slip’, ‘wpsc_packing_slip’);
do_action(‘wpsc_before_packing_slip’, $purchase_id);
do_action(‘wpsc_packing_slip’, $purchase_id);
exit();
}
[/php]