Home › Forums › WoodMart support forum › Cart is empty message is not showing after update. › Reply To: Cart is empty message is not showing after update.
August 29, 2023 at 10:04 am
#491871
Luke Nielsen
Keymaster
Hello,
Please add the below code into the functions.php file in your child theme to fix that. In general, this issue will be fixed in the next update.
if ( ! function_exists( 'woodmart_wc_empty_cart_message' ) ) {
/**
* Show notice if cart is empty.
*
* @since 1.0.0
*/
function woodmart_wc_empty_cart_message() {
woodmart_enqueue_inline_style( 'woo-page-empty-page' );
?>
<p class="cart-empty wd-empty-page wc-empty-cart-message">
<?php echo wp_kses_post( apply_filters( 'wc_empty_cart_message', __( 'Your cart is currently empty.', 'woocommerce' ) ) ); ?>
</p>
<?php
}
add_action( 'woocommerce_cart_is_empty', 'woodmart_wc_empty_cart_message', 10 );
}
Kind Regards