Viewing 1 replies (of 1 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @midshorediesel,

    Yes, you can do it by filtering the headers using the following filter hook: wpo_wcpdf_simple_template_default_table_headers

    Actually, I already wrote the code for you:

    /**
    * PDF Invoices & Packing Slip for WooCommerce:
    * Customize the "Quantity" header on the PDF documents
    *
    * Note: You can also customize 'product' & 'price' the same way ;-)
    */
    add_filter( 'wpo_wcpdf_simple_template_default_table_headers', function( $headers, $document ) {
    $headers['quantity'] = 'Qty';
    return $headers;
    }, 10, 2 );

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use code snippets.

    We also have a blog post here that you may find helpful about adding custom code to your site.

Viewing 1 replies (of 1 total)

The topic ‘“Quantity” to “Qty”’ is closed to new replies.