• Resolved cte2087

    (@cte2087)


    Is there a way I can add a link to the default or even to a custom Thank You page for the invoice of a transaction that was just completed?

    https://www.URL.com/wp-admin/admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=<strong>12043</strong>&my-account&_wpnonce=30c627d7aa

    The above code is for the link from the My Account Page. Would I be able to dynamically code the invoice ID that is in bold?

    https://www.ads-software.com/plugins/woocommerce-pdf-invoices-packing-slips/

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

    (@pomegranate)

    Hi! For security reasons, you can only use this link for logged in users (otherwise anyone could access the invoice by guessing at the numbers).

    There’s an item in the FAQ, under “How can I add a download link to the invoice on the Thank you page?” that shows how you can accomplish this.

    Let me know if you have any other questions!

    Ewout

Viewing 1 replies (of 1 total)
  • The topic ‘Link to PDF from Thank You’ is closed to new replies.