src/Develey/SpechtBundle/Resources/views/Product/listByProductCategoryId.html.twig line 1

Open in your IDE?
  1. {% extends 'pageTemplateDefault.html.twig' %}
  2. {% block content %}
  3.     {{ pimcore_areablock("content", {
  4.         "allowed": ["Breadcrumb", "MainStage", "MainStageCarousel", "StageSpecific", "StageFlat"],
  5.         "group": {
  6.             "Stage Variationen": ["Breadcrumb", "MainStage", "MainStageCarousel", "StageSpecific", "StageFlat"]
  7.         }
  8.     }) }}
  9.     <div class="section">
  10.         <div class="main-content flex-col product-list-view">
  11.             {% for productkey, product in products %}
  12.                 {% set detailViewUri    = pimcore_url(
  13.                     {
  14.                         "name": product.urlTitle,
  15.                         "articlenumber": product.articleNumber
  16.                     },
  17.                     "shopHandlerProductDetail"
  18.                     ) %}
  19.                 <div class="col xs-12 m-6 l-4">
  20.                     <div class="teaser image-text product">
  21.                         <div class="teaser-content">
  22.                             <div class="image">
  23.                                 <a href="{{ detailViewUri }}">
  24.                                     <img src="{{ product.thumbnailUrl }}"
  25.                                          alt="{{ product.thumbnailAlt }}"/>
  26.                                 </a>
  27.                             </div>
  28.                             <div class="teaser-text-box">
  29.                                 <div class="title-box">
  30.                                     <h4>
  31.                                         <a href="{{ detailViewUri }}">{{ product.name |trademark }}</a>
  32.                                     </h4>
  33.                                 </div>
  34.                                 <div class="content-box product-price-container">
  35.                                     <div class="product-price">
  36.                                         {% if product.cachedPrice is defined %}
  37.                                             {{ product.cachedPrice }}
  38.                                         {% else %}
  39.                                             {{ product.price }}
  40.                                         {% endif %}
  41.                                         {% if (product['priceOld'] != 0 and product['price'] != product['priceOld']) %}
  42.                                             <span class="product-price old">
  43.                                                 &nbsp;{{ product['priceOld'] |number_format(2, '.', ',') }} {{ '€' |trans }}
  44.                                             </span>
  45.                                         {% endif %}
  46.                                     </div>
  47.                                     {% if product.isProductFood %}
  48.                                         <div class="product-price-additional">
  49.                                             {% if(product['hasVariants']) %}
  50.                                                 <div class="product-variation-container">
  51.                                                     {{ 'Varianten vorhanden' |trans }}
  52.                                                 </div>
  53.                                             {% else %}
  54.                                                 <div>({{ product['priceReference'] |number_format(2, ',', '.') }} {{ '€' |trans }} / {{ product['unit'] }})</div>
  55.                                             {% endif %}
  56.                                             <div>{{ product.deliveryCostHint }}</div>
  57.                                         </div>
  58.                                     {% endif %}
  59.                                     <a class="button btn-default" href="{{ detailViewUri }}">
  60.                                         {{ 'View Product' |trans }}
  61.                                     </a>
  62.                                 </div>
  63.                             </div>
  64.                         </div>
  65.                     </div>
  66.                 </div>
  67.             {% endfor %}
  68.         </div>
  69.     </div>
  70. {% endblock %}