浏览代码

Fixed the basket dropdown in flatpages

master
Jon Price 13 年前
父节点
当前提交
ebdbff7719
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2
    2
      oscar/templates/oscar/basket/partials/basket_quick.html
  2. 1
    1
      oscar/templates/oscar/partials/brand.html

+ 2
- 2
oscar/templates/oscar/basket/partials/basket_quick.html 查看文件

@@ -5,7 +5,7 @@
5 5
 
6 6
 <ul class="basket_item">
7 7
 {% if request.basket.num_lines %}
8
-    {% for line in basket.all_lines %}
8
+    {% for line in request.basket.all_lines %}
9 9
     <li>
10 10
         <article>
11 11
             <h4><a href="{{ line.product.get_absolute_url }}">{{ line.description }}</a></h4>
@@ -14,7 +14,7 @@
14 14
     </li>
15 15
     {% endfor %}
16 16
     <li class="form-actions">
17
-	<h4><small>{% trans "Total Excl Tax:" %} {{ request.basket.total_excl_tax|currency }}</small> {% trans "Total:" %} {{ basket.total_incl_tax|currency }}</h4>
17
+	<h4><small>{% trans "Total Excl Tax:" %} {{ request.basket.total_excl_tax|currency }}</small> {% trans "Total:" %} {{ request.basket.total_incl_tax|currency }}</h4>
18 18
 	<p><a href="{% url basket:summary %}" class="btn btn-info btn-small">{% trans "View Basket" %}</a></p>
19 19
 	<p><a href="{% url checkout:index %}" class="btn btn-primary btn-small">{% trans "Checkout" %}</a></p>
20 20
     </li>

+ 1
- 1
oscar/templates/oscar/partials/brand.html 查看文件

@@ -13,6 +13,6 @@
13 13
             </ul>
14 14
         </div>
15 15
     </li>
16
-	<li class="cart_summary"><strong>{% trans "Basket total:" %} <span>{{ basket.total_incl_tax|currency }}</span></strong></li>
16
+	<li class="cart_summary"><strong>{% trans "Basket total:" %} <span>{{ request.basket.total_incl_tax|currency }}</span></strong></li>
17 17
 </ul><!-- /cart -->
18 18
 {% endif %}

正在加载...
取消
保存