Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Include breadcrumbs in the payment form view

Marcin Gębalaa49eace3e58f
diff --git a/templates/order/payment/details.html b/templates/order/payment/details.html
index 312ffb59d9..9426d35674 100644
--- a/templates/order/payment/details.html
+++ b/templates/order/payment/details.html
@@ -3,6 +3,35 @@
{% block title %}{% trans "Payment" context "Payment form page title" %} — {{ block.super }}{% endblock %}
+{% block breadcrumb %}
+ {% with order=payment.order %}
+ {% if order.user == user %}
+ <ul class="breadcrumbs list-unstyled">
+ <li>
+ <a href="{% url 'home'%}">
+ {% trans "Home" context "Main navigation item" %}
+ </a>
+ </li>
+ <li>
+ <a href="{% url "account:details" %}">
+ {% trans "Your account" context "Main navigation item" %}
+ </a>
+ </li>
+ <li>
+ <a href="{{ order.get_absolute_url }}">
+ {% blocktrans trimmed context "Order details breadcrumb" %}
+ Order {{ order }}
+ {% endblocktrans %}
+ </a>
+ </li>
+ <li>
+ {% trans "Payment" context "Payment form breadcrumb" %}
+ </li>
+ </ul>
+ {% endif %}
+ {% endwith %}
+{% endblock breadcrumb %}
+
{% block content %}
<div class="row checkout">
<div class="col-lg-1"></div>