Hallo Liebe Oxid Community, Frohe Weihnachten euch allen :),
ich habe wiedermal ein Problem und bräuchte da einen Anhaltspunkt wo mein Fehler genau liegt.
Ich versuche dem Kunden bei einer Gastbestelung seine Bestellübersicht bereit zu stellen. Dies klappt auch wunderbar, bis auf das Problem das wenn er 2 oder mehr Artikel gekauft hat das Thumbnail vom 1. Artikel bei allen anderen Artikeln mitangezeigt wird. Der Rest stimmt allerding, selbst der Link fürs Bild stimmt .
mein Template
[{assign var="aArticle" value=$oView->getArticle()}] [{*******oxarticles - gets articel from oxorderarticle*******}]
[{assign var="OrderId" value=$oView->getOrder()}] [{*******oxorderarticles - gets articel from oxarticles*******}]
[{assign var="sArticleId" value=$OrderId->oxorderarticles__oxartid->value}]
[{foreach from=$order->getOrderArticles(true) item=orderitem name=testOrderItem}]
<div id="body_extend" style="text-align: left;border-top: solid #eceeef 1px;">
<div id="product_image">
<div class="productimage">
[{if method_exists($oViewConf, 'account_extend_article_out_of_order')}]
[{assign var="blOutOfOrder" value=$oViewConf->account_extend_article_out_of_order($aArticle->oxarticles__oxactive->value, $currentStockAmt)}]
[{elseif method_exists($oViewConf, stock_management_oxviewconfig_parent')}]
[{assign var="bOutOfOrder" value=$oViewConf->stock_management_oxviewconfig_parent($aArticle->oxarticles__oxstockflag->value, $currentStockAmt)}]
[{else}]
[{assign var="blOutOfOrder" value=false}]
[{/if}]
[{block name="listitem_flex_button_add_to_cart"}]
[{if !$blOutOfOrder}]
<a href="index.php?cl=details&anid=[{$orderitem->oxorderarticles__oxartid->value}]"><img src="[{$aArticle->getThumbnailUrl()}]" alt="[{$_sTitle.value}]" style="width: 80px;height: 80px"></a>
[{elseif $aArticle->getThumbnailUrl()}]
<img src="[{$aArticle->getThumbnailUrl()}]" alt="[{$_sTitle.value}]" style="width: 80px;height: 80px">
[{else}]
<img id="gmpic" src="out/pictures/master/nopic.jpg" style="width: 80px;height: 80px">
[{/if}]
[{/block}]
</div>
</div>
<div id="product_description">
<div>
[{if $aArticle->oxarticles__oxid->value && $aArticle->isVisible()}]
<a id="accOrderLink_[{$order->oxorder__oxordernr->value}]_[{$smarty.foreach.testOrderItem.iteration}]" href="index.php?cl=details&anid=[{$orderitem->oxorderarticles__oxartid->value}]">
[{/if}]
[{$orderitem->oxorderarticles__oxtitle->value|truncate:50:"..."}]
[{if $aArticle->oxarticles__oxid->value && $aArticle->isVisible()}]</a>[{/if}]
<br/>
<span>[{oxmultilang ident="ST_PRODUCT_NUMBER"}]: [{$orderitem->oxorderarticles__oxartnum->value}]</span>
</div>
</div>
<div id="product_amount"><span class="amount">[{$orderitem->oxorderarticles__oxamount->value}] [{if $orderitem->oxorderarticles__oxamount->value > 1}][{oxmultilang ident="PAGE_ACCOUNT_ORDERHISTORY_QNT"}][{else}][{oxmultilang ident="PAGE_ACCOUNT_ORDERHISTORY_QNT_ONE"}][{/if}]</span></div>
<div id="product_price" ><strong class="price">[{oxprice price=$orderitem->getPrice() currency=$currency}]</strong></div>
</div>
[{/foreach}]
Über ein kleinen Anstups wäre ich sehr Dankbar