• Resolved nrshmne2

    (@nrshmne2)


    Hi,
    Thanks for the plugin and please help me ??
    The PDF file is getting downloaded automatically into local, instead is there a way that i can view the PDF file in a new window without downloading the file.

    Please let me know and thanks for any help.

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

    (@dkjensen)

    Hello

    Yes you can do this by placing the following code in your child themes functions.php file

    
    function child_theme_wc_cart_pdf_destination( $dest ) {
        if ( class_exists( '\Mpdf\Output\Destination' ) ) {
            $dest = \Mpdf\Output\Destination::INLINE;
        }
    
        return $dest;
    }
    add_filter( 'wc_cart_pdf_destination', 'child_theme_wc_cart_pdf_destination' );
    
    • This reply was modified 4 years, 3 months ago by David Jensen.
    Thread Starter nrshmne2

    (@nrshmne2)

    It is working as expected now. Thank you so much for the fix and for quick response

    I really appreciate it.

    Plugin Author David Jensen

    (@dkjensen)

    No problem!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘View the pdf file instead of downloading automatically.’ is closed to new replies.