Support » Plugin: WooCommerce PDF Invoices & Packing Slips » with and without site logo and adress

  • Resolved denizonline

    (@denizonline)


    i need invoice in downloadable page ( my account and emailed) with site logo and adress
    but in orders page i want invoice
    without site logo and adress

    is it possible

    thx alot

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

    (@pomegranate)

    Hi! You can use PHP to check the user opening the PDF and hide parts based on that. Here’s an example that checks if the user is a shop admin and uses CSS to hide the logo and shop address if it is.

    
    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_header_address' );
    function wpo_wcpdf_hide_header_address () {
        if ( current_user_can( 'manage_woocommerce' ) ):
        ?>
        td.header img,
        td.shop-info {
            display: none;
        }
        <?php
        endif;
    }
    

    Hope that helps!
    Ewout

Viewing 1 replies (of 1 total)
  • The topic ‘with and without site logo and adress’ is closed to new replies.