Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change template variable names for Cart
Artur Smęt7d0c29392e96
diff --git a/templates/base.html b/templates/base.htmlindex 6fb1fb3611..ff528de1de 100644--- a/templates/base.html+++ b/templates/base.html@@ -58,12 +58,12 @@</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.items %}<span class="badge">{{ request.cart.items|length }}</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> {% trans "Shopping cart" %} {% if request.cart %}<span class="badge">{{ request.cart.count }}</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 item in request.cart.items %}+ {% for item in request.cart %}<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 %}