When sending an automated PDF link through email, you or your customers might encounter an error upon clicking the link, such as this:
This guide will help you understand the potential causes of this error and how to resolve them.
Discrepancy on the app’s proxy
Note: This is not applicable for password-protected or non-online stores.
If the app’s proxy address is changed, the app will not generate the link with the new customized proxy but will keep the original address, causing it to fail to communicate correctly with the server.
You can double-check this by going to your Shopify settings > Manage apps and sales channels > Order Printer Pro:
Once there, scroll down, and you will find the proxy URL:
Compare this with the automated PDF link you have set up in your notifications or pages. The URL must match exactly:
Solution: Manually change the PDF link in the snippet code to match the current app proxy URL. Here’s a screen recording of manually editing the link set up in the Order Confirmation email and saving the new changes:
Alternatively, if you don't want to change the links manually, please use the default app proxy /apps/download-pdf:
Incorrect template ID and/or unique multiplier.
Each template has a unique ID that identifies it on our backend, along with a unique multiplier for the order ID. This way, the link is built in the following format:
One reason a link may have an incorrect template ID is if the template associated with it no longer exists. Our system generates documents on the spot and does not save them, so if the template no longer exists, the link will cease to work. It is also possible that the template ID was manually changed in a new link but not the unique multiplier, causing a discrepancy.
In any case, you can check the template ID and the unique multiplier by generating a new link through the app (see the above image). Then, you can compare it to the link that’s currently set up to ensure they're the same.
Solution: Set up the PDF link again with an existing template or update the ID number and/or the unique multiplier manually based on the link created by the app.
Using the wrong snippet for a certain setup
When setting up the PDF link, the app automatically offers the correct snippet for each case. However, these snippets are sometimes not interchangeable. Ensure you select the right option when setting up the link:
As an example, we can take a look at a link generated for an Order confirmation email:
And a Draft order invoice email code:
Notice the difference: the Order Confirmation link has "orders," while the Draft Order link has "drafts." This means that if you’re looking to generate a PDF for a draft order, but the link used references the orders, the link will not work correctly and vice versa.
Solution: If you know which part of the link should be different for the desired notification, you can manually change the code already set up to match the required address or set up the link again.
Note: 💡 If you need a link for a notification not in the dropdown list, contact our support team. We will be happy to assess the possibility of creating a suitable snippet for that notification.
By following these guidelines, you can troubleshoot and resolve common issues with automated PDF links, ensuring a smooth experience for your customers. For further assistance, don't hesitate to get in touch with our support team.