Home Forums WoodMart support forum Urgent – Empty cart page shows incorrect display

Urgent – Empty cart page shows incorrect display

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #140183

    Jeriss Cloud Center
    Participant

    Dear,

    I have a MAJOR problem on my live site. If I load the cart page when it’s empty, the display of the page is totally wrong.

    On my staging site :

    1) I disabled all external plugins
    2) I deleted all custom codes (CSS, JS, PHP)
    3) I cleared all cache on plugins, browsers and CDN
    4) I turned Cloudflare to development mode
    5) I switched to parent theme

    The problem is that
    – the icon empty cart is not shown
    – the bottom warning page shows incorrect text & too big from normal
    – the cross button to close warning is not at the right place

    Problem still remain there. Please fix this asap.

    THanks

    Attachments:
    You must be logged in to view attached files.
    #140188

    Jeriss Cloud Center
    Participant

    Also, I just tested another case : go to any product page and hit “add to cart”

    TO BE :
    I’ve enabled the feature to automatically reach the cart page with the product added.

    AS IS :
    The user lands on cart page EMPTY with the reported bug. It should have had the product added. But once you refresh the cart page, the product is indeed there.

    To be fixed asap please ! It’s major bug preventing business to be done !

    #140189

    Jeriss Cloud Center
    Participant

    Could you treat this ticket in urgency, please?

    #140196

    Jeriss Cloud Center
    Participant

    As a temporary workaround, I will disable the default woocommerce option “redirect to cart page after add to cart” so that users are forced to load a refreshed cart page if they add to cart.

    #140199

    Hello,

    As we have told you, you should update the WordPress as part of icons are taken from the WordPress. I have viewed the Theme Settings > Custom CSS > there is a lot of custom CSS, make the backup and remove all to check.

    Check the Loco plugin if the phrases are not as should be.

    Best Regards

    #140200

    Jeriss Cloud Center
    Participant

    Elise,

    For your information, I’m keeping WordPress on my live site to the old version because I’m still waiting for an update of one of my plugin dev to have full compatibility with 5.2.

    However, on the staging site, I’ve updated WordPress to the last version 5.2.2. Everything is up to date on the staging site. But the issue is still there.

    And as I said in my initial post, all plugins are disabled. Loco Translate is disabled on staging too so the question doesn’t apply.

    You say that there is a lot of Custom CSS but I told you to check the staging site where there is no custom code at all anymore.

    Please investigate.
    THanks

    #140248

    Bogdan Donovan
    Keymaster

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    function woodmart_remove_cart_msg() {
    	/**
    	 * Remove default empty cart text
    	 */
    	remove_action( 'woocommerce_cart_is_empty', 'wc_empty_cart_message', 10 );
    }
    add_action( 'wp', 'woodmart_remove_cart_msg', 10 );
    
    if ( ! function_exists( 'woodmart_wc_empty_cart_message' ) ) {
    	/**
    	 * Show notice if cart is empty.
    	 *
    	 * @since 1.0.0
    	 */
    	function woodmart_wc_empty_cart_message() {
    		?>
    		<p class="cart-empty">
    			<?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
    XTemos Studio

    #140265

    Jeriss Cloud Center
    Participant

    Bogdan,

    THanks a lot. The code works perfectly.

    Do you have any idea how this happens? I didn’t modify the files of my theme. Do you think some files may have become corrupted?

    Thanks

    #140309

    Bogdan Donovan
    Keymaster

    Hi,

    Latest WooCommerce update has changed the empty cart structure.
    This issue will be fixed in the next theme update.

    Regards

    #140364

    Jeriss Cloud Center
    Participant

    Hi,

    So after the update I can remove the code you provided earlier?

    THanks

    #140366

    Eric Watson
    Participant

    Hello,

    Yes, in the update we will add this code to the theme.

    Kind Regards
    XTemos Studio

    #144387

    Jeriss Cloud Center
    Participant

    Please close this ticket, thanks

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

The topic ‘Urgent – Empty cart page shows incorrect display’ is closed to new replies.