• Craig

    (@craigrkirkby)


    Hi

    I’ve just discovered your plugin and I think it’s fantastic!

    Just two questions.

    1. How do I disable the packing slip from appearing in my Orders page? (i.e. I want the Invoice icon to appear in the Actions column but I don’t want the packing Slip icon to appear, as I won’t be using packing slips.)

    2. How do I get Product Addons to appear on the invoice?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! You can hide the packing slip button with a code snippet in your functions.php. Read this first if you haven’t worked with functions.php before!

    
    /**
     * Remove packing slip button from woocommerce admin
     */
    add_filter( 'wpo_wcpdf_listing_actions', 'wpo_wcpdf_restrict_invoice_button', 20, 2 );
    add_filter( 'wpo_wcpdf_meta_box_actions', 'wpo_wcpdf_restrict_invoice_button', 20, 1 );
    
    function wpo_wcpdf_restrict_invoice_button ($actions, $order = '' ) {
    	unset( $actions['packing-slip']);
    	return $actions;
    }
    

    Product addons should already appear on the invoice, but it does depend on how they were added (which plugin, what settings etc). There are no special functions to support Product Addons.

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Disabling packing slip from Orders page?’ is closed to new replies.