Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1276381
    websperations
    Participant

    Hello,

    http://www.heavensent.life

    I want to disable the checkbox by default for the WooCommerce “Ship To Address”.

    I added the following code to my functions.php however it’s not working.

    add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );
    

    I found this code on multiple sites and it’s not working.

    Any ideas?

    Thanks,

    Micah

    #1276387
    websperations
    Participant

    Never mind, I figured out the issue.

    It was uploading the files to the old hosting account.

    This code did work and my issue is now resolved.

    Micah

    #1276415
    Nabeel A
    Moderator

    Hi Micah,

    I just checked your site and the Checkout Shipping Checkbox is already unchecked by default (see default). Did you clear your browser’s cache after adding the above code.

    Hope this helps!

  • <script> jQuery(function($){ $("#no-reply-1276381 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>