Skip to content
Docs
Get RestroPress

Filter

rpress_checkout_summary_cards

Updated
On this page

Filters whether checkout collapses fulfilment details into summary cards.

The value is passed to the checkout flow script. When true, the chosen service and time, and a delivery address whose required parts are already filled in, are shown as compact cards with a Change button. Return false to skip building these cards.

Available since RestroPress 3.5.1.

Parameters#

ParameterTypeDescription
$enabledboolDefault true.

Return value#

bool. Whether to build summary cards.

Example#

add_filter( 'rpress_checkout_summary_cards', 'my_disable_summary_cards', 10, 1 );
function my_disable_summary_cards( $enabled ) {
	return false;
}

Source#

Applied in:

  • includes/features/checkout-flow/functions.php (line 187), in rpress_checkout_flow_enqueue()
Was this page helpful?