Remove invoice number link on email

Just want to ask how we can remove the invoice link in the email sent by Membership 2 Pro. Here's a screenshot for better explanation: http://i.imgur.com/9dr98N5.jpg

  • Patrick

    Hi there @Genevieve

    I hope you're having a great day!

    The email also uses the same shortcodes as used to output the invoices on your site's "My Account" page. So the actual contents of the email template (which are all contained within the %ms-invoice% macro) must be edited directly in the php file if you want to modify them.

    The file you'd want to edit is membership/app/view/shortcodeclass-me-view-shortcode-invoice.php

    You'll want to scroll down to about line 156 and comment out, or remove, the 3 lines that generate the linked invoice number in the email (see screenshot).

    Or you could replace just this bit on those lines with some custom text that would appear in every email:
    <?php echo $inv_title; ?>

    I hope this helps! And thanks for being a member :slight_smile:

    Remember that, as you are editing a plugin file, you would need to re-do the edit every time you update the plugin.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.