Viewing 1 replies (of 1 total)
  • Plugin Author Diego Versiani

    (@diegoversiani)

    Hi @alzekiel09,

    I’ve updated the documentation with a new code snippet that works with version Lite 4.0+.

    Here it is for your convenience:

    /**
    * Remove the shipping methods section.
    */
    function fluidcheckout_remove_shipping_methods_section() {
    // Bail if Fluid Checkout steps class is not available
    if ( ! class_exists( 'FluidCheckout_Steps' ) ) { return; }

    // Bail if method is not available
    if ( ! method_exists( 'FluidCheckout_Steps', 'unregister_checkout_substep' ) ) { return; }

    // Remove shipping method sub-step
    FluidCheckout_Steps::instance()->unregister_checkout_substep( 'shipping_method' );
    }
    add_filter( 'wp', 'fluidcheckout_remove_shipping_methods_section', 300 );

    If you are unsure about how to add the code snippet to your website, check our article:
    How to safely add code snippets to your WooCommerce website

    I’m closing this ticket for now. If you need further assistance related to this issue, simply reply to this message to re-open it.

    Best,
    Diego.

Viewing 1 replies (of 1 total)

The topic ‘How to remove/hide Shipping Method’ is closed to new replies.