Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix template variable names
Artur Smętfb8baa05b2c5
diff --git a/saleor/cart/templates/cart/index.html b/saleor/cart/templates/cart/index.htmlindex c502734c89..3cea9e7a8e 100644--- a/saleor/cart/templates/cart/index.html+++ b/saleor/cart/templates/cart/index.html@@ -41,9 +41,6 @@<tr><td><a href="{{ form.cart_line.product.get_absolute_url }}">{{ form.cart_line.product }}</a>- {% if form.cart_line.product.size %}- ({{ form.cart_line.product.get_size_display }})- {% endif %}</td><td>{{ form.quantity|as_vertical_form:False }}</td><td>{% gross form.cart_line.get_price_per_item %}</td>diff --git a/templates/base.html b/templates/base.htmlindex de51b0154d..6fb1fb3611 100644--- a/templates/base.html+++ b/templates/base.html@@ -58,16 +58,20 @@</ul><ul class="nav navbar-nav navbar-right"><li class="dropdown">- <a data-toggle="dropdown" class="dropdown-toggle" href="{% url "cart:index" %}"><i class="glyphicon glyphicon-shopping-cart"></i> Shopping cart {% if request.cart.count %}<span class="badge">{{ request.cart.count }}</span>{% endif %} <b class="caret"></b></a>+ <a data-toggle="dropdown" class="dropdown-toggle" href="{% url "cart:index" %}"><i class="glyphicon glyphicon-shopping-cart"></i> Shopping cart {% if request.cart.items %}<span class="badge">{{ request.cart.items|length }}</span>{% endif %} <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="{% url "cart:index" %}">{% trans "View cart contents" %}</a></li>{% if request.cart %}<li class="divider"></li>- {% for cart_line in request.cart %}- <li><a href="{{ cart_line.product.get_absolute_url }}">{{ cart_line.product }}{% if cart_line.quantity != 1 %} <em>×{{ cart_line.quantity }}</em>{% endif %}</a></li>+ {% for item in request.cart.items %}+ <li>+ <a href="{% url 'product:details' slug=item.product_name product_id=item.product_id %}">+ {{ item.product_name }}{% if item.quantity != 1 %} <em>×{{ item.quantity }}</em>{% endif %}+ </a>+ </li>{% endfor %}<li class="divider"></li>- <li><a href="{% url "checkout:index" %}">{% trans "Proceed to checkout" %}</a></li>+ <li><a href="{% url "cart:index" %}">{% trans "Proceed to checkout" %}</a></li>{% endif %}</ul></li>