Created
April 15, 2013 15:32
-
-
Save markupboy/5388984 to your computer and use it in GitHub Desktop.
get products
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="products_list"> | |
<div class="products"> | |
{% for product in products.all %} | |
<div class="product"> | |
<a href="{{ product.url }}"> | |
<img src="{{ product.images.last | product_image_url }}" alt="Image of {{ product.name | escape }}"> | |
<div class="overlay"> | |
<div> | |
<h3>{{ product.name }}</h3> | |
<p>{{ product.default_price | money_with_sign }}</p> | |
</div> | |
</div> | |
</a> | |
</div> | |
{% endfor %} | |
</div> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment