Hiding State & Country (Address) from Invoices & Email Notifications

This topic contains 2 replies, has 3 voices, and was last updated by  Patrik 4 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #2975

    TLN
    Buyer
    Post count: 131

    Hi Guys,

    I’d like to be able to hide the State/Province and Country on the actual invoice and invoice notification emails.

    Please kindly see my attached image for clarification.

    Thank you very much for the help.

    #2977

    Guust
    Moderator
    Post count: 29970

    A developer will have a look at your question after the weekend.
    Thanks

    #2980

    Patrik
    Moderator
    Post count: 1971

    Hi,

    You can do this by a few steps. First, you need to make them not mandatory fields from the Settings->Misc->Fields Settings->Address fields by unchecking them.

    Then you will need to hide the fields from the checkout page using the CSS:

    
    
    p#wpinv_country_box, p#wpinv_state_box {
    	display: none;
    }

    Then you will need to override the email template “wpinv-email-billing-details.php” from invoicing/templates/emails/ folder in your theme and remove the country and state fields HTML output from the template file.

    Let me know if you have any queries.

    Regards,
    Patrik

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

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

Open Support Ticket