templates/ecom/store.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.   <div class="container-fluid main-holder px-5 bg-light">
  4.     <div class="row">
  5.       <div class="col-lg-3">
  6.         <select class="form-select rounded-pill py-3 px-3 shadow-none border-0 fs-5 bg-transparent fw-bold mb-3" id="citydropdown" onchange="city_select(this)">
  7.           <option selected>Select a City</option>
  8.           {% for c in ecomvariables.cities() %}
  9.           <option value="{{ c.id }}" {% if (c.name == app.session.get('mycity')) %}selected{% endif %}>{{ c.name }}</option>
  10.           {% endfor %}
  11.         </select>
  12.       </div>
  13.     </div>
  14.   </div>
  15.   <div class="container-fluid px-5 mt-5">
  16.     <div class="row">
  17.       <div class="col-lg-12">
  18.         <h1 class="fw-bolder">Nick Tahoes <span class="small">/ Men’s Apparel</span></h1>
  19.         <h6>Explore Nick Tahoes products</h6>
  20.       </div>
  21.     </div>
  22.     <div class="row pb-4">
  23.       {% for k, product in products %}
  24.         {% if product.path is not empty %}
  25.         <div class="col-lg-3 mt-4"> <a href="{{ path('sajong_ecom_product_details', {'path':product.path })}}">
  26.           <div class="card border-0 rounded-5 p-0 overflow-hidden shadow-sm"> <img src="{{ asset(product.image) }}" alt="" class="img-fluid"> </div>
  27.           <h6 class="fw-bold mb-3 mt-3">{{ product.title }}</h6>
  28.           <h6 class="fw-bold mb-4">$ {{ (product.price/100)|number_format(2) }}</h6>  
  29.           </a> 
  30.         </div>
  31.         {% endif %}
  32.       {% endfor %}
  33.     </div>
  34.       <!--div class="row mb-5">
  35.       <div class="col-md-12 text-center mb-2"> <button type="button" class="btn bg-secondary text-white px-4 py-3 rounded-pill">Load More</button> </div>
  36.     </div -->
  37.   </div>
  38. {% endblock %}