Billing Information Necessary?

This topic contains 6 replies, has 4 voices, and was last updated by  Kiran 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #509

    heidimichellegood
    Free User
    Post count: 45

    Hi there,

    We have had Geodirectory for a while and have only just upgraded to WP Invoicing. Once can only pay / order if they are logged in, therefore the billing details etc that appear at the top of the checkout form are not required or desired – (as was the case previously) – can you please advise how to turn these off or hide them without affecting functionality?

    Thanking you so much

    #510

    Guust
    Moderator
    Post count: 29970

    Have a look at Invoicing > Settings > Misc tab > Fields Settings
    Thanks

    #511

    heidimichellegood
    Free User
    Post count: 45

    Thankyou yesI looked here and it only allowed me to select which shouldn’t be compulsory, not remove the billing requirements altogether

    #512

    Guust
    Moderator
    Post count: 29970

    You can hide the fields with CSS then if they are not compulsory.

    Thanks

    #513

    heidimichellegood
    Free User
    Post count: 45

    I did the whole uncheck thing with that css trickery in mind, however it still said 3 of the fields were compulsory

    #514

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the developers have been alerted about your question and will let you know a solution asap.

    Thanks for your patience,

    #533

    Kiran
    Moderator
    Post count: 7069

    Hi There,

    Use following snippet code to hide billing details from checkout form. Execute this snippet code via any snippet plugin.

    
    
    function _wpi_custom_init() {
        remove_action( 'wpinv_checkout_billing_info', 'wpinv_checkout_billing_info' );
    
        if ( wpinv_use_taxes() ) {
            global $wpinv_euvat;
            if ( !empty( $wpinv_euvat ) ) {
                remove_filter( 'wpinv_checkout_error_checks', array( $wpinv_euvat, 'checkout_vat_validate' ), 10, 2 );
            }
            add_filter( 'wpinv_checkout_required_billing_details', '_wpi_custom_disable_billing_details', 10, 1 );
        }
    }
    add_action( 'init', '_wpi_custom_init', 1 );
    
    function _wpi_custom_disable_billing_details( $return ) {
        return false;
    }

    Let us know how it goes.

    Thanks,
    Kiran

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket