shopp_orderui_show_orderdata

filters the show order-data override for the order-data metabox in the Shopp Order Admin.

add_filter( 'shopp_orderui_show_orderdata', [callback] )

@param bool $show when true, will cause the order-data metabox to show in the Shopp Order Admin.  When false, the default behavior is used.

Description

filters the show order-data override for the order-data metabox in the Shopp Order Admin.

Normally, the order-data metabox in the Shopp Order Manager will only display when order-data has been collected on the checkout form for the currently viewed order. If this filter returns true, the order-data metabox will display regardless of whether or not order-data is present in the order.

Order data is collected on the checkout form using the shopp(‘checkout’,’order-data’) Theme API call in your checkout template to add additional checkout inputs.

Example

// register filter callback
add_filter('shopp_orderui_show_orderdata', 'shopp_orderui_show_orderdata_filter');

// create filter function
function shopp_orderui_show_orderdata_filter( $show ) {
    // force the order-data metabox to show
    return true;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar