Home › Forums › WoodMart support forum › Urgent – Empty cart page shows incorrect display
Urgent – Empty cart page shows incorrect display
- This topic has 11 replies, 4 voices, and was last updated 5 years, 5 months ago by
Jeriss Cloud Center.
-
AuthorPosts
-
August 24, 2019 at 12:11 pm #140183
Jeriss Cloud CenterParticipantDear,
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 themeThe 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 placeProblem still remain there. Please fix this asap.
THanks
Attachments:
You must be logged in to view attached files.August 24, 2019 at 12:39 pm #140188
Jeriss Cloud CenterParticipantAlso, 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 !
August 24, 2019 at 12:54 pm #140189
Jeriss Cloud CenterParticipantCould you treat this ticket in urgency, please?
August 24, 2019 at 1:28 pm #140196
Jeriss Cloud CenterParticipantAs 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.
August 24, 2019 at 1:44 pm #140199
Elise NoromitMemberHello,
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
August 24, 2019 at 1:55 pm #140200
Jeriss Cloud CenterParticipantElise,
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.
THanksAugust 25, 2019 at 8:24 am #140248
Bogdan DonovanKeymasterHello,
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 StudioAugust 25, 2019 at 11:50 am #140265
Jeriss Cloud CenterParticipantBogdan,
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
August 26, 2019 at 6:10 am #140309
Bogdan DonovanKeymasterHi,
Latest WooCommerce update has changed the empty cart structure.
This issue will be fixed in the next theme update.Regards
August 26, 2019 at 9:40 am #140364
Jeriss Cloud CenterParticipantHi,
So after the update I can remove the code you provided earlier?
THanks
August 26, 2019 at 9:42 am #140366
Eric WatsonParticipantHello,
Yes, in the update we will add this code to the theme.
Kind Regards
XTemos StudioSeptember 16, 2019 at 9:57 pm #144387
Jeriss Cloud CenterParticipantPlease close this ticket, thanks
-
AuthorPosts
The topic ‘Urgent – Empty cart page shows incorrect display’ is closed to new replies.
- You must be logged in to create new topics. Login / Register