Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Customize Print and Download Button Labels on My Account Page

Customize Print and Download Button Labels on My Account Page

Last updated on September 5, 2024

The WebToffee’s WooCommerce PDF Invoices, Packing Slips, and Credit Notes plugin allows store owners to add a print and download invoice button on the customer’s My Account page. The default labels on the print and download invoice buttons are ‘Print Invoice’ and ‘Download Invoice’, respectively. There can be instances where store owners need to customize it to suit their business needs. Well, that’s possible with the help of a custom code snippet. We’ll explore more in this article.

Customizing the print and download button labels

Here are the brief steps for the same:

  1. Enable the print invoice button on the My Account page.
  2. Add the custom code snippet to the WordPress site by making the necessary alterations.

Step 1 – Enable the print invoice button

To enable the print invoice button on the My Account page, follow the below steps:

  1. Navigate to Invoice/Packing > Invoice > General from the WordPress dashboard.
  2. Under the General section, enable the Show print invoice button for customers option.
Image highlighting the Show print invoice button option
Image highlighting the Show print invoice button option

Note: The system will show the print and download invoice buttons on the My Account page only after it generates the invoice for the order. To know more, check out the following article: Print WooCommerce Invoice From My Account Page.

Step 2 – Add the custom code snippet by making the alterations

Here is a breakdown of step 2:

  1. Make necessary alterations to the code snippet given below. With the given code snippet, store owners can customize the print and download button labels that appear on the customer’s My Account orders listing, order details page, and order email.

In the above code snippet, the text Print Invoice order details is set as the label for the print invoice button on the order details page. Similarly, Download Invoice order details is set as the label for the download invoice button on the order details page, and so on. Replace these with the desired labels. Repeat the steps for other buttons as well.

  1. Now, add the altered code snippet to your WordPress site. You can add the code snippet to your active child theme’s functions.php file or use a third-party plugin for the addition.

To learn more about using a third-party plugin for snippet addition, check out the following article: Adding Custom Codes with a Third-Party Plugin.

Use Case

The store owner wishes to change the labels on the print invoice and download invoice button to “Generate Invoice” and “Save Invoice” respectively. The store owner replaces the code’s default labels with the new ones and then adds the updated code to the WordPress site.

The images above show the My Account page and the order email before and after adding the code snippet.