30 lines
1.3 KiB
Smarty
30 lines
1.3 KiB
Smarty
{if $body->getPurchaseState()->getCharges()}
|
|
{foreach $body->getPurchaseState()->getCharges() as $charge}
|
|
{if is_a($charge, 'KupShop\OrderingBundle\Entity\Purchase\ProductPurchaseItem')}
|
|
{$product = $charge->getProduct()}
|
|
{if $product}
|
|
{$product->fetchImages(4)}
|
|
<div class="product">
|
|
<div class="image">
|
|
<a href="{url s=product IDproduct=$product.id TITLE=$product.title}" title="{t}Zobrazit produkt{/t}">
|
|
<img src="{get_photo photo=$product.image size=4}" alt="{$product.title}"
|
|
class="img-responsive">
|
|
</a>
|
|
</div>
|
|
<div class="title">
|
|
<a href="{url s=product IDproduct=$product.id TITLE=$product.title}"
|
|
title="{t}Zobrazit produkt{/t}">{$charge->getName()}</a>
|
|
<span class="variation">{$product.variationTitle}</span>
|
|
</div>
|
|
<div class="price-summary">
|
|
<p class="price-total price-total-summary">
|
|
{$charge->getPrice()|format_price:"ceil=no;decimal=dynamic"}
|
|
</p>
|
|
<p class="pieces-summary"> </p>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
{/if}
|