Title: Empty access key
Last modified: April 25, 2024

---

# Empty access key

 *  Resolved [minamt](https://wordpress.org/support/users/minamt/)
 * (@minamt)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-access-key/)
 * Hi, 
   Where can I find the access key in order to include it to the print button
   url of the pdf invoice for guestsThank you for your assistance

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * (@dpeyou)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-access-key/#post-17719132)
 * Hey [@minamt](https://wordpress.org/support/users/minamt/),
   Could you take a 
   look at this piece of documentation?[Enabling Guest Access](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/download-link-on-the-thank-you-page/#enabling-guest-access)
 *  Thread Starter [minamt](https://wordpress.org/support/users/minamt/)
 * (@minamt)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-access-key/#post-17719906)
 * Hi Darren,
   I already set Document link access type to ‘Full’ from the advanced
   settings, I didn’t use hooks, I just used a shortcode for document download and
   it worked fine, but when I add a button to print the document or to email it,
   I get a message that I’m missing the access key
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-access-key/#post-17720269)
 * Hi [@minamt](https://wordpress.org/support/users/minamt/),
 * It is not clear to me where you are using the shortcode.
 * Could you please tell me in which page exactly are you placing the shortcode 
   and how (e.g. using the default WordPress editor, editing the page template using
   some code, etc.)?
 *  Thread Starter [minamt](https://wordpress.org/support/users/minamt/)
 * (@minamt)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-access-key/#post-17720336)
 * Hi [@yordansoares](https://wordpress.org/support/users/yordansoares/),
   I made
   a custom thank you page to display my custom fields after order payment, and 
   I used [wcpdf_document_link] shortcode to get the PDF link, then using the link
   I wrote JS scripts to print and send the document as an email.For the custom 
   fields I created a custom PDF template by copying files to child theme.
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/empty-access-key/#post-17720590)
 * Thanks for providing more details, [@minamt](https://wordpress.org/support/users/minamt/):
 * In such case, instead of using the shortcode you could adapt the code you find
   here: [https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/download-link-on-the-thank-you-page/#enabling-guest-access](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/download-link-on-the-thank-you-page/#enabling-guest-access)
 * The same structure would work for your case, you only have to make sure to pass
   the correct values to the `order_ids` and `order_key` within `add_query_arg`.

Viewing 5 replies - 1 through 5 (of 5 total)

 The topic ‘Empty access key’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/empty-access-key/#post-17720590)
 * Status: resolved