<p>The Download PDF button will show if the <code>OrderModel</code> that gets passed to the template's <code>getPdfUrl()</code> method returns a URL.</p>

<p>You can see the logic it uses in <code>commerce/models/Commerce_OrderModel.php</code>, <code>function getPdfUrl()</code>.</p>

<p>It gets the <code>orderPdfPath</code> Commerce setting, then checks if that template exists on the front-end templates folder.</p>

<p>My guess is you've got something messed up with the path to that template somewhere.</p>

CC BY-SA 3.0
2017-12-21T19:36:39.880Z
2017-12-21T19:36:39.880Z
Brad Bell
<p>I'm not sure what happened, but the "Download PDF" button that is on the orders in the CMS is missing. I thought maybe the order PDF template file or path was missing but both of those are there. Is there a true/false statement somewhere I might have erased? I can't find anything on this.</p>

<p>Thanks</p>

<plugin-craftcommerce><order><pdf>
Missing Download PDF Button in Orders for Craft Commerce
# Missing Download PDF Button in Orders for Craft Commerce

(Asked by: username_0 on 2017-12-21)

I'm not sure what happened, but the "Download PDF" button that is on the orders in the CMS is missing. I thought maybe the order PDF template file or path was missing but both of those are there. Is there a true/false statement somewhere I might have erased? I can't find anything on this.

Thanks

**Tags:** plugin-craftcommerce, order, pdf


---

## 1 answers

### Answer by username_1 on 2017-12-21. Score: 0 | Accepted answer

The Download PDF button will show if the `OrderModel` that gets passed to the template's `getPdfUrl()` method returns a URL.

You can see the logic it uses in `commerce/models/Commerce_OrderModel.php`, `function getPdfUrl()`.

It gets the `orderPdfPath` Commerce setting, then checks if that template exists on the front-end templates folder.

My guess is you've got something messed up with the path to that template somewhere.


---

