• Resolved anewphpcoder

    (@anewphpcoder)


    Hello,

    Currently I’m looking for a way to use the footer but only for certain documents (i.e. Invoice) but the settings alter the footers globally. Is there a code or hook that I can use to use the Footer only on invoices and not Delivery Order nor Receipt?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter anewphpcoder

    (@anewphpcoder)

    I’ve found the solution to my problem after playing around with the hooks. The code is as below

    add_action( 'wcdn_after_page', 'invoice_footer', 10, 1 );
    function invoice_footer(){
    	
    	$template = wcdn_get_template_type();
    
    	if ($template == 'invoice'){
    		echo '';}
    	elseif ($template == 'delivery-note'){
    		echo ''; }
    	elseif ($template == 'receipt'){
    		echo '';}
    }
    • This reply was modified 3 years, 5 months ago by anewphpcoder.
    Plugin Support Upendra Kapse

    (@wpupen)

    Hello,

    I am happy to know that you were able to find a solution for this and thank you so much for posting it here.

    Kind Regards,
    Upendra.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Footers on certain documents only’ is closed to new replies.