• I am skipping the billing details for logged in users in WooCommerce.

    // Skip Billing for logged in users
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    function custom_override_checkout_fields( $fields ) {
        
        if( is_user_logged_in() ){
            
            unset($fields['billing']);
    		$fields['billing'] = array();
        }
        return $fields;
    }

    I need the plugin to skip the billing step and go directly to payment step if user is logged in. Can you please share with me what function I need to add or edit to allow me to skip the billing step for logged in users?

    • This topic was modified 6 years, 6 months ago by rrwebdesigner.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Diana Burduja

    (@diana_burduja)

    I’m sorry, you cannot skip the billing step with this plugin.

    Thread Starter rrwebdesigner

    (@rrwebdesigner)

    Do you mean you do not know how to skip the Billing in your plugin?

    Plugin Author Diana Burduja

    (@diana_burduja)

    I mean the plugin was built with the assumption that the Billing section will always be there. Currently there is no filter in the plugin to take out the Billing.

    But this is open-source software. In the spirit of open-source software you can also implement the filter in the plugin, share the changes and I’ll consider adding the changes to the plugin’s official version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Skip Billing for Logged in Users’ is closed to new replies.