{% if products %}
  <div class="table-responsive">
    <table class="table table-bordered table-hover">
      <thead>
      <tr>
        <td class="text-center td-image">{{ column_image }}</td>
        <td class="text-left td-name">{{ column_name }}</td>
        <td class="text-center td-model">{{ column_model }}</td>
        <td class="text-center td-stock">{{ column_stock }}</td>
        <td class="text-center td-price">{{ column_price }}</td>
        <td class="text-center td-action">{{ column_action }}</td>
      </tr>
      </thead>
      <tbody>

      {% for product in products %}
        <tr class="{{ journal3.classes(product.classes) }}">
          <td class="text-center td-image">{% if product.thumb %}<a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" /></a>{% endif %}</td>
          <td class="text-left td-name"><a href="{{ product.href }}">{{ product.name }}</a></td>
          <td class="text-center td-model">{{ product.model }}</td>
          <td class="text-center td-stock">{{ product.stock }}</td>
          <td class="text-center td-price">{% if product.price %}
              <div class="price"> {% if not product.special %}
                  {{ product.price }}
                {% else %} <b>{{ product.special }}</b> <s>{{ product.price }}</s> {% endif %} </div>
            {% endif %}</td>
          <td class="text-center td-action">
            <form method="post" data-oc-toggle="ajax" data-oc-load="{{ wishlist }}" data-oc-target="#wishlist">
              <input type="hidden" name="product_id" value="{{ product.product_id }}"/> <input type="hidden" name="quantity" value="{{ product.minimum }}"/>
              {% if journal3.get('catalogCartStatus') %}
              <button type="submit" formaction="{{ add_to_cart }}" data-toggle="tooltip-hover" title="{{ button_cart }}" class="btn btn-primary"><i class="fa fa-shopping-cart"></i></button>
              {% endif %}
              <button type="submit" formaction="{{ remove }}" data-toggle="tooltip-hover" title="{{ button_remove }}" class="btn btn-danger"><i class="fa fa-times"></i></button>
            </form>
        </tr>
      {% endfor %}
      </tbody>

    </table>
  </div>
{% else %}
  <p>{{ text_empty }}</p>
{% endif %}
