shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

bestseller.twig (2057B)


      1 <h3>{{ heading_title }}</h3>
      2 <div class="row">
      3  {% for product in products %}
      4   <div class="product-layout col-lg-3 col-md-3 col-sm-6 col-xs-12">
      5     <div class="product-thumb transition">
      6       <div class="image"><a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive" /></a></div>
      7       <div class="caption">
      8         <h4><a href="{{ product.href }}">{{ product.name }}</a></h4>
      9         <p>{{ product.description }}</p>
     10         {% if product.rating %}
     11         <div class="rating">
     12           {% for i in 1..5 %}
     13           {% if product.rating < i %}
     14           <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
     15           {% else %}
     16           <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
     17           {% endif %}
     18           {% endfor %}
     19         </div>
     20         {% endif %}
     21         {% if product.price %}
     22         <p class="price">
     23           {% if not product.special %}
     24           {{ product.price }}
     25           {% else %}
     26           <span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>
     27           {% endif %}
     28           {% if product.tax %}
     29           <span class="price-tax">{{ text_tax }} {{ product.tax }}</span>
     30           {% endif %}
     31         </p>
     32         {% endif %}
     33       </div>
     34       <div class="button-group">
     35         <button type="button" onclick="cart.add('{{ product.product_id }}');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md">{{ button_cart }}</span></button>
     36         <button type="button" data-toggle="tooltip" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product.product_id }}');"><i class="fa fa-heart"></i></button>
     37         <button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }}');"><i class="fa fa-exchange"></i></button>
     38       </div>
     39     </div>
     40   </div>
     41   {% endfor %}
     42 </div>