Action
rpress_get_cart
Fires where the cart should be displayed.
Fired by the rpress_cart shortcode and at the end of the menu item list templates (default, grid and list). Core hooks rpress_get_cart_items() to it, which renders the shopping cart. Remove or replace that callback to change how the cart is output.
Example#
function my_before_cart_output() {
echo '<div class="my-cart-banner">Free delivery over 30</div>';
}
add_action( 'rpress_get_cart', 'my_before_cart_output', 5 );
Notes#
Fires from the shortcode callback, with output buffering, and directly from templates.
Source#
Fired from:
includes/rp-core-functions.php(line 202), inrpress_rpress_cart_callback()templates/fooditem/fooditems.php(line 149)templates/grid/fooditems.php(line 149)templates/list/fooditems.php(line 140)
See also#
Was this page helpful?
