Woocommerce Ajax is Not working on Checkout
<p>I have to re-calculate the shipping costs after the postcode box is filled in, but it seems only to work when I am logged in as admin</p>

<pre><code>function custom_checkbox_checker () {
global $woocommerce;
if ( is_checkout() ) {

$woocommerce-&gt;cart-&gt;maybe_set_cart_cookies(true);
wp_enqueue_script( 'jquery' ); ?&gt;
&lt;script type="text/javascript"&gt;

jQuery(document).ready( function (e) {

var $ = jQuery;
jQuery( "#billing_postcode").change(function() {

  $( document.body ).trigger( 'shipping_postcode' );

});


})


&lt;/script&gt;
&lt;?php }
}

add_action( 'wp_footer', 'custom_checkbox_checker', 50 );
</code></pre>