templates/vinos.html.twig line 1

Open in your IDE?
  1. {% extends 'base/base.html.twig' %}
  2. {% block stylesheets %}
  3. {% endblock %}
  4. {% block body %}
  5. {% include 'base/header.html.twig' %}
  6.     <div class="banner-wrapper has_background">
  7.         <img src="{{ asset('images/banner/FOTO3.jpg') }}"
  8.             class="img-responsive attachment-1920x447 size-1920x447" style="width:1920px !important; height:600px !important; object-position: top;" alt="img">
  9.     
  10.     </div>
  11.     <div class="main-container shop-page no-sidebar">
  12.         <div class="container" id="producto">
  13.             <div class="row">
  14.                 <div class="main-content col-md-12">
  15.                     <div class="shop-control shop-before-control">
  16.                         <div class="grid-view-mode">
  17.                             <form>
  18.                                 <a href="shop.html" data-toggle="tooltip" data-placement="top"
  19.                                 class="modes-mode mode-grid display-mode active" value="grid">
  20.                                     <span class="button-inner">
  21.                                         Shop Grid
  22.                                         <span></span>
  23.                                         <span></span>
  24.                                         <span></span>
  25.                                     </span>
  26.                                 </a>
  27.                                 <a href="shop-list.html" data-toggle="tooltip" data-placement="top"
  28.                                 class="modes-mode mode-list display-mode " value="list">
  29.                                     <span class="button-inner">
  30.                                         Shop List
  31.                                         <span></span>
  32.                                         <span></span>
  33.                                         <span></span>
  34.                                     </span>
  35.                                 </a>
  36.                             </form>
  37.                         </div>
  38.                         <h1 class="MejMedium" style="text-align: center; color: #AA6D3A;font-size: 13px;">TIENDA EXCLUSIVA PARA CHILE<h1>
  39.                         <h1 class="MejMedium" style="text-align: center; color: black;font-size: 10px;">DESPACHO SIN COSTO EN LA REGIÓN METROPOLITANA POR COMPRAS SOBRE $50.000<h1>
  40.                         
  41.                         {#<h4 style="text-align: center; color: #AA6D3A; font-size: 16px;">( En el espíritu de Los Vascos, Cultivando Independencia )<h4>#}
  42.                         {#<form class="kreen-ordering" method="get">
  43.                             <select title="product_cat" name="orderby" class="orderby">
  44.                                 <option value="menu_order" selected="selected">Default </option>
  45.                                 <option value="popularity">Mas Popular</option>
  46.                                 <option value="rating">Ordenar por rating</option>
  47.                                 <option value="date">Ordenar por el Ultimo</option>
  48.                                 <option value="price">de menor a mayor</option>
  49.                                 <option value="price-desc">de mayor a menor</option>
  50.                             </select>
  51.                         </form>
  52.                         <form class="per-page-form">
  53.                             <label>
  54.                                 <select class="option-perpage">
  55.                                     <option value="12" selected="">
  56.                                         Ver 12
  57.                                     </option>
  58.                                     <option value="5">
  59.                                         Ver 05
  60.                                     </option>
  61.                                     <option value="10">
  62.                                         Ver 10
  63.                                     </option>
  64.                                     <option value="12">
  65.                                         Ver 12
  66.                                     </option>
  67.                                     <option value="15">
  68.                                         Ver 15
  69.                                     </option>
  70.                                     <option value="20">
  71.                                         Ver todo
  72.                                     </option>
  73.                                 </select>
  74.                             </label>
  75.                         </form>#}
  76.                     </div>
  77.                     
  78.                     <div class=" auto-clear kreen-products">
  79.                         <ul class="row col-12 products  columns-3" id="colum1">
  80.                         </ul>
  81.                         <ul class="row col-12 products  columns-3" id="colum2">
  82.                         </ul>
  83.                         <ul class="row col-12 products  columns-3" id="colum3">
  84.                         </ul>
  85.                         <ul class="row col-12 products  columns-3" id="colum4">
  86.                         </ul>
  87.                        
  88.                     </div>
  89.                     {#<div class="shop-control shop-after-control">
  90.                         <nav class="kreen-pagination">
  91.                             <span class="page-numbers current">1</span>
  92.                             <a class="page-numbers" href="#">2</a>
  93.                             <a class="next page-numbers" href="#">Next</a>
  94.                         </nav>
  95.                         <p class="kreen-result-count">Showing 1–12 of 20 results</p>
  96.                     </div>#}
  97.                     {% if tag is defined %}
  98.                         {% if tag == "Cromas" or tag == "LeDix" or tag == "LosVascos" %}
  99.                             <div class="row" style="text-align: center;">
  100.                                 <div class="col-12"><br><br>
  101.                                     <a href="{{path('vinos')}}" class="btn btn-primary" style="background-color:#AA6D3A; border-color:#AA6D3A;">Todos los Vinos</a>
  102.                                 </div>
  103.                             </div>
  104.                         {% endif %}
  105.                     {% endif %}    
  106.                 </div>
  107.             </div>
  108.         </div>
  109.          <!-- Modal -->
  110.         <div id="mayorEdad" style="background: #D0C2AF;">
  111.             <section class="sobre-losVascos">
  112.             <div>
  113.                 <h5 class="MejMedium" style="color: white; font-size:30px;" >¿ERES MAYOR DE EDAD PARA CONSUMIR ALCOHOL?</h5>
  114.                     
  115.                 <button type="button" class="btn btn-primary" style="height: 85px; width:85px;background-color: #CABBA3 !important;  border-color: #CABBA3 !important" id="Msi">Si</button>
  116.                 <button type="button" class="btn btn-danger" style="height: 85px; width:85px; background-color: #B56150 !important; border-color: #B56150 !important" id="Mno">No</button>  
  117.                 
  118.             </div>
  119.             </section>
  120.         </div>
  121.     </div>
  122. {% include 'base/footer.html.twig' %}
  123. {% endblock %}
  124. {% block javascripts %}
  125. <script>    
  126.     $(document).ready(function(){        
  127.         $('#producto').hide();
  128.         if($('#producto').hide()){
  129.             $('#mayorEdad').show();
  130.         }else{
  131.              $('#mayorEdad').hide();
  132.         }
  133.         document.getElementById('Mno').onclick = function(){   
  134.                  
  135.             alert('No cumple con el minimo de edad.');
  136.             
  137.         }
  138.         document.getElementById('Msi').onclick = function(){ 
  139.             localStorage.setItem("validEdad", 1);        
  140.             $('#producto').show();    
  141.             $('#mayorEdad').hide();        
  142.         }
  143.         var validEdad = localStorage.getItem("validEdad"); 
  144.         if(validEdad == 1){
  145.             $('#producto').show();    
  146.             $('#mayorEdad').hide();
  147.         }
  148.         var productos = [];
  149.         productos = {{products | json_encode | raw }};      
  150.         var url = "";  
  151.         productos.forEach(element => {
  152.             var formatter = new Intl.NumberFormat('es-CL', {
  153.                     style: 'currency',
  154.                     currency: 'CLP',
  155.                     // These options are needed to round to whole numbers if that's what you want.
  156.                     minimumFractionDigits: 0,
  157.                     maximumFractionDigits: 0,
  158.                 });
  159.                 
  160.             if(element.linea == 1){ 
  161.                 
  162.                 $("#colum1").append(`
  163.                     <li class="MejMedium product-item wow fadeInUp product-item rows-space-30 col-bg-3 col-xl-3 col-lg-4 col-md-6 col-sm-6 col-ts-6 style-01 post-24 product type-product status-publish has-post-thumbnail product_cat-chair product_cat-table product_cat-new-arrivals product_tag-light product_tag-hat product_tag-sock first instock featured shipping-taxable purchasable product-type-variable has-default-attributes"
  164.                         data-wow-duration="1s" data-wow-delay="0ms" data-wow="fadeInUp">
  165.                         <div class="product-inner tooltip-left">
  166.                             <div class="product-thumb">
  167.                                 <a class="thumb-link" href="/producto/`+element.slug+`">
  168.                                     <img class="img-responsive"
  169.                                         src="`+element.img+`"
  170.                                         alt="Cherry tomato" style="height: 200px; width: 250px;
  171.                                         object-fit: cover;" >
  172.                                 </a>
  173.                                 
  174.                             </div>
  175.                             <div class="product-info equal-elem">
  176.                                 <h3 class="product-name product_title" style="font-size: 14px !important;text-align: center; white-space: normal !important;">
  177.                                     <a href="/producto/`+element.slug+`">`+element.name+`</a>
  178.                                 </h3>
  179.                             
  180.                                 <span class="price">
  181.                                     <span class="kreen-Price-amount amount" style="font-size: 14px;">
  182.                                         <span class="kreen-Price-currencySymbol">CLP $</span>`+formatter.format(element.price).replace(/^(\D+)/, '')+`</span>
  183.                                 </span>
  184.                                 {% if product.short_description is defined %}
  185.                                 <div class="kreen-product-details__short-description">
  186.                                     <p>`+element.short_description+`</p>
  187.                                 </div>
  188.                                 {% endif %}
  189.                             </div>
  190.                             <div class="group-button">
  191.                                 <div class="group-button-inner">
  192.                                     <div class="add-to-cart">
  193.                                         <a href="/producto/`+element.slug+`" class="button product_type_variable add_to_cart_button">
  194.                                             Comprar
  195.                                         </a>
  196.                                     </div>
  197.                                 </div>
  198.                             </div>
  199.                         </div>
  200.                     </li>
  201.                 
  202.                 `);
  203.             }
  204.             if(element.linea == 2){ 
  205.                 $("#colum2").append(`
  206.                     <li class="MejMedium product-item wow fadeInUp product-item rows-space-30 col-bg-3 col-xl-3 col-lg-4 col-md-6 col-sm-6 col-ts-6 style-01 post-24 product type-product status-publish has-post-thumbnail product_cat-chair product_cat-table product_cat-new-arrivals product_tag-light product_tag-hat product_tag-sock first instock featured shipping-taxable purchasable product-type-variable has-default-attributes"
  207.                         data-wow-duration="1s" data-wow-delay="0ms" data-wow="fadeInUp">
  208.                         <div class="product-inner tooltip-left">
  209.                             <div class="product-thumb">
  210.                                 <a class="thumb-link" href="/producto/`+element.slug+`">
  211.                                     <img class="img-responsive"
  212.                                         src="`+element.img+`"
  213.                                         alt="Cherry tomato" style="height: 200px; width: 250px;
  214.                                         object-fit: cover;" >
  215.                                 </a>
  216.                                 
  217.                             </div>
  218.                             <div class="product-info equal-elem">
  219.                                 <h3 class="product-name product_title" style="font-size: 14px !important;text-align: center; white-space: normal !important">
  220.                                     <a href="/producto/`+element.slug+`">`+element.name+`</a>
  221.                                 </h3>
  222.                             
  223.                                 <span class="price">
  224.                                     <span class="kreen-Price-amount amount" style="font-size: 14px;">
  225.                                         <span class="kreen-Price-currencySymbol">CLP $</span>`+formatter.format(element.price).replace(/^(\D+)/, '')+`</span>
  226.                                 </span>
  227.                                 {% if product.short_description is defined %}
  228.                                 <div class="kreen-product-details__short-description">
  229.                                     <p>`+element.short_description+`</p>
  230.                                 </div>
  231.                                 {% endif %}
  232.                             </div>
  233.                             <div class="group-button">
  234.                                 <div class="group-button-inner">
  235.                                     <div class="add-to-cart">
  236.                                         <a href="/producto/`+element.slug+`" class="button product_type_variable add_to_cart_button">
  237.                                             Comprar
  238.                                         </a>
  239.                                     </div>
  240.                                 </div>
  241.                             </div>
  242.                         </div>
  243.                     </li>
  244.                 
  245.                 `);
  246.             }
  247.             if(element.linea == 3){ 
  248.                 $("#colum3").append(`
  249.                     <li class="MejMedium product-item wow fadeInUp product-item rows-space-30 col-bg-3 col-xl-3 col-lg-4 col-md-6 col-sm-6 col-ts-6 style-01 post-24 product type-product status-publish has-post-thumbnail product_cat-chair product_cat-table product_cat-new-arrivals product_tag-light product_tag-hat product_tag-sock first instock featured shipping-taxable purchasable product-type-variable has-default-attributes"
  250.                         data-wow-duration="1s" data-wow-delay="0ms" data-wow="fadeInUp">
  251.                         <div class="product-inner tooltip-left">
  252.                             <div class="product-thumb">
  253.                                 <a class="thumb-link" href="/producto/`+element.slug+`">
  254.                                     <img class="img-responsive"
  255.                                         src="`+element.img+`"
  256.                                         alt="Cherry tomato" style="height: 200px; width: 250px;
  257.                                         object-fit: cover;" >
  258.                                 </a>
  259.                                 
  260.                             </div>
  261.                             <div class="product-info equal-elem">
  262.                                 <h3 class="product-name product_title" style="font-size: 14px !important;text-align: center; white-space: normal !important">
  263.                                     <a href="/producto/`+element.slug+`">`+element.name+`</a>
  264.                                 </h3>
  265.                             
  266.                                 <span class="price">
  267.                                     <span class="kreen-Price-amount amount" style="font-size: 14px;">
  268.                                         <span class="kreen-Price-currencySymbol">CLP $</span>`+formatter.format(element.price).replace(/^(\D+)/, '')+`</span>
  269.                                 </span>
  270.                                 {% if product.short_description is defined %}
  271.                                 <div class="kreen-product-details__short-description">
  272.                                     <p>`+element.short_description+`</p>
  273.                                 </div>
  274.                                 {% endif %}
  275.                             </div>
  276.                             <div class="group-button">
  277.                                 <div class="group-button-inner">
  278.                                     <div class="add-to-cart">
  279.                                         <a href="/producto/`+element.slug+`" class="button product_type_variable add_to_cart_button">
  280.                                             Comprar
  281.                                         </a>
  282.                                     </div>
  283.                                 </div>
  284.                             </div>
  285.                         </div>
  286.                     </li>
  287.                 
  288.                 `);
  289.             }
  290.             if(element.linea == 4){ 
  291.                 $("#colum4").append(`
  292.                     <li class="MejMedium product-item wow fadeInUp product-item rows-space-30 col-bg-3 col-xl-3 col-lg-4 col-md-6 col-sm-6 col-ts-6 style-01 post-24 product type-product status-publish has-post-thumbnail product_cat-chair product_cat-table product_cat-new-arrivals product_tag-light product_tag-hat product_tag-sock first instock featured shipping-taxable purchasable product-type-variable has-default-attributes"
  293.                         data-wow-duration="1s" data-wow-delay="0ms" data-wow="fadeInUp">
  294.                         <div class="product-inner tooltip-left">
  295.                             <div class="product-thumb">
  296.                                 <a class="thumb-link" href="/producto/`+element.slug+`">
  297.                                     <img class="img-responsive"
  298.                                         src="`+element.img+`"
  299.                                         alt="Cherry tomato" style="height: 200px; width: 250px;
  300.                                         object-fit: cover;" >
  301.                                 </a>
  302.                                 
  303.                             </div>
  304.                             <div class="product-info equal-elem">
  305.                                 <h3 class="product-name product_title" style="font-size: 14px !important;text-align: center; white-space: normal !important">
  306.                                     <a href="/producto/`+element.slug+`">`+element.name+`</a>
  307.                                 </h3>
  308.                             
  309.                                 <span class="price">
  310.                                     <span class="kreen-Price-amount amount" style="font-size: 14px;">
  311.                                         <span class="kreen-Price-currencySymbol">CLP $</span>`+formatter.format(element.price).replace(/^(\D+)/, '')+`</span>
  312.                                 </span>
  313.                                 {% if product.short_description is defined %}
  314.                                 <div class="kreen-product-details__short-description">
  315.                                     <p>`+element.short_description+`</p>
  316.                                 </div>
  317.                                 {% endif %}
  318.                             </div>
  319.                             <div class="group-button">
  320.                                 <div class="group-button-inner">
  321.                                     <div class="add-to-cart" >
  322.                                         <a href="/producto/`+element.slug+`" class="button product_type_variable add_to_cart_button">
  323.                                             Comprar
  324.                                         </a>
  325.                                     </div>
  326.                                 </div>
  327.                             </div>
  328.                         </div>
  329.                     </li>
  330.                 
  331.                 `);
  332.             }
  333.         });        
  334.     })
  335. </script>
  336. {% endblock %}