must be > 0 to exist

This commit is contained in:
Mike Jolley 2016-05-13 17:57:50 +01:00
parent 141dd2e7ef
commit 6e94df6ee5
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ wc_print_notices();
<?php do_action( 'woocommerce_cart_is_empty' ); ?>
<?php if ( wc_get_page_id( 'shop' ) ) : ?>
<?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
<p class="return-to-shop">
<a class="button wc-backward" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
<?php _e( 'Return To Shop', 'woocommerce' ) ?>