themes/webapicTheme/templates/bundles/SyliusShopBundle/Webapic/panier.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. <div class="panier panierpopup">
  3.     <div class="panier-overlay">
  4.     </div>
  5.     
  6.     <div class="panier-ctn">
  7.         <div class="panierpopup-top">
  8.                 {% include '@SyliusShop/Webapic/panier/panier-top.html.twig' with {'cart': cart} %}
  9.         </div>
  10.         
  11.        
  12.         <div class="panier-content">
  13.             <div class="panierpopup-livraison">
  14. {# {% if app_show_free_shipping()  %} #}
  15.                 {% if amount != 0 and app_show_free_shipping()  %}
  16.                     {% include '@SyliusShop/Webapic/panier/panier-livraison.html.twig' with {'cart': cart} %}
  17.                 {% endif %}
  18.              </div>
  19.             <div class="panierpopup-produits">
  20.                 {% include '@SyliusShop/Webapic/panier/panier-produits.html.twig' with {'cart': cart} %}
  21.             </div>
  22.             <div class="jecraque">
  23.                 <div class="title">
  24.                     <span class="h4">{{ 'app.front.panier.jecraque'|trans }}</span>                
  25.                 </div>
  26.                 
  27.                 <div class="bitbag-block panier-listing3">
  28.                     <div class="panier-listing3-ctn">
  29.                         {% for variant in moreVariants %}
  30.                         {% if variant.imagesByType('image_product_main') is not empty %}
  31.                             {% set source_path = variant.imagesByType('image_product_main').first.path %}
  32.                             {% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
  33.                         {% elseif variant.images.first %}
  34.                             {% set source_path = variant.images.first.path %}
  35.                             {% set path = source_path|imagine_filter('app_product_small_thumbnail_listing') %}
  36.                         {% else %}
  37.                             {% set path = asset('webapic-theme/images/icon-gmap.png') %}
  38.                         {% endif %}
  39.                         <div class="panier-listing1-content">
  40.                             <a href="{{ path('app_product_variant_show', {'slug': variant.slug, 'id':variant.id}) }}" class="ui fluid image">
  41.                                 <div class="img-ctn">
  42.                                     <div class="img-ctn-content">
  43.                                         <img src="{{ path }}" id="main-image" alt="{{ variant.name }}" {{ sylius_test_html_attribute('main-image') }} />
  44.                                     </div>     
  45.                                 </div>
  46.                                 <div class="right">
  47.                                     <div class="name">{{ variant.name }}</div>     
  48.                                     {% set price = money.calculatePrice(variant) %}
  49.                                     {% set originalPrice = money.calculateOriginalPrice(variant) %}
  50.                                     <div class="sylius-product-price price">{{ price }}</div>
  51.                                 </div>                    
  52.                             </a>
  53.                             <div class="add">
  54.                                 <button class="js-add-to-cart" data-url="{{ path('app_cart_add_to_cart_ajax') }}" data-postdata="{{ '{"' ~ variant.id ~ '":1}' }}">
  55.                                     <img src="{{ asset('webapic-theme/images/icon-panier-small.svg') }}" class="ui image" />
  56.                                 </button>                                    
  57.                             </div>
  58.                         </div>
  59.                         {% endfor %}
  60.                     </div>
  61.                 </div>
  62.             </div>
  63.         </div>
  64.         <div class="panier-bottom">
  65.             {# {% include 'partials/block-bandeau.html.twig' %} #}
  66.             {% include '@SyliusShop/Webapic/panier/block-onemorething.html.twig' %}
  67.             <div class="panierpopup-total">
  68.                 {% include '@SyliusShop/Webapic/panier/panier-total.html.twig' with {'cart': cart} %}
  69.             </div>
  70.         </div>
  71.     </div>
  72. </div>
  73. {# <div id="sylius-cart-button" class="ui circular cart button">
  74.     {{ sylius_template_event('sylius.shop.cart.widget.button', {'cart': cart}) }}
  75. </div>
  76. <div class="ui large flowing cart hidden popup">
  77.     {{ sylius_template_event('sylius.shop.cart.widget.popup', {'cart': cart}) }}
  78. </div> #}