Skip to content

Commit 439f6e0

Browse files
committed
Fixed pdf available bug in the example templates
1 parent 78eeb64 commit 439f6e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example-templates/dist/shop/customer/order.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333
<div class="lg:w-1/2 lg:text-right">
3434
{# Display a link to download a PDF if the order has a PDF URL and a PDF has been configured #}
35-
{% if order.pdfUrl and craft.commerce.pdfs.hasEnabledPdf %}
35+
{% if craft.commerce.pdfs.hasEnabledPdf %}
3636
<a href="{{ order.getPdfUrl('receipt') }}" download target="_blank" class="text-blue-500 hover:text-blue-600">
3737
{{ 'Download PDF'|t }}
3838
</a>

example-templates/src/shop/customer/order.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333
<div class="lg:w-1/2 lg:text-right">
3434
{# Display a link to download a PDF if the order has a PDF URL and a PDF has been configured #}
35-
{% if order.pdfUrl and craft.commerce.pdfs.hasEnabledPdf %}
35+
{% if craft.commerce.pdfs.hasEnabledPdf %}
3636
<a href="{{ order.getPdfUrl('receipt') }}" download target="_blank" class="[[classes.a]]">
3737
{{ 'Download PDF'|t }}
3838
</a>

0 commit comments

Comments
 (0)