Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi!
    You can add the download link to the PDF with the following code snippet:

    add_action( 'wpo_wcpdf_after_item_meta', 'wpo_wcpdf_show_product_downloads', 10, 3 );
    function wpo_wcpdf_show_product_downloads ( $template_type, $item, $order ) {
        $order->display_item_downloads( $item['item'] );
    }

    Read this if you haven’t worked with code snippets like this before!

    Hope that helps 🙂
    Ewout

    Thread Starter neuhaus3000

    (@neuhaus3000)

    Great, thanks!!!

    neuhaus3000

    Plugin Contributor Ewout

    (@pomegranate)

    You’re welcome 🙂
    If you can spare a minute, could you leave a plugin review? Thanks in advance!

    Ewout

    Thread Starter neuhaus3000

    (@neuhaus3000)

    Hello Ewout,

    It will be my pleasure to add a review.

    I have installed and activated the plugin.
    There is the 2 pdf icons on the purchase line in the WP Admin Panel.
    When I click on the icon, it I don’t see the PDF, it sends me to an error page.

    Do you know what can be the source of the error?

    Thank you!

    neuhaus3000

    Plugin Contributor Ewout

    (@pomegranate)

    Hi!
    Was this before or after adding the snippet?
    What’s on the error page? If it’s a 500 internal server error, you can temporarily enable debug output (on the Status tab of the PDF invoice settings), which will give you a more descriptive error.

    Let me know what you find!

    Ewout

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Product link in receipt?’ is closed to new replies.