• When you add an item to cart and go straight to checkout it doesn’t show you the option to have first class shipping (because the person skipped the cart page). https://mrwolfu.com/checkout/

    How do I make it so that they can calculate shipping on the checkout page just like the cart page? https://mrwolfu.com/cart/

    TLDR: I just gotta move that calculate shipping form into the checkout page.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Estou com a mesma dificuldade/necessidade. Se eu descobrir a solu??o para este problema, eu posto aqui.

    Hello,

    I discovered a solution. If your shipping method is calculated based on zip code, you can use this Java Script code to force the update.

    Use this code on your checkout page:

    <script type="text/javascript">
    jQuery(function ($) {
    
    	$("body").on("blur", "input#shipping_postcode, input#billing_postcode", function(e) {					
    		var postcode = $(this).val();
    		if(postcode !== ""){
    			
    			console.log("The postal code was entered");	
    
    			//Force checkout update
    			$('body').trigger('update_checkout');	
    		}		
    	});
    		
    	
    });
    </script>

    If your shipping methods use the state, you can modify the code to identify the state change.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce not calculating shipping’ is closed to new replies.