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

    (@pomegranate)

    Hi Michel,
    There’s two approaches possible here:

    1) Create a custom template, then simply write the footer text directly in each template file instead of <?php $wpo_wcpdf->footer(); ?> (you may also want to remove the lines with ‘if’ and ‘endif’)

    2) Use a filter in your themes functions.php, like this:

    add_filter( 'wpo_wcpdf_footer', 'wpo_wcpdf_footer', 10, 1 );
    function wpo_wcpdf_footer ( $footer_text ) {
    	global $wpo_wcpdf;
    	$template_type = $wpo_wcpdf->export->template_type;
    	switch (variable) {
    		case 'invoice':
    			$footer_text = 'Footer for invoice';
    			break;
    		case 'packing-slip':
    			$footer_text = 'Footer for packing slip';
    			break;
    	}
    
    	return $footer_text;
    }

    Hope that helps!

    Ewout

    Thread Starter Michel7

    (@michel7)

    Great,
    will work on that
    txs for the help
    Michel

    Thread Starter Michel7

    (@michel7)

    Ha Ewout,
    Yet two additional questions.
    Working on your suggestion to hard code the text in the Packing-slip template.
    Already about ten lines above the end of the page, the text skips to a new page.
    I understand, must be some setting/code somewhere but am not an HTML guru..

    Could you also point me to the line where I can add “retourformulier’ to the title next to Pakbon?

    txs
    Michel

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Michel,
    Are you using the Premium templates? If so, it has a setting for the footer height on the Template tab. If not, you have to look at the #footer definition (bottom and height) in style.css.

    The packing slip title is in line 21 (between the h1 tags). You can simply remove that whole line and type your new title there.

    Ewout

    Thread Starter Michel7

    (@michel7)

    ok will have a look alter on and let you know
    txs again
    m.

    thanks! It’s what I needed
    I modified the packing-slip template and have added a legal text, a picture and a table to sign the client

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘invoice vs. Packing slip text’ is closed to new replies.