Action: tcp shopping cart empty

Description

“tcp_shopping_cart_empty” action is executed if the shopping cart is empty. It’s executed in the Shopping Cart and in the Checkout pages, after the notice “tcp_shopping_cart_empty”.

Example

<?php
function my_tcp_shopping_cart_empty() { ?>
  <p><?php printf( __( 'Please, visit our <a href="%s">catalogue</a>', 'my_tcp' ), tcp_get_the_continue_url() ); ?></p>
<?php }
add_action( 'tcp_shopping_cart_empty', 'my_tcp_shopping_cart_empty' ); ?>

Change Log

Since 1.1.8