[2.6] Add notice to My Account > Downloads..
…when no downloads are present; consistent with “Orders” empty notice
This commit is contained in:
parent
8a715e0957
commit
17eae30bf9
|
@ -98,6 +98,13 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_after_available_downloads' ); ?>
|
<?php do_action( 'woocommerce_after_available_downloads' ); ?>
|
||||||
|
|
||||||
|
<?php else : ?>
|
||||||
|
<div class="woocommerce-Message woocommerce-Message--info woocommerce-info">
|
||||||
|
<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
||||||
|
<?php esc_html_e( 'Go Shop', 'woocommerce' ) ?>
|
||||||
|
</a>
|
||||||
|
<?php esc_html_e( 'No downloads available yet.', 'woocommerce' ); ?>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_after_account_downloads', $has_downloads ); ?>
|
<?php do_action( 'woocommerce_after_account_downloads', $has_downloads ); ?>
|
||||||
|
|
Loading…
Reference in New Issue