Home Forums Search Search Results for 'empty cart issue'

Viewing 30 results - 31 through 60 (of 187 total)
  • Author
    Search Results
  • Hung Pham
    Keymaster
    #565711

    Hi Fabio,

    To fix this issue, first try to add the following code snippet to the Child Theme functions.php file:

    add_action( 'woodmart_after_header', function () {
        if ( ! woodmart_woocommerce_installed() || ! is_cart() || ! XTS\Modules\Layouts\Main::get_instance()->has_custom_layout( 'cart' ) ) {
           return;
        }
    
        XTS\Modules\Layouts\Global_Data::get_instance()->set_data( 'builder', true );
    
        woodmart_page_title();
    
        remove_action( 'woodmart_after_header', 'woodmart_page_title', 10 );
    }, 1 );

    And second, add the following code snippet to the Custom CSS area in Theme Settings:

    .woocommerce-cart .main-page-wrapper > .page-title {
    	display: none;
    }
    
    .woocommerce-cart .main-page-wrapper:has(.wd-empty-page) > .page-title {
    	display: block;
    }

    Kind Regards

    rahmat.wpdev
    Participant
    #562223

    Hello, I think you didn’t get my point.
    I said I wasn’t able to change button color and text color. I tried to change from theme settings > styling and also tried using elementor but it’s not working.

    I would request you to please login my site and try to find from there it’s overwriting the default color.

    1. My account page text color(green) I wasn’t able to change: https://prnt.sc/D4oy4oRVtU81

    2. Cart page: https://prnt.sc/1CdU9H3iAghA Button text color not showing

    3. There is a few more buttions https://prnt.sc/Uh9gnDOPyY8L where green text color but we didn’t put this, I’ve checked theme settings>styling & color and also checked elementor’s site settings.

    4. not enough padding on the side cartbar when It’s empty: https://prnt.sc/1yt2OKDjzQb3

    5. Please check, responsive issue on the cart page: https://prnt.sc/CBoyIdpSSP9I & not sure from where the green color is coming, I didn’t put any green

    6. https://prnt.sc/-rp6sENqR-CF Finally checkout page responsive issue on small device.

    Thank you so much, access on the private chat

    kineart.it
    Participant
    #559387

    Thank you for your answer.

    However the html block is not empty, but I can’t see it in Elementor builder: that’s the problem!

    It appears that the content is indeed present within the HTML Block. However, there seems to be an unexpected glitch where the content is not displaying as intended. Upon revisiting the Gutenberg editor, you will find that the text I have consistently used beneath the “add to cart” button in the e-commerce platform is still present.

    It seems that the content of two blocks, including the HTML Block in question, has either disappeared or encountered a bug unexpectedly. Please verify the attached files.

    Could you please advise on how we can troubleshoot and resolve this issue promptly?

    Attachments:
    You must be logged in to view attached files.
    luka.soldo007
    Participant
    #553470

    Thanks for trying to help but i didn’t succced

    1. Pre-footer is empty..nothing there to be able to change white line that appears when i zoom on browser, here is image of pre-footer (its empty) there is nothing that i can edit..please check video from 1. again and here is image of pre-footer

    https://ibb.co/vY4DmF8

    2. I will try that

    3. When i go Layout, Elementor, Single product page [Buy now] button is not displayed so i can’t edit, everything looks normal on phone without buy now button but there is [Buy now] button on both Desktop and Phone mode its just not displaying it..how to fix to display it on elementor so i can edit it and fix the issue?
    Here is image of proof that [Buy now] is not shown when using elementor editor , showing only add to cart no buy now button..but on site its displayed on both phone and desktop mode..on desktop everything is okay on phone its breaking lines like you can see in first post of this topic
    https://ibb.co/vX0BcNh

    4. I found it but you said what size of image and what format i should use?
    like i mention for example [18×18 jpg, png, ico, ?] What size? and what format should it be?

    billychen0917
    Participant
    #530643

    When I trying to checking out the items in shopping cart, and click place order. It shows 404 and then the shopping cart is empty. How do I fix this issue?

    Please check the attachment for reference

    Attachments:
    You must be logged in to view attached files.
    ivorkirwan
    Participant
    #526868

    I figured out the woocommerce apearing under the menu part. Just needed to change the header on both the cart and checkout page.

    Just the last issue is still valid.

    “Also, 2nd issue. The formating on the empty cart page is not formated like the desktop.
    Please see screenshot.”

    ivorkirwan
    Participant
    #526826

    Also, 2nd issue. The formating on the empty cart page is not formated like the desktop.
    Please see screenshot.

    Attachments:
    You must be logged in to view attached files.
    agas
    Participant
    #526261

    Hi,
    My customers complain that they could not place orders on my site and when i check it than
    woocommerce Cart shows empty when products are placed in cart.

    Can you please help me to solve this issue.

    denissusac92
    Participant
    #524752

    Thank you , I solved all issues with your help.
    Now I have couple more issues that I couldnt find solutions.
    I uploaded pictures again, so…..

    Picture 1-3:
    1.1How to translate “Search for products” to my language…

    1.2 “Pocetna stranica/home page” – need to change hover color but I couldnt find how to change it…

    1.3 “My account and Wishlist” Links/buttons/whatever it is… How to translate it to my language….

    1.4 “Wishlist is empty” and “Return to shop” button – How to translate it to my language

    1.5 On bottom of mobile page (also bottom of picture) – How to translate “Wishlist” and “Cart” to my language

    Picture 4-5:
    2.1 “Sign in” , “Password”, “Log in”, “Remember me”, “Lost password”, “No account yet”, “Create an account”, “Shopping cart”… – How to translate it to my language

    2.2 On bottom of picture – “Go to cart” – problem with hover colour again…

    Picture 6-7:
    3.1 “In stock” – How to remove that so it doesnt appear in store if possible because every product is personalised custom made…

    3.2 “Buy Now” – I wasnt able to find how to translate it to my language, it seams to be some kind of button, I only manage to change colour (it was green originally)

    3.3 “Add to wishlist” – How to translate it to my language

    Picture 8-9:
    4.1 – Because its store that makes personalised products I need to insert something like comment/notes/order section for customer to write something… For example customer wants engrave his name here and there…..

    4.2 “Show 9/12/18/4” – How to translate “Show” to my language

    4.3 Again – “In stock” and “Buy now” need translation

    Best regards

    Attachments:
    You must be logged in to view attached files.
    spnutratea
    Participant
    #516957

    Hi Artem,

    It is caused by WoodMart theme Add To Cart button. Area-Label & Area-Labelledby have accessibility issues. Storefront theme does not have such issues. ARIA roles enable assistive technologies to know the role of each element on the web page. If the role values are misspelled, not existing ARIA role values, or abstract roles, then the purpose of the element will not be communicated to users of assistive technologies.

    Result of WoodMart theme:

    aria-label=”Product Name” to your basket aria-labelledby attribute prints empty. Google shows the warning.

    Product image zoom coding also shows an error: role=”presentation” I assume should be role=”image”. You may know better than all of us.

    <img role=”presentation” alt=”altname” src=”/wp-content/uploads/2019/05/main.webp” class=”zoomImg”

    Do you want me to open a ticket for such?

    Regards,
    SP

    gokulm
    Participant
    #513881

    This is the same issue I am facing
    https://xtemos.com/forums/topic/sidecart-is-empty-no-content/

    Your above answer doesn’t help so please can you please help fixing.

    hofitd
    Participant
    #510604

    Hi
    I have a weird issue on mobile that the side cart is not being displayed after adding to cart.
    The items are also not saved in cart, so if adding more products it will not remember the other products that were already added to cart and if only adding 1 product and then going to cart page is gives a message that the cart is empty.
    I noticed it on my iPhone – it happens in Safari (both normal and incognito mode).
    I also checked on Chrome and it seems to work fine, so I guess it’s a Safari issue.
    The site just launched today. Please check it, it’s urgent.

    I attach videos

    I actually just check more websites of Woodmart theme (total of 3 different websites) and it happens in all of them!

    Thanks

    • This topic was modified 1 year, 5 months ago by hofitd.
    Attachments:
    You must be logged in to view attached files.
    Bogdan Donovan
    Keymaster
    #510182

    Hi,

    To fix this issue, first try to add the following code snippet to the Child Theme functions.php file:

    add_action( 'woodmart_after_header', function () {
        if ( ! woodmart_woocommerce_installed() || ! is_cart() || ! XTS\Modules\Layouts\Main::get_instance()->has_custom_layout( 'cart' ) ) {
           return;
        }
    
        XTS\Modules\Layouts\Global_Data::get_instance()->set_data( 'builder', true );
    
        woodmart_page_title();
    
        remove_action( 'woodmart_after_header', 'woodmart_page_title', 10 );
    }, 1 );

    And second, add the following code snippet to the Custom CSS area in Theme Settings:

    .woocommerce-cart .main-page-wrapper > .page-title {
    	display: none;
    }
    
    .woocommerce-cart .main-page-wrapper:has(.wd-empty-page) > .page-title {
    	display: block;
    }

    Kind Regards

    nemesis1940
    Participant
    #508329

    Hello I have applied all latest updates and plugins and still have the empty cart issue.

    https://xtemos.com/forums/search/empty+cart+issue/

    #506860

    Hello,

    When I try to add a product to the cart, the cart is empty and I can’t get to the checkout, I am still on the home page.

    Have you found the solution?

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the case. In addition, provide the steps to reproduce the issue.

    Best Regards

    parikh.dhruv
    Participant
    #504499

    dear team,

    My website is giving me alot of errors.
    1. i am unable to change password on the account, or even login.
    2. even after adding products to cart, the popup shows it is added but when i go to cart page it shows that the cart is empty.

    I am not being able to figure out the issue here. Kindly assist on a priority as i am getting calls from customers that they are unable to place orders.

    dieg6
    Participant
    #501114

    Hello XTemos Team,
    I am having the same issue with the blank cart. I have been trying to apply all the solutions posted here, with no success. Can anyone in the XTEMOS team address this directly if I provide the login details?

    #498167

    Hello, we are having a problem where when something is searched up on the search bar, the search page loads the product but it gives multiple error messages saying that “product xxxx is missing weight. aborting”. But all of our products do have a weight assigned to them. the same message appears sometimes in the cart section when you remove a product from the cart, or when you make the cart empty. Could we get some help with this? we are willing to pay a developer from xtemos/woodmart to help us resolve this issue.

    Attachments:
    You must be logged in to view attached files.
    profarveta
    Participant
    #497137

    Hello, I believe I’ve identified the issue and a potential workaround. My hosting provider is WP Engine and by default:

    “WP Engine make extensive use of caching, excluding pages where this is not desired, like the cart or checkout page. They do this for the default paths (/cart, /checkout).”

    https://stackoverflow.com/questions/31533606/woocommerce-cart-empty-for-non-logged-in-users#:~:text=This%20kind%20of%20problem%20is,all%20plugins%20except%20for%20WooCommerce.

    confirmed here:
    https://wpengine.com/support/best-practices-ecommerce-sites/

    It appears that the problem stemmed from my decision to change my page name and url from “cart” to “carrito.” This change likely disrupted WP Engine’s caching, leading to the mismatch. Fortunately, after restoring the page name and URL to “cart,” the issue seems to be resolved.

    I want to extend my apologies for any inconvenience this may have caused and express my gratitude for your assistance. Thank you for your support!

    Luke Nielsen
    Keymaster
    #493054

    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

    Luke Nielsen
    Keymaster
    #492978

    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

    Jimson
    Participant
    #492458

    My isssue: The shopping cart widget does not display anything

    After adding a product to the cart and hovering over the go-to-cart icon, the shopping cart widget shows nothing and remains completely blank. The hidden sidebar, if enabled in the settings, is empty as well.

    Screenshot: https://i.imgur.com/3eVEloS.png

    I’ve seen many others report this issue as well, often followed by the response that it is an Elementor issue. However, my website only uses Woodmart (child theme), WP Bakery, and Woocommerce.

    I’ve ruled out every plugin; I disabled all plugins except Woocommerce and Redux Framework, and the issue persists.

    Screenshot: https://i.imgur.com/D8z7Lhb.png

    Activating the parent Woodmart theme also didn’t help, so child theme interference is excluded.

    I would appreciate your assistance in resolving this issue.

    Regards,

    *******
    FYI: Similar topics around the same issue:
    https://wordpress.org/support/topic/woocommerce-widget-shopping-cart-content-blank/
    https://xtemos.com/forums/topic/add-to-cart-shows-empty/
    https://wordpress.org/support/topic/woocommerce-widget-shopping-cart-content-blank/
    https://xtemos.com/forums/topic/shopping-cart-pop-up-widget-thing-not-working-2/
    https://xtemos.com/forums/topic/cart-widget-not-working-when-product-is-added-to-cart/
    https://xtemos.com/forums/topic/mini-cart-is-blank-after-page-refresh-change/
    https://xtemos.com/forums/topic/shopping-cart-pop-up-widget-thing-not-working/

    Attachments:
    You must be logged in to view attached files.
    Luke Nielsen
    Keymaster
    #491871

    Hello,

    Please add the below code into the functions.php file in your child theme to fix that. In general, this issue will be fixed in the next update.

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

    Kind Regards

    makomedigital
    Participant
    #489921

    @tomyech
    i just had the issue with the empty cart

    Luke Nielsen
    Keymaster
    #489503

    Hello,

    Please add the below code into the functions.php file in your child theme for fixing that. In general, this issue will be fixed in the next update.

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

    Kind Regards

    wildguitars
    Participant
    #489284

    Hi guys,
    I hope everyone is doing well.
    I recently updated the WordPress version and WooCommerce plugin on our staging website, to test for bugs before performing the updates on our live site.

    Please download this screen recording: https://we.tl/t-30MiLGoliY

    As you can see, after emptying the cart on the staging site (dev2) there is no content. On the live site the empty cart message appears properly. The only difference between the staging site and live site is the WordPress and WooCommerce versions.

    1. Disabling all plugins except for Classic Editor, WooCommerce and Woodmart Core does not resolve the issue.
    2. Switching to Woodmart parent theme does not resolve the issue.
    3. Switching to another theme (Twenty Twenty-Three) resolves the issue.

    I’d appreciate your assistance with this.

    Thanks,
    Tom

    Luke Nielsen
    Keymaster
    #489068

    Hello,

    Please add the below custom code to the child theme and then recheck the issue.

    add_action('init', function () {
    	if ( ! empty( $_SERVER['REQUEST_URI'] ) && false !== strpos( $_SERVER['REQUEST_URI'], trailingslashit( rest_get_url_prefix() ) ) && function_exists( 'wc_load_cart' ) && ! function_exists( 'wc_print_notices' ) ) {
    		wc_load_cart();
    	}
    }, 1000);

    Kind Regards

    estaguilars
    Participant
    #488047

    Hi!
    This is a dev site for testing, as you can see in the next video, the Cart Widget in the Cart Page works with the storefront theme, but with Woodmart Theme doesn’t:
    https://www.loom.com/share/8e124a9d3c1b4813801056965126ca59?sid=4842cd60-d5a7-4a11-ba00-84303cf542f4

    Additionally, I found another issue, when the last item is removed, the cart doesn’t show the expected empty message, but show a blank page (you can see it too in the video)

    Thanks for your support

    Attachments:
    You must be logged in to view attached files.
    dreaminvesthome
    Participant
    #487725

    hello, I would please ask your help for the following issues:

    1. The issue is that the tax is calculated and shown 2 times …. please see attached screenshot. This is a very serious issue and don’t know how to solve it

    2. Where to disable the right sidebar on the checkout and cart page. I have a custom template but not able to disable the right sidebar even if the widgets are empty
    thank you

    Attachments:
    You must be logged in to view attached files.
    metuza
    Participant
    #481913

    Hello,

    If you add to cart these 2 products:
    https://www.arctic-fritid.no/produkt/videreforedling/marinader-og-urter/seilaksfarge-10g/
    https://www.arctic-fritid.no/produkt/videreforedling/kaldroyking/roykeklosser-av-or-matroyk/

    Then you should find that the woodmart shipping progressbar dissapear and a message appear with text “Frakt tilkommer da ordren må leveres fra lokal- og sekundærlager” in english (Shipping is added as the order must be delivered from local and secondary warehouses).

    But the above does no longer happend.

    Also by empty cart again and adding 3 pcs of this product:
    https://www.arctic-fritid.no/produkt/friluftsliv/telt-og-lavvo/telt/coleman-darwin-3-telt/

    Then you should find that the woodmart shipping progressbar dissapear and a message appear with text “Frakt tilkommer da din nåværende ordre har en totalvekt på over 10 kg.” in english (Shipping is added as your current order has a total weight of more than 10 kg).

    But also this happend anymore.

    I will guess that it is everything betwwen 2-4 months since last time i tested the above and all working ok. Wierd is that it now has dissapeared on 3 of my sites.

    I have tested today with all plugins deactivated and using storefront theme but with no luck, issue is the same. It seems like the filter is not active as i can force in fatal errors in code which normally would have caused some issues with loading in cart page, but whatever i do no problems in cart.

    Message placeholder is in place and working – div.aws-free-shipping

    This is the code i have been using for 4-5 years:

    // Add shipping messages to cart page

    function afas_woocommerce_shipping_fragment( $fragments ) {
    
         $postkasse = false;
         $pakke_hentested = false;
         $unstocked = false;
         $price = false;
         $extra = false;
    
         foreach( WC()->cart->get_cart_contents() as $key => $values ):
    
    	$product = $values[ 'data' ];
    
    	if ( $values[ 'data' ]->get_shipping_class_id() == 716 ) // Pakke i postkassen
    		$postkasse = true;
    
    	if ( $values[ 'data' ]->get_shipping_class_id() == 717 ) // Pakke til hentested
    		$pakke_hentested = true;
    
    	if ( $values[ 'data' ]->get_shipping_class_id() == 715 ) { // Unstocked
    		$unstocked = true;
    	} else {
    		$quantity = $values[ 'quantity' ];
    		$item_price = wc_get_price_including_tax( $product );
    		$price += ($item_price * $quantity);
    	}
    
         endforeach;
    
            if ( $unstocked && ( $postkasse || $pakke_hentested ) ) $extra = true;
    
    	ob_start();
    
    	$cart_total = is_object( WC()->cart ) ? WC()->cart->subtotal : '';
    	$cart_total_weight = is_object( WC()->cart ) ? WC()->cart->get_cart_contents_weight() : '';
    
    	if ( $extra || ( $cart_total_weight >= 10 && $cart_total_weight < 99 && $cart_total ) ) {
    
    	afas_shipping_popup( $cart_total_weight, $extra, $price );
    
    	} else if ( $cart_total_weight >= 99 ) {
    
    	afas_shipping_popup( $cart_total_weight, $extra, $price );
    
    	} else {
    
    	afas_shipping_popup_placeholder();
    
    	}
    
    	$content = ob_get_clean();
    
    	$fragments['div.aws-free-shipping'] = $content;
    	return $fragments;
    
    }
    add_filter( 'woocommerce_add_to_cart_fragments', 'afas_woocommerce_shipping_fragment' );
    
    function afas_shipping_popup( $cart_total_weight, $extra, $price ) {
    
    	if ( $extra && $price < 1499 ) {
    	echo '<style>.wd-free-progress-bar {display:none;visibility:hidden;}</style>';
    	echo wc_print_notice( 'Frakt tilkommer da ordren må leveres fra lokal- og sekundærlager.<br/><small style="margin-left: 0;">Alle Matrøyk-produkter sendes direkte fra fabrikken på Nøtterøy.</small>', 'notice' );
    	}
    	
    	if ( $cart_total_weight >= 10 && $cart_total_weight <= 99 ) {
    	echo '<style>.wd-free-progress-bar {display:none;visibility:hidden;}</style>';
    	echo wc_print_notice( 'Frakt tilkommer da din nåværende ordre har en totalvekt på over 10 kg.', 'notice' );
    	} else if ( $cart_total_weight > 99 ) {
    	echo '<style>.wd-free-progress-bar {display:none;visibility:hidden;}</style>';
    	echo wc_print_notice( 'Vi kan dessverre ikke levere din ordre da vi har en vektbegrensning på ca. 100 kg.', 'notice' );
    	}
    
    }
    
    function afas_shipping_popup_placeholder() {
    
    	echo '<div class="aws-free-shipping"></div>';
    
    }
    add_action( 'woocommerce_before_cart_table', 'afas_shipping_popup_placeholder', 10 );

    I have also tried with priority on the filter from -1 to 999 but no luck. And also simplified the above code to not use any conditionals / values etc. just hardcoded message, but seems to be totally dead.

    Code is added to a included file in functions.php in child theme. Also tried to move it into woodmart theme functions.php

    So any idea on what could be wrong has been great 🙂

    I will activate a staging site for further testing.

    Brgds
    Rune

Viewing 30 results - 31 through 60 (of 187 total)