Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix template to not display empty link
Przemysław Ładabd55cda9d434
diff --git a/templates/templated_email/source/confirm_order.mjml b/templates/templated_email/source/confirm_order.mjmlindex 5872f45e1e..0291f7d618 100644--- a/templates/templated_email/source/confirm_order.mjml+++ b/templates/templated_email/source/confirm_order.mjml@@ -14,9 +14,15 @@{% trans "Hi!" context "Standard e-mail greeting" %}</mj-text><mj-text>- {% blocktrans trimmed context "Order confirmation e-mail text" %}- Thank you for your order. Below is the list of ordered products. To see your payment details please visit: <a href="{{ order_details_url }}">{{ order_details_url }}</a>- {% endblocktrans %}+ {% if order_details_url %}+ {% blocktrans trimmed context "Order confirmation e-mail text with payment details" %}+ Thank you for your order. Below is the list of ordered products. To see your payment details please visit: <a href="{{ order_details_url }}">{{ order_details_url }}</a>+ {% endblocktrans %}+ {% else %}+ {% blocktrans trimmed context "Order confirmation e-mail text" %}+ Thank you for your order. Below is the list of ordered products.+ {% endblocktrans %}+ {% endif %}</mj-text></mj-column></mj-section>