Select Default Shipping method
-
Hi,
I want to set the 1st option in my shipping list as default, so even if the user does a page refresh on checkout page, the 1st shipping option should be selected.
And I have disabled the shipping selection from cart page by adding the following filer.function disable_shipping_calc_on_cart( $show_shipping ) {
if( is_cart() ) {
return false;
}
return $show_shipping;
}
add_filter( ‘woocommerce_cart_ready_to_calc_shipping’, ‘disable_shipping_calc_on_cart’, 99 );Kindly help me to with default selection of the shipping method.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Select Default Shipping method’ is closed to new replies.