<div data-reload="cart">
   {if $body.order.items}
      {$cf = $body.order->getSecurityCode()}
      {get_order_coupons order=$body.order assign='order_coupons'}
      <div class="order-products order-products-cart">
         {foreach $body.order.items as $product}
            <div class="product{if !$product.id_product} product-custom{/if}" data-cart="row"
                 data-product-id="{$product.id}">
               {if $product.id_product}
                  <div class="image">
                     <a href="{url s=product IDproduct=$product.id_product TITLE=$product.product.title}"
                        title="{t}Zobrazit zboží{/t}">
                        <img src="{get_photo id=$product.photo|default:0 image='product_gallery'}"
                             alt="{$product.descr}" class="img-responsive">
                     </a>
                  </div>
               {/if}
               <div class="title">
                  {if $product.id_product}
                     <a href="{url s=product IDproduct=$product.id_product TITLE=$product.product.title}"
                        title="{t}Zobrazit produkt{/t}">{$product.product.title}</a>
                  {else}
                     {$product.descr}
                  {/if}

                  {if $product.product and $product.note}
                     {$itemInfo = $body.order->getItemInfo($product)}
                     {foreach $itemInfo as $key => $print_note}
                        <div class="small">{$print_note nofilter}</div>
                     {/foreach}
                  {/if}

                  {if !empty($order_coupons[$product.id])}
                     <br>
                     {t}Kód{/t}:
                     {foreach $order_coupons[$product.id] as $coupon}
                        {$coupon_url = path('kupshop_orderingbundle_pdfcoupon', ['id_order' => $body.order.id, 'id_coupon' => $coupon.id, 'cf' => $cf], 0)}
                        <a href="{$coupon_url}" target="_blank">{$coupon.code}</a>{if !$coupon@last},{/if}
                     {/foreach}
                  {/if}
               </div>

               {block "pieces"}
                  <div class="pieces">
                     {if $product.id_product}
                        {$product.pieces} {t}ks{/t}
                     {/if}
                  </div>
               {/block}

               <div class="price">
                  <strong>
                     {block "orderview-product-price"}
                        {$product.total_price.value_with_vat|format_price:"ceil=no;decimal=dynamic"}
                     {/block}
                  </strong>
               </div>

               {block "product-sets-custom"}{/block}
            </div>
            {*darek k produktu*}
            {block "product-sets"}{/block}
         {/foreach}
      </div>
   {/if}
</div>
