Commits

gturnquist  committed 7aed073

Made small tweaks to get the app running, so it could be tested

  • Participants
  • Parent commits b88525a

Comments (0)

Files changed (4)

File satchmo/apps/product/templates/product/category.html

 <h3>{{ category.translated_name }}</h3>
 {% if category.description %}<p class="product_category_description">{{ category.description }}</p>{% endif %}
     {% if category.main_image %}
-            {% thumbnail category.main_image.picture 85x85 as image %}
+            {% thumbnail category.main_image.picture 85x85 as image %}{% endthumbnail %}
            <img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" />
     {% endif %}
     {% for product in products %} 
         {% if forloop.first %} <ul>  {% endif %}
-            <li>{% thumbnail product.main_image.picture 85x85 as image %}
+            <li>{% thumbnail product.main_image.picture 85x85 as image %}{% endthumbnail %}
             <a href="{{ product.get_absolute_url }}"><img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" /></a>
             <a href="{{ product.get_absolute_url }}">{{ product.translated_name }}</a></li>
         {% if forloop.last %} </ul> {% endif %}
             {% if cat.description %}<p class="product_category_description">{{ cat.description }}</p>{% endif %}
             {% for product in cat.active_products %}
                 {% if forloop.first %} <ul>  {% endif %}
-                    <li>{% thumbnail product.main_image.picture 85x85 as image %}
+                    <li>{% thumbnail product.main_image.picture 85x85 as image %}{% endthumbnail %}
                     <a href="{{ product.get_absolute_url }}"><img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" /></a>
                 <a href="{{ product.get_absolute_url }}">{{ product.translated_name }}</a></li>
                 {% if forloop.last %} </ul> {% endif %}

File satchmo/apps/product/templates/product/detail_configurableproduct.html

 	{% endspaceless %}</h3>
 
 {% for pic in product.productimage_set.all %}
-    {% thumbnail pic.picture 280x280 as image %}
+    {% thumbnail pic.picture 280x280 as image %}{% endthumbnail %}
     <img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" />
 {% endfor %}
 

File satchmo/apps/product/templates/product/product.html

 	<span id="price">{{ product|discount_price:sale|currency }}</span>
 </h3>
 {% for pic in product.productimage_set.all %}
-    {% thumbnail pic.picture 280x280 as image %}
+    {% thumbnail pic.picture 280x280 as image %}{% endthumbnail %}
     <img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" />
 {% endfor %}
 

File satchmo/apps/satchmo_store/shop/templates/shop/index.html

             <div class = "productImage">    
            {% if product.main_image %}
               <center>
-              {% thumbnail product.main_image.picture 85x85 as image %}
+              {% thumbnail product.main_image.picture 85x85 as image %}{% endthumbnail %}
               <a href="{{ product.get_absolute_url }}"><img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" /></a>
               </center>
            {% endif %}