Woocommerce 3.1.0 Compatability
This commit is contained in:
parent
9c4689e13d
commit
a43eabee36
|
@ -13,24 +13,21 @@
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @author WooThemes
|
* @author WooThemes
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
* @version 2.0.0
|
* @version 3.1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit; // Exit if accessed directly.
|
exit; // Exit if accessed directly
|
||||||
}
|
}
|
||||||
|
|
||||||
wc_print_notices();
|
wc_print_notices();
|
||||||
|
|
||||||
?>
|
/**
|
||||||
|
* @hooked wc_empty_cart_message - 10
|
||||||
|
*/
|
||||||
|
do_action( 'woocommerce_cart_is_empty' );
|
||||||
|
|
||||||
<p class="cart-empty">
|
if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
|
||||||
<?php esc_html_e( 'Your cart is currently empty.', 'understrap' ) ?>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_cart_is_empty' ); ?>
|
|
||||||
|
|
||||||
<?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
|
|
||||||
<p class="return-to-shop">
|
<p class="return-to-shop">
|
||||||
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
||||||
<?php _e( 'Return To Shop', 'understrap' ) ?>
|
<?php _e( 'Return To Shop', 'understrap' ) ?>
|
||||||
|
|
Reference in New Issue