How to hide invoices on account page

How to hide invoices on account page?

Site with Membership2 and Marketpress Ecommerce

Would like to hide "INVOICE" section of account page if user has no invoices.

  • Luís
    • Support

    Hi @HawaiiDude,

    I hope had been good today!

    Unfortunately, there is no option in the admin panel to do that, so, the only way is adding some custom code, or change the core files.

    Let me check with the developer the possibilities to do that.

    Cheers, Luís

  • Luís
    • Support

    Hi @HawaiiDude,

    not sure if it can helps you, but, you have some parameters related to the Invoice section, that you can add to the "[ms-membership-account]" shortcode:

    - show_invoices (yes|no) - Whether to display the section listing recent invoices | Default: yes
    - invoices_title (text) - Title of the invoices section | Default: "Invoices"
    - limit_invoices (Number) - Number of invoices to display in the recent invoices list | Default: 10
    - show_all_invoices (yes|no) - Display the link to the complete list of users invoices | Default: yes
    - invoices_details_label (text) - Title of the link Default: "View all"

    You can find all this information in Membership 2 -> Help -> Shortcodes.

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.