• Resolved Tishina

    (@gkaralov)


    Hello,

    I just updated WooCommerce to 8.6 and the label “Shipping costs are calculated during checkout” appeared in the cart page, and the shipping methods got hidden.

    My site has a fixed flat rate fee, or Free Shipping, therefore this message should not be displayed as no cost calculations are needed.

    Until now everything worked smoothly.

    Can you help remove this message and show the shipping methods again?

    https://prnt.sc/91RUu_1NiOYE

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @gkaralov,

    I understand how frustrating this may be.

    As a first step, I’d like to confirm that we released the latest version 8.6.1 to address some of the issue reported by users like yourself.

    Could you please try updating to that version 8.6.1 and let us know if the issue gets resolved?

    Thread Starter Tishina

    (@gkaralov)

    Hello,

    I updated but nothing changed.

    Hey, @gkaralov!

    Thanks for trying.

    I checked my website, and I’m not able to replicate this issue.

    How did it use to work before? Did it ask to add an address to show shipping options? Or did just showed the shipping options?

    I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter Tishina

    (@gkaralov)

    Hi @carolm29,

    How did it use to work before? Did it ask to add an address to show shipping options? Or did just showed the shipping options?

    It just showed the shipping options in the cart.

    Here’s my system report: https://gist.github.com/xameleon196/0c82a0a08aaf0dd4798fe82088432e84

    Please help me guys, because I feel it started affecting the sales a bit. Customers started calling on the phone more yesterday and today to order, instead of placing an order through the site. Some said they had a hard time making an order (mostly elderly people)

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Tishina,

    Thank you for your reply.

    I visited your site and went through the checkout process myself. As you mentioned, the shipping methods are not visible on the cart page but do appear once I proceed to the checkout page.

    I observed that the country field is preset to Bulgaria on the checkout page, and it’s at this point that the shipping methods become visible.

    Upon returning to the cart page by clicking the bag icon at the top right corner, the shipping options were now present there as well.

    https://snipboard.io/AS960R.jpg

    This behavior indicates that the address information, particularly the country, isn’t available when initially visiting the cart page. This lack of address detail is what likely leads to the shipping methods being hidden at that stage.

    To clarify the cause, may I inquire how the country is automatically set to Bulgaria at checkout? Are you using custom code to achieve this? If so, I would recommend reviewing that custom code, as it may be influencing the visibility of shipping methods on the cart page.

    Please let me know about your findings.
    I am here to help. ??

    Best regards.

    Thread Starter Tishina

    (@gkaralov)

    Hello,

    The only code I have for the cart is when free shipping thereshold is met, to hide all other methods:

    /**
     * Hide shipping rates when free shipping is available.
     * Updated to support WooCommerce 2.6 Shipping Zones.
     *
     * @param array $rates Array of rates found for the package.
     * @return array
     */
    function my_hide_shipping_when_free_is_available( $rates ) {
    	$free = array();
    	foreach ( $rates as $rate_id => $rate ) {
    		if ( 'free_shipping' === $rate->method_id ) {
    			$free[ $rate_id ] = $rate;
    			break;
    		}
    	}
    	return ! empty( $free ) ? $free : $rates;

    These are my WooCommerce main settings: https://prnt.sc/evU9jdjCP7Pf

    ?? hey @gkaralov

    The only code I have for the cart is when free shipping thereshold is met, to hide all other methods

    The code mentioned here, along with fix #43803 (as reported in the changelog of WooCommerce), appear to be the culprit here, from what I gather.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

    Thread Starter Tishina

    (@gkaralov)

    Hey,

    Just to clarify – I need to remove the code I have on my site and then execute the 22 steps outlined in this github thread?

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @gkaralov,

    Yes, please remove the code and follow the steps outlined.

    Let us know if that helps fix the issue.

    Thread Starter Tishina

    (@gkaralov)

    Hi,

    This worked!

    Altohugh I did my own approach – I didn’t remove the code I had because I didn’t believe it influences this type of behaviour in the cart.

    Instead I deleted the shipping zone I had and added a new one and set it to “Worldwide”.

    And it worked! Thank you so much!

    One more thing – a unnecessary message shows up in the cart with the WC 8.6 update I did that it shows “Shipping to country X” when you go back to the cart from the checkout: https://prnt.sc/Gsfh6ZVIhuT3

    And for logged in customers it shows it in the cart even before entering details in the checkout because the system remembers them.

    Any idea how to hide that text?

    Thread Starter Tishina

    (@gkaralov)

    Anybody?

    anastas10s

    (@anastas10s)

    ?? hey @gkaralov

    Instead I deleted the shipping zone I had and added a new one and set it to “Worldwide”.

    And it worked! Thank you so much!

    That’s great to hear! Thanks for letting us know.

    One more thing – a unnecessary message shows up in the cart with the WC 8.6 update I did that it shows “Shipping to country X” when you go back to the cart from the checkout:?https://prnt.sc/Gsfh6ZVIhuT3

    A couple of thoughts here:

    • Did you already have a chance to update WooCommerce to version 8.6.1 and see if the issue persists, or otherwise?
    • Have you already tried targeting, and hiding it, with CSS, or otherwise? Linked here can be found a related web search, for your convenience.

    I hope this is helpful! Please let us know if you have any further questions or concerns.
    We will be happy to help you further.

    Thread Starter Tishina

    (@gkaralov)

    Thank you! The update didn’t remove it but I found how to do this with CSS after pointing me in the right direction.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi ,

    Thank you! The update didn’t remove it but I found how to do this with CSS after pointing me in the right direction.

    Glad to hear it – thanks for letting us know!

    If you have a few minutes, we’d love if you could leave us a review: https://www.ads-software.com/support/plugin/woocommerce/reviews/.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to remove “Shipping costs are calculated during checkout” in Cart?’ is closed to new replies.