Removing a product from the cart does not reload the page and the notification
-
When removing a product from the cart, the system does not notify me that the product has been removed, nor the notification to undo the product, nor the notification that the cart is empty and the button to return to the store. It comes out only when I manually reload the page.
Please your help with this
Hello,
Could you please disable all plugins except these ones:
WPBakery Page Builder or Elementor
Woodmart Core
WooCommerce
If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
Let me know the result.
Kind Regards
Hello,
It did not work, could you help me with this, since I did what you indicated but it did not work.
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
Thanks so much, yes it worked
Hello,
Great! In case you need any additional help, I’d be more than happy to assist you.
Wish you all the best.
Kind Regards
The topic ‘Removing a product from the cart does not reload the page and the notification’ is closed to new replies.