{template_event name="quiqqer::order::basket::begin" Basket=$Basket} {if $Products->count()}

{locale group="quiqqer/erp" var="article.list.articles.header.pos"} {if QUI\TemplateCologne\Utils::getSetting('order.basket.showImages')} | {locale group="quiqqer/erp" var="article.list.articles.header.image"} {/if} | {locale group="quiqqer/erp" var="article.list.articles.header.description"} | {locale group="quiqqer/erp" var="article.list.articles.header.quantity"} | {locale group="quiqqer/erp" var="article.list.articles.header.unitprice"} | {locale group="quiqqer/erp" var="article.list.articles.header.price"} {if $this->getAttribute('editable')} | {/if}
--- | --- | --- | --- | --- | --- | ---
{assign var=pos value=1} {foreach $products as $product}
{$pos} {if QUI\TemplateCologne\Utils::getSetting('order.basket.showImages')} | {image src=$product.imageSrc width=300 height=300 class="quiqqer-order-basket-articles-article-image__img"} {/if} | {$product.title} {$product.description} {foreach $product.attributes as $attribute} {$attribute.title}: {$this->getValueText($attribute.valueText)} {/foreach} {if $showArticleNumber && !empty($product.productNo)} {locale group="quiqqer/order" var="basket.articles.articleNo"} {$product.productNo} {/if} | {assign var=maxQuantity value=""} {assign var=maxQuantityAttr value=""} {if isset($product.maximumQuantity) && $product.maximumQuantity && $product.maximumQuantity !== true} {assign var=maxQuantityAttr value=" max='{$product.maximumQuantity}'"} {assign var=maxQuantity value=(int)$product.maximumQuantity} {/if} {if $Utils->isBasketProductEditable($product) && $this->getAttribute('editable') && $maxQuantity != 1} {else} {$product.quantity} {/if} | {if !isset($product.displayPrice) || $product.displayPrice} {$product.price} {/if} | {if !isset($product.displayPrice) || $product.displayPrice} {$product.sum} {/if} {if !isset($product.hasOfferPrice) || $product.hasOfferPrice} {$product.originalPrice} {/if} {if $this->getAttribute('editable')} | {/if}
{assign var=pos value=$pos+1} {/foreach}

{template_event name="quiqqer::order::basket::middle" Basket=$Basket}

{locale group="quiqqer/order" var="control.order.overview.subSum"} | {$data.subSum}
{foreach $data.attributes as $attribute}
{$attribute.title} {if !empty($attribute.valueText)}({$attribute.valueText}){/if} | {$attribute.value}
{/foreach} {if count($data.attributes)}
{/if} {foreach $data.vat as $vat}
{$vat.text} | {$vat.value}
{/foreach} {if isset($data.grandTotalFactors) && count($data.grandTotalFactors)}
{locale group="quiqqer/order" var="control.order.overview.grandSubSum"} | {$data.grandSubSum}
{foreach $data.grandTotalFactors as $attribute}
{$attribute.title} {if !empty($attribute.valueText) && $attribute.valueText !== '-'}({$attribute.valueText}){/if} | {$attribute.value}
{/foreach} {/if} {if count($data.attributes)}
{/if}
{locale group="quiqqer/order" var="control.order.overview.sum"} | {$data.sum}

{elseif $this->isGuest() && $this->isLoading()}
{else}
{locale group="quiqqer/order" var="message.basket.is.empty"}
{/if} {template_event name="quiqqer::order::basket::end" Basket=$Basket}