templates/product/list.html.twig line 1

Open in your IDE?
  1. {% extends "standard_tpl.html.twig" %}
  2. {% set page_title_alt = "Shop" %}
  3. {% block  content %}
  4.     <!-- Fast Cart -->
  5.     <section class="fast-cart-area product-list">
  6.         <div class="container">
  7.             {% for content in collection %}
  8.                 <div class="row justify-content-center align-items-center pb-20">
  9.                     <div class="col-lg-4">
  10.                         <div class="img-wrapper">
  11.                             <img src="{{ content.thumbnail|media_url }}" alt="{{ content.title }}">
  12.                         </div>
  13.                     </div>
  14.                     <div class="col-lg-5">
  15.                         <h3 class="about-us-title">{{ content.title }}</h3>
  16.                         <div class="price-wrapper">
  17.                             <span class="price-cart">{{ currency(content.price)}}</span>
  18.                         </div>
  19.                         <div class="cart-details-wrapper">
  20.                             <p>{{ content.summary }}</p>
  21.                             <div class="cart-details">
  22.                                 <span class="cart-bold">Category: </span>
  23.                                 <span>{{ content.term.name }}</span>
  24.                             </div>
  25.                         </div>
  26.                         <div class="cart-btn-wrapper d-flex">
  27.                             <form name="add-to-cart" action="{{ path('shopping_add_to_cart') }}" method="POST" class="add-to-cart" data-controller="add-to-cart" data-action="submit->add-to-cart#addToCart">
  28.                                 <input type="hidden" name="productId" value="{{ content.id }}" />
  29.                                 <div class="d-flex">
  30.                                     <input type="number" name="qty"  class="form-control checkout-form-input" value="1" min="1">
  31.                                     <button type="submit" class="btn btn-primary-fast mx-2 btn-add-to-cart" data-add-to-cart-target="submitButton">Add to Cart</button>
  32.                                 </div>
  33.                             </form>
  34.                         </div>
  35.                     </div>
  36.                     <div class="col-lg-9">
  37.                         {{ content.body|raw }}
  38.                     </div>
  39.                 </div>
  40.             {% endfor %}
  41.         </div>
  42.     </section>
  43. {% endblock %}