Support » Plugin: WooCommerce PDF Invoices & Packing Slips » 2.0 Documentation

  • Resolved Robbie

    (@robbie505)


    Hi Ewout,

    I know I have read about dropping the $wpo_wcpdf global in the 2.0 update, but can’t find it anymore.

    Is there some updated documentation for me to read?
    I’m stuck at updating my customisations..

    Thanks, keep it up!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ewout

    (@pomegranate)

    Hi Robbie,
    We’re in the process of updating the documentation. You probably read the bit under “No more global variables” in the beta announcement: https://wpovernight.com/2017/06/woocomerce-pdf-invoice-2-0-beta-testers-wanted/

    Let me know if you have any specific questions!

    Ewout

    Thanks,

    Well, it would be a great help if you can tell me how proceed with this pre 2.0 function:

    function ps_wcpdf_after_order_details ( $template_type, $order ) {
    
    	global $wpo_wcpdf;
    
    	if ( $wpo_wcpdf->get_order_notes() ) {
    		?>
    		<div class="invoice-notes">
    			<b><?php _e( 'Opmerking:', 'wpo_wcpdf' ); ?></b>
    			<?php echo $wpo_wcpdf->order_notes(); ?>
    		</div>	
    		<?
    	}
    
    }
    • This reply was modified 2 years, 7 months ago by Robbie.

    Your link helped me out. I can continue now. 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2.0 Documentation’ is closed to new replies.