shopp_timeframes_menu

filters the lookup table for order processing time-frames.

add_filter( 'shopp_timeframes_menu', [callback] )

@param array $timeframes the lookup table for processing timeframes.

Description

filters the lookup table for order processing time-frames.

This is used to build the processing time frames that are added to the start and end times for shipping estimates, and to build the processing menu in the product editor.

Example

// register filter callback
add_filter('shopp_timeframes_menu', 'shopp_timeframes_menu_filter');

// create filter function
function shopp_timeframes_menu_filter( $timeframes ) {
    // defaults to 1-10 days, 1-6 weeks, and 1-3 months
    // add 11-20 days, 7 weeks, and 4 months as options
    $timeframes['11d'] = '11 days';
    $timeframes['12d'] = '12 days';
    $timeframes['13d'] = '13 days';
    $timeframes['14d'] = '14 days';
    $timeframes['15d'] = '15 days';
    $timeframes['16d'] = '16 days';
    $timeframes['17d'] = '17 days';
    $timeframes['18d'] = '18 days';
    $timeframes['19d'] = '19 days';
    $timeframes['20d'] = '20 days';
    $timeframes['7w'] = '7 weeks';
    $timeframes['4m'] = '4 months';
    return $timeframes;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar