ok my friend the tried ur instruction and all failed:
add_filter( ‘woocommerce_cart_needs_shipping_address’, ‘__return_false’); > removes the shipping fields all together.tired following instruction with or with out it incase u where not clear….
I have add_filter( ‘woocommerce_ship_to_different_address_checked’, ‘__return_true’ );
deployed turned it off and on with all ur following instructions. tried all possibilities…..
tried this code:
#ship-to-different-address-checkbox {
display:none;
}
/* disable touch event or mouse click */
#ship-to-different-address label {
pointer-events: none;
}
.shipping_address{
display:block !important
}
inserting in the header
or inserting in the custom CSS in WP
or in the theme file CSS or in the customizer….
singular and together i tried them all in fact i tried more than that
.shipping_address{
-webkit-transition: none !important;
-moz-transition: none !important;
-o-transition: none !important;
transition: none !important;
}
.shipping_address{
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS transforms*/
-o-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
-webkit-transform: none !important;
transform: none !important;
/*CSS animations*/
-webkit-animation: none !important;
-moz-animation: none !important;
-o-animation: none !important;
-ms-animation: none !important;
animation: none !important;
}
note i even tried ::before and ::after
so my friend it doesn’t work, that are the results we can keep trying but it keep giving same output. i dont think that is very smart.