• Resolved donatasok

    (@donatasok)


    Hi,

    Is it possible to delete this checkbox and text in billing section? As I am putting company details for customers and if accidentally they click on it, all details will disappear.

    Thanks in advance! Amazing plugin!

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

    (@diegoversiani)

    Hi @donatasok,

    Yes, you can remove it with the following code snippet:

    /**
     * Remove the "billing same as shipping" checkbox.
     */
    function fluidcheckout_remove_billing_same_shipping_checkbox() {
    	// Bail if Fluid Checkout Steps class not available
    	if ( ! class_exists( 'FluidCheckout_Steps' ) ) { return; }
    	
    	remove_action( 'woocommerce_before_checkout_billing_form', array( FluidCheckout_Steps::instance(), 'output_billing_same_as_shipping_field' ), 100 );
    }
    add_action( 'init', 'fluidcheckout_remove_billing_same_shipping_checkbox', 100 );

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

    Best,
    Diego

Viewing 1 replies (of 1 total)
  • The topic ‘Delete checkbox and text – Same as shipping address’ is closed to new replies.