shopp_shipping_hasestimates

filters the return value of the shopp(‘shipping’,’hasestimates’) and shopp(‘cart’,’has-shipping-methods’) theme api calls.

add_filter( 'shopp_shipping_hasestimates', [callback] )

@param bool $estimates the return value of the shopp('shipping','hasestimates') and shopp('cart','has-shipping-methods') theme api calls.

Description

filters the return value of the shopp(‘shipping’,’hasestimates’) and shopp(‘cart’,’has-shipping-methods’) theme api calls.

This filter will be true when there are shipping method estimates available on the order.

Example

// register filter callback
add_filter('shopp_shipping_hasestimates', 'shopp_shipping_hasestimates_fltr');

// create filter function
function shopp_shipping_hasestimates_fltr( $estimates ) {
    // hides shipping estimates
    $estimates = false;
    return $estimates;
}

See Also

  1. Avatar of Chris

    It might be that I’m just not looking hard enough, but I don’t see shopp('shipping','hasestimates') OR shopp('cart','has-shipping-methods') in the Theme API.

    June 1st   #

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar