Link back form empty cart page + action for hooking in bonus content

This commit is contained in:
Mike Jolley 2011-09-08 10:46:45 +01:00
parent d3862a93da
commit a2243a00b7
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@ function woocommerce_cart( $atts ) {
$woocommerce->show_messages(); $woocommerce->show_messages();
if (sizeof($woocommerce->cart->cart_contents)==0) : if (sizeof($woocommerce->cart->cart_contents)==0) :
echo '<p>'.__('Your cart is empty.', 'woothemes').'</p>'; echo '<p>'.__('Your cart is currently empty.', 'woothemes').'</p>';
do_action('woocommerce_empty_cart');
echo '<p><a class="button" href="'.get_permalink(get_option('woocommerce_shop_page_id')).'">'.__('&larr; Return To Shop', 'woothemes').'</a></p>';
return; return;
endif; endif;