Filter
rpress_checkout_fulfilment_first
On this page
Filters whether checkout shows delivery or pickup details before the contact fields.
When true, core moves the order details card (service, time and address) above the contact card, both on the standard checkout and on the register form path. Return false to keep contact details first.
Available since RestroPress 3.5.1.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$first | bool | True to show fulfilment details first. Default true. |
Return value#
bool. Whether fulfilment comes first.
Example#
add_filter( 'rpress_checkout_fulfilment_first', 'my_contact_first', 10, 1 );
function my_contact_first( $first ) {
return false;
}
Notes#
The cards are reordered on init priority 20, so add the filter before then. A per-page condition such as is_page() will not work at that point.
Source#
Applied in:
includes/features/checkout-flow/functions.php(line 28), inrpress_checkout_fulfilment_first()
Was this page helpful?
