Link back form empty cart page + action for hooking in bonus content
This commit is contained in:
parent
d3862a93da
commit
a2243a00b7
|
@ -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')).'">'.__('← Return To Shop', 'woothemes').'</a></p>';
|
||||||
return;
|
return;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue