• Resolved cfm168

    (@cfm168)


    Hello,

    Re: WooCommerce PDF Invoices & Packing Slips

    I have used your PDF invoice and print address label plugins for more than one year. They are good so far.

    After year experiencing it tells me I need to change form design to save my printer toner cost.

    1. How to change the big black bar on Product, Quantity…to a line under these items instead? This big black bar wastes a lot of printer toners.
    2. How to add current date (printing date) on the form (Above the order number) for PACKING SLIP? This is to indicate current date of processing shipping as for my case.
    3. How to change document tittle “PACKING SLIP” to something else such as SHIPPING ORDER?

    Please help. Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Mike,
    Thanks for the compliments on our plugins!

    1) You can do this with custom CSS:

    
    .order-details thead th {
        color: black; /* this is the text color of the header row */
        background-color: white;
        border: 2pt 0;
        border-color: black; /* make this the same color as the background color */
    }
    

    More about using custom styles in the documentation: Using custom styles.
    2) To print the current date, in the Premium Templates extension you can use {{current_date}} in a custom block. For the free version, you have to create a custom template and use:

    
    <?php echo date_i18n( wc_date_format() ); ?>
    

    3) Check the documentation: Change the document title

    Hope that helps!
    Ewout

    Thread Starter cfm168

    (@cfm168)

    Hello,

    Can I use the custom CSS you mentioned with child theme?

    Thanks in advance!

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! Theme CSS does not affect the PDF invoices, you can find documentation here: Using custom styles.

    Thread Starter cfm168

    (@cfm168)

    Hi Ewout,

    I just have time to follow your instructions. Questions:

    Under the Extra template fields not premium template nor custom template.
    Can I put {{current_date}} in Extra field 1, or 2, or 3 ?

    Try to use custom blocks, but I don’t find Customizer under WordPress Dashboard > WooCommerce > PDF Invoices >

    What is that means?

    Please advise. Thanks in advance!

    Thread Starter cfm168

    (@cfm168)

    In additional, is the following are the right codes to change Packing Slip title in theme functions.php file?

    add_filter( ‘wpo_wcpdf_packing_slip_title’, ‘wpo_wcpdf_packing_slip_title’ );
    function wpo_wcpdf_packing_slip_title () {
    $packing_slip_title = ‘Packing List/Delivery Receipt’;
    return $packing_slip_title;
    }

    Please advise. Thanks in advance!

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! The {{current_date}} shortcode only works when you have the Premium Templates extension. It then also works in those extra fields 1/2/3.
    If you don’t see the customizer it means you don’t have the premium templates, which is a paid extension.

    Packing slip title filter is correct!

    Ewout

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change layout and add current date’ is closed to new replies.