This commit is contained in:
Roman Pyrih
2024-11-25 15:54:43 +01:00
parent 2f3895e223
commit 1a56dbea66
15 changed files with 11712 additions and 189 deletions

View File

@@ -24,19 +24,53 @@
*}
{block name='cart_detailed_product'}
<div class="cart-overview js-cart" data-refresh-url="{url entity='cart' params=['ajax' => true, 'action' => 'refresh']}">
{if $cart.products}
<ul class="cart-items">
{foreach from=$cart.products item=product}
<li class="cart-item">
{block name='cart_detailed_product_line'}
{include file='checkout/_partials/cart-detailed-product-line.tpl' product=$product}
{/block}
</li>
{if is_array($product.customizations) && $product.customizations|count >1}<hr>{/if}
{/foreach}
</ul>
<div class="cart-items-header">
<h3 class="h3">Twoje produkty ({count($cart.products)})</h3>
</div>
<table >
<thead>
<tr>
<th colspan="2">Nazwa produktu</th>
<th>Cena jednostkowa</th>
<th>Ilość</th>
<th>Cena łączna</th>
<th></th>
</tr>
</thead>
<tbody>
{if $cart.products}
{foreach from=$cart.products item=product}
{block name='cart_detailed_product_line'}
{include file='checkout/_partials/cart-detailed-product-line.tpl' product=$product}
{/block}
{if is_array($product.customizations) && $product.customizations|count >1}<hr>{/if}
{/foreach}
{else}
<tr>
<td colspan="6">
<span class="no-items">{l s='There are no more items in your cart' d='Shop.Theme.Checkout'}</span>
</td>
</tr>
{/if}
</tbody>
</table>
{* {if $cart.products}
<ul class="cart-items">
{foreach from=$cart.products item=product}
<li class="cart-item">
{block name='cart_detailed_product_line'}
{include file='checkout/_partials/cart-detailed-product-line.tpl' product=$product}
{/block}
</li>
{if is_array($product.customizations) && $product.customizations|count >1}<hr>{/if}
{/foreach}
</ul>
{else}
<span class="no-items">{l s='There are no more items in your cart' d='Shop.Theme.Checkout'}</span>
{/if}
{/if} *}
</div>
{/block}