If you'd like to make the WooCommerce checkout's "Ship to a Different Address?" tick box disabled by default, here are a couple of possibilities.
The first is using PHP:
add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );
Related Post: Adding PHP to the Divi Theme
An alternative method is to hide it with JavaScript, e.g.:
jQuery(function($){
$('#ship-to-different-address-checkbox').attr('checked', false);
});
Related Post: Adding JavaScript / jQuery to Divi.
0 Comments