Viewing 5 replies - 1 through 5 (of 5 total)
  • Put this in your cart page template:

    <script>
    jQuery( document ).ready( function() {
        jQuery( ".shipping-calculator-form" ).slideDown( 'fast' );
    })
    </script>
    Thread Starter RossBBoS

    (@allthingsbetting)

    Thanks for your response.

    Would that be in the php file in the ftp here? Onetwoapparel.co.uk/wp-content/plugins/woocommerce/templates/cart

    I just tried it at the top of the cart.php file and it just broke the page.

    I’m a bit of a beginner!

    Thanks

    cart.php would wind up looking like this:

    <script>
    jQuery( document ).ready( function() {
        jQuery( ".shipping-calculator-form" ).slideDown( 'fast' );
    })
    </script>
    <?php
    /**
     * Cart Page
     *
    
    [ BIG SNIP .....]
    Thread Starter RossBBoS

    (@allthingsbetting)

    I have put that in now and unfortunately it hasn’t worked, doesn’t seem to have changed anything on the page at all.

    Any other suggestions?

    Thanks for your help!

    This is an old thread, I know, but for anyone looking to solve the same problem this can be done with CSS:

    .shipping-calculator-form {
    display: block !important;
    }

    The reason the suggested JS solution may not work is if WooCommerce’s JS is being loaded after the inline JS (i.e. at the bottom of the page).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Calculate Shipping form open on page load’ is closed to new replies.