Home Forums WoodMart support forum [BUG] Cart Page not refreshed after product remove

[BUG] Cart Page not refreshed after product remove

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #493023

    Mike
    Participant

    Hello, please check my video description. The cart page not refreshed after product remove. Tested with all plugins removed and default WordPress theme, it happens only when woodmart is activated

    #493054

    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 );
    }

    In the next update, it will be fixed.

    Kind Regards

    #493086

    Mike
    Participant

    Yeah the code you post its working and the page refreshed and display the ‘Your cart is currently empty.’ message
    but the mini cart icon is not cleared and still show the price and products quantity number until i refresh the whole page or click on another page, please check the screenshot on private content

    #493101

    Luke Nielsen
    Keymaster

    Hello,

    Please confirm the permission for plugins deactivation, and switching to the parent/default theme. As soon as we complete the testing we will enable all back.

    Looking forward to hearing back from you!

    Kind Regards

    #493122

    Mike
    Participant

    Sure! Go ahead,
    disable/enable what is needed. Its a clone staging site of the original so do what is needed

    • This reply was modified 1 year, 3 months ago by Mike.
    #493487

    Luke Nielsen
    Keymaster

    Hello,

    May I request you update the theme to the latest update and update the “Core” plugin and then recheck the issue?

    Let me know the results.

    Kind Regards

    #493558

    Mike
    Participant

    Hello,
    i updated the theme on latest version and it seems that the bugs are fixed, probably the ajax was the issue on the cart and is fixed now! you can set this post as resolved.

    Thank you once again

    #493596

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome! In case you need any additional help, I’d be more than happy to assist you.

    Have a good day!

    Kind Regards

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

The topic ‘[BUG] Cart Page not refreshed after product remove’ is closed to new replies.