Home › Forums › WoodMart support forum › Removing a product from the cart does not reload the page and the notification › Reply To: Removing a product from the cart does not reload the page and the notification
September 4, 2023 at 11:02 am
#492978
Luke Nielsen
Keymaster
Hello,
Please add the below code to the functions.php
file in your child theme and then recheck the issue.
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 );
}
Let me know the result.
Kind Regards