• Hi there, I need to disable shipping – ie not have the shipping address form or any shipping methods at all active on the checkout page. Delivery is being handled by another method (the business rents out RVs and their delivery options are complex, so they are being done as extra option choices on the booking form).

    Would any of the Booster tools help me with this? If so which one?

Viewing 1 replies (of 1 total)
  • Most likely you can do this with Booster but I am new to this plugin so I would not know.

    Easiest way for me seems to paste this snippet in your functions.php file:

    <?php
    
    add_filter( 'woocommerce_checkout_fields' , 'custom_remove_woo_checkout_fields' );
    
     function custom_remove_woo_checkout_fields( $fields ) {
    
        // remove shipping fields 
    
        unset($fields['shipping']['shipping_first_name']);    
    
        unset($fields['shipping']['shipping_last_name']);  
    
        unset($fields['shipping']['shipping_company']);
    
        unset($fields['shipping']['shipping_address_1']);
    
        unset($fields['shipping']['shipping_address_2']);
    
        unset($fields['shipping']['shipping_city']);
    
        unset($fields['shipping']['shipping_postcode']);
    
        unset($fields['shipping']['shipping_country']);
    
        unset($fields['shipping']['shipping_state']);
    
       
    
        return $fields;
    
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Disabling Shipping’ is closed to new replies.