Home Forums WoodMart support forum Removing a product from the cart does not reload the page and the notification

Removing a product from the cart does not reload the page and the notification

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #490530

    e.saquicela
    Participant

    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

    #490640

    Luke Nielsen
    Keymaster

    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

    #492904

    e.saquicela
    Participant

    Hello,

    It did not work, could you help me with this, since I did what you indicated but it did not work.

    #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

    #493147

    e.saquicela
    Participant

    Thanks so much, yes it worked

    #493302

    Luke Nielsen
    Keymaster

    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

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Removing a product from the cart does not reload the page and the notification’ is closed to new replies.