Commits

Radim Novotny committed 903428d

Show product image on order detail page

Comments (0)

Files changed (1)

lfstheme/templates/lfs/order/lfs_order_tmpl.html

         <tr>
             <td>
                {{ item.product_sku }}
+                {% if item.product.get_image.image %}
+                <div>
+                  <a href="{% url lfs_manage_product item.product.id %}">
+                      <img alt="{{ item.product_name }}"
+                         src="{{ item.product.get_image.image.url_100x100 }}" />
+                   </a>
+                </div>
+                {% endif %}
             </td>
             <td>
                 {{ item.product_name }}