wpsc_cart_shipping

Located in: cart.class.php

Functions that call this hook: wpsc_cart_shipping()
Arguments Accepted: none
Version Introduced: 3.8.8

Description: This filter is triggered anytime wpsc_cart_shipping is called. This function returns the price of shipping. A great use case would be if you wanted to return the text “Free Shipping” if the price was $0.00.

Code in context:
[php firstline=”202″ highlight=”204″]
function wpsc_cart_shipping() {
global $wpsc_cart;
return apply_filters( ‘wpsc_cart_shipping’, wpsc_currency_display( $wpsc_cart->calculate_total_shipping() ) );
}
[/php]