templates/default/product_overview.html.twig line 1

Open in your IDE?
  1. <html lang="de" style="font-size: 13px">
  2. <head>
  3.     <link rel="preconnect" href="https://fonts.googleapis.com">
  4.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  5.     <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
  6.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  7.     <link rel="stylesheet" href="https://unpkg.com/swiper@7/swiper-bundle.min.css" />
  8.     <link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css" />
  9.     <link rel="stylesheet" type="text/css" href="/assets/css/nice-select.css" />
  10.     <link rel="stylesheet" type="text/css" href="/assets/css/base.css" />
  11.     <link rel="stylesheet" type="text/css" href="/assets/css/media.css" />
  12. </head>
  13. <script>
  14. function inIframe () {
  15.     try {
  16.         return window.self !== window.top;
  17.     } catch (e) {
  18.         return true;
  19.     }
  20. }
  21. </script>
  22. <body>
  23.     <div class="loadercontainer">
  24.         <div class="loader">
  25.             <img src="/assets/img/loader.svg" />
  26.         </div>
  27.     </div>
  28.     <div class="container-fluid">
  29.         {# {{ dump(filters)  }} #}
  30.         <div class="row" style="padding: 0px 25px;">
  31.             {# FILTERS #}
  32.             <div class="col-sm-3 filterheading" style="border-bottom:1px solid #707070;">
  33.                 <div class="row">
  34.                     <div class="col-md-12 prheading" style="text-align:left;">
  35.                         FILTER
  36.                         <br>&nbsp;<br>
  37.                     </div>
  38.                 </div>
  39.             </div>
  40.             {# PRODUCTS #}
  41.             <div class="col-sm-9" style="border-bottom:1px solid #707070;">
  42.                 <div class="row">
  43.                     <div id="filtericon"><i class="fa fa-2x fa-filter" aria-hidden="true"></i></div>
  44.                     <div class="col-md-12 prheading filtersortcontainer" style="text-align:center">
  45.                         ARTIKEL
  46.                         <br>&nbsp;<br>
  47.                         <select id="sortselect" data-url="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined ? "&casematerial="~filters.casematerial }}{{ filters.collection is defined ? "&collection="~filters.collection }}">
  48.                             <option value="actual" {{ filters.sort is defined and filters.sort == "actual" ? "selected" : "" }}>Aktuelle zuerst</option>
  49.                             <option value="priceasc" {{ filters.sort is defined and filters.sort == "priceasc" ? "selected" : "" }}>Niedrigster Preis</option>
  50.                             <option value="pricedesc" {{ filters.sort is defined and filters.sort == "pricedesc" ? "selected" : "" }}>Höchster Preis</option>
  51.                             <option value="name" {{ filters.sort is defined and filters.sort == "name" ? "selected" : "" }}>Artikelbezeichnung</option>
  52.                         </select>
  53.                     </div>
  54.                 </div>
  55.             </div>
  56.         </div>
  57.         <div class="row" style="padding: 0px 25px;">
  58.             {# FILTERS #}
  59.             {% if filters.brand is defined %}
  60.                 {% set brandid = filters.brand %}
  61.                 {% set brandpath = pimcore_object(brandid).geto_path %}
  62.             {% endif %}
  63.             {% if jewellerycat is defined and jewellerycat is not null %}
  64.                 {% set brandpath = jewellerycat.geto_path %}
  65.             {% endif %}
  66.             {% if "Schmuck" not in brandpath and (filters.brand is not defined or (filters.brand is defined and (filters.brand != 83 and filters.brand != 89 and filters.brand != 1933))) %}
  67.                 <div class="col-sm-3" style="padding: 0px;">
  68.                 <div class="filterContainer">
  69.                     <div class="col-md-12" style="border-right: 1px solid #707070; padding: 40px 20px; border-bottom: 1px solid #707070;">
  70.                         <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined ? "&casematerial="~filters.casematerial }}">
  71.                         <p class="filterHeading">KOLLEKTIONEN</p>
  72.                         </a>
  73.                         <div class="collapsFilter"><i class="fas fa-minus"></i></div>
  74.                         
  75.                         <ul class="filterValues">
  76.                             {% set brandCollections = filters.brandCollections %}
  77.                             {% for collection in brandCollections %}
  78.                                 {% set productcount = collection.dependencies.requiredby|length %}
  79.                                 {% if productcount > 0 %}
  80.                                     <li {{ filters.collection is defined and filters.collection == collection.id ? 'class="active"' : '' }}>
  81.                                         <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined and filters.collection == collection.id ? '' : "&collection="~collection.id }}{{ filters.type is defined ? "&type="~filters.type : "" }}">{{ collection.title }}</a>
  82.                                     </li>
  83.                                 {% endif %}
  84.                             {% endfor %}
  85.                         </ul>
  86.                         
  87.                     </div>
  88.                     <div class="col-md-12" style="border-right: 1px solid #707070; padding: 40px 20px; border-bottom: 1px solid #707070;">
  89.                         <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}{{ filters.casematerial is defined ? "&casematerial="~filters.casematerial }}">
  90.                             <p class="filterHeading">TYP</p>
  91.                         </a>
  92.                         <div class="collapsFilter"><i class="fas fa-minus"></i></div>
  93.                         <ul class="filterValues">
  94.                             <li {{ filters.type is defined and filters.type == 195 ? 'class="active"' : '' }}>
  95.                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}{{ filters.type is defined and filters.type == 195 ? '' : "&type=195" }}">Damenmodelle</a>
  96.                             </li>
  97.                             <li {{ filters.type is defined and filters.type == 194 ? 'class="active"' : '' }}>
  98.                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}{{ filters.type is defined and filters.type == 194 ? '' : "&type=194" }}">Herrenmodelle</a>
  99.                             </li>
  100.                         </ul>
  101.                     </div>
  102.                     {# <div class="col-md-12" style="border-right: 1px solid #707070; padding: 40px 20px; border-bottom: 1px solid #707070;">
  103.                         <p class="filterHeading">UHRWERK</p>
  104.                         <div class="collapsFilter"><i class="fas fa-minus"></i></div>
  105.                         <ul class="filterValues">
  106.                             <li class="active">Automatik</li>
  107.                             <li>Manuell</li>
  108.                         </ul>
  109.                     </div> #}
  110.                     <div class="col-md-12" style="border-right: 1px solid #707070; padding: 40px 20px; border-bottom: 1px solid #707070;">
  111.                         
  112.                         <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}">
  113.                         <p class="filterHeading">GEHÄUSE</p>
  114.                         </a>
  115.                         <div class="collapsFilter"><i class="fas fa-minus"></i></div>
  116.                         <ul class="filterValues">
  117.                             <li {{ filters.casematerial is defined and filters.casematerial == 'gold' ? 'class="active"' : '' }}>
  118.                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined and filters.casematerial == 'gold' ? '' : "&casematerial=gold" }}">Gold</a>
  119.                             </li>
  120.                             <li {{ filters.casematerial is defined and filters.casematerial == 'stahl' ? 'class="active"' : '' }}>
  121.                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined and filters.casematerial == 'stahl' ? '' : "&casematerial=stahl" }}">Edelstahl</a>
  122.                             </li>
  123.                             <li {{ filters.casematerial is defined and filters.casematerial == 'keramik' ? 'class="active"' : '' }}>
  124.                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined and filters.casematerial == 'keramik' ? '' : "&casematerial=keramik" }}">Keramik</a>
  125.                             </li>
  126.                             <li {{ filters.casematerial is defined and filters.casematerial == 'titan' ? 'class="active"' : '' }}>
  127.                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined ? "&collection="~filters.collection : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined and filters.casematerial == 'titan' ? '' : "&casematerial=titan" }}">Titan</a>
  128.                             </li>
  129.                         </ul>
  130.                     </div>
  131.                 </div>
  132.             </div>
  133.             {% elseif brandpath == "/PIM/02 Schmuck/01 Marken/" %}
  134.                     <div class="col-sm-3" style="padding: 0px;">
  135.                         <div class="filterContainer">
  136.                             <div class="col-md-12" style="border-right: 1px solid #707070; padding: 40px 20px; border-bottom: 1px solid #707070;">
  137.                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined ? "&casematerial="~filters.casematerial }}">
  138.                                 <p class="filterHeading">KOLLEKTIONEN</p>
  139.                                 </a>
  140.                                 <div class="collapsFilter"><i class="fas fa-minus"></i></div>
  141.                                 
  142.                                 <ul class="filterValues">
  143.                                     {% set brandCollections = filters.brandCollections %}
  144.                                     {% for collection in brandCollections %}
  145.                                         {% set productcount = collection.dependencies.requiredby|length %}
  146.                                         {% if productcount > 0 %}
  147.                                             <li {{ filters.collection is defined and filters.collection == collection.id ? 'class="active"' : '' }}>
  148.                                                 <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.collection is defined and filters.collection == collection.id ? '' : "&collection="~collection.id }}{{ filters.type is defined ? "&type="~filters.type : "" }}">{{ collection.title }}</a>
  149.                                             </li>
  150.                                         {% endif %}
  151.                                     {% endfor %}
  152.                                 </ul>
  153.                                 
  154.                             </div>
  155.                         </div>
  156.                     </div>
  157.             {% else %}
  158.                 <div class="col-sm-3" style="padding: 0px;"></div>
  159.             {% endif %}
  160.             {# PRODUCTS #}
  161.             <div class="col-sm-9">
  162.                 
  163.                 <div class="row">
  164.                     {% set counter = 0 %}
  165.                     {% for product in products %}
  166.                     {% set counter = counter + 1 %}
  167.                     <div class="col-md-4">
  168.                         <div class="productElement">
  169.                             <div class="productPicture" style="background-image:url('{{product.frontimage}}')">
  170.                             </div>
  171.                             <p class="prElHeading">{{product.model}}</p>
  172.                             {% if product.brand is defined and product.brand is not null %}
  173.                             <p class="prElSubHeading">{{product.brand.name}}</p>
  174.                             {% else %}
  175.                             {# {{dump(product.id)}}     #}
  176.                             {% endif %}
  177.                             
  178.                             {# <a href="/produkt/{{product.id}}"> #}
  179.                                 <button class="primary openproduct" data-id="{{product.id}}/{{ product.brand.name|replace({" " : "-"}) }}/{{ product.model|replace({"/" : "-", " " : "-"}) }}/{{ product.articleNumber|replace({"/" : "-", " " : "-"}) }}" style="margin-top:15px">MEHR ERFAHREN</button>
  180.                             {# </a> #}
  181.                         </div>
  182.                     </div>
  183.                     {% if counter % 3 == 0 %}
  184.                         </div>
  185.                         <div class="row">
  186.                     {% endif %}
  187.                     {% endfor %}
  188.                     
  189.                 </div>
  190.                 
  191.                 <div class="row">
  192.                     <div class="spacer-md">
  193.                     </div>
  194.                 </div>
  195.                 
  196.                 {% if filters.page is defined and filters.page is not null %}
  197.                 <div class="row">
  198.                     <div class="col-md-2"></div>
  199.                     <div class="col-md-8" style="text-align:center;">
  200.                         <a href="/productoverview?{{ filters.brand is defined ? "brand="~filters.brand : "" }}{{ filters.type is defined ? "&type="~filters.type }}{{ filters.casematerial is defined ? "&casematerial="~filters.casematerial }}{{ filters.collection is defined ? "&collection="~filters.collection }}{{ filters.sort is defined ? "&sort="~filters.sort }}"><button class="primary">MEHR ANZEIGEN</button></a>
  201.                     </div>
  202.                     <div class="col-md-2"></div>
  203.                 </div>
  204.                 {% endif %}    
  205.             </div>
  206.         </div>
  207.         <div class="row">
  208.             <div class="spacer-md">
  209.             </div>
  210.         </div>
  211.     </div>
  212.     <script>
  213.         window.onload = function() {
  214.             document.getElementsByClassName('loadercontainer')[0].style.visibility = 'hidden';
  215.         }
  216.     </script>
  217.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  218.     <script src="https://unpkg.com/swiper@7/swiper-bundle.min.js"></script>
  219.     <script src="/assets/js/bootstrap.min.js"></script>
  220.     <script src="/assets/js/jquery.nice-select.js"></script>
  221.     <script src="/assets/js/base.js"></script>
  222. </body>
  223. </html>