Remove subtotal from custom PDF invoice

Hiya, at the bottom of the “Simple” template wich i added to my child theme, i see a “Subtotal” and an amount in euro’s, and below that is a “Total” (also with an amout in euro’s).

Now i want to remove ONLY the “Subtotal” and an amount in euro’s.

In the invoice.php i found these 2 lines:

<th class="description"><?php echo $total['label']; ?></th>
<td class="price"><span class="totals-price"><?php echo $total['value']; ?></span></td>

.. but they seem to manage BOTH, so if i delete them both the subtotal AND the total are gone.

How do i get this fixed to that the invoice is ONLY showing the total (with the amount in euro).

In the screenshot i marked the area green, and the part to remove pink.

Hope you can help!


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer