Hallo zusammen
Bei älteren Versionen war es im Basic und Azure Template möglich (durch Anpassung der details.tpl) die Varianten als Produkte mit Bildern darzustellen, ist dies irgendwie beim Flow Theme auch möglich?
Danke euch schonmal und Gruss
Hallo zusammen
Bei älteren Versionen war es im Basic und Azure Template möglich (durch Anpassung der details.tpl) die Varianten als Produkte mit Bildern darzustellen, ist dies irgendwie beim Flow Theme auch möglich?
Danke euch schonmal und Gruss
natürlich, du musst die selben Anpassungen auch für das Flow Theme durchführen.
Vielen Dank. Ich habe diesen Code in der fullproductinfo.tpl eingefügt und im Shop erscheint nun nur eine Aufzählung aber keine Produktnamen oder Bilder etc. Irgendwas mach ich komplett falsch
[{assign var=“type” value=‘qf_detail’}]
[{assign var=“products” value=$oView->getVariantList()}][{if $products|@count gt 0}]
<p class=“qf_detailView_var”>Varianten</p>
<ul class=“[{$type}]View clear” id=“[{$listId}]”>
[{foreach from=$products name=variants item=product}]
<li class=“productData”>[{include file="widget/product/listitem"|cat:$type|cat:“.tpl” product=$product testid=$listId|cat:""|cat:$smarty.foreach.productlist.iteration}]</li>
[{if ($type eq “infogrid” AND ($smarty.foreach.productlist.last) AND ($smarty.foreach.productlist.iteration % 2 != 0 )) }]
<li class=“productData”></li>
[{/if}]
[{/foreach}]
</ul>
[{/if}]
Ist das eine 4.9 oder 4.10 Version? Der Code sieht irgendwie eher nach 4.7 aus.
Versuchs mal mit dem aktuellen Code aus widget/product/list.tpl (Zeile 59 rum, mit [{ oxid_include_widget … }] )
hab mit 4.10 getestet -> funktioniert
aaaah stimmt! ist Version 4.10.
Wenn ich dann nun den folgenden Code aus der widget/product/list.tpl kopiere, scheint es irgendwie zu funktionieren, zereisst mir aber das ganze layout.
[{oxid_include_widget cl=“oxwArticleBox” _parent=$oView->getClassName() nocookie=1 _navurlparams=$oViewConf->getNavUrlParams() iLinkType=$_product->getLinkType() _object=$_product anid=$product->getId() sWidgetType=product sListType=listitem$type iIndex=$testid blDisableToCart=$blDisableToCart isVatIncluded=$oView->isVatIncluded() showMainLink=$showMainLink recommid=$recommid owishid=$owishid toBasketFunction=$toBasketFunction removeFunction=$removeFunction altproduct=$altproduct inlist=$_product->isInList() skipESIforUser=1 testid=$testid}]
Hier mal ein Bild wie es danach aussieht:
Hast du
[{assign var="type" value='qf_detail'}]
noch drin? Ich vermute stark, dass dein listitem_qf_detail.tpl Code enthält, mit dem OXID nicht arbetien kann.
ich habs hier ausprobiert, nehme aber infogrid" als $type:
https://oxid.mb-dev.de/4.10/Bekleidung/Fashion/Fuer-Sie/Jeans/Kuyichi-Jeans-ANNA.html
Nein der ist nicht mehr drin.
Wow genau so solls bei mir dann aussehen
So sieht meine ganze fullproductinfo.tpl im Moment aus:
<div id=“detailsMain”>
[{include file=“page/details/inc/productmain.tpl”}][{oxid_include_widget cl=“oxwArticleBox” _parent=$oView->getClassName() nocookie=1 _navurlparams=$oViewConf->getNavUrlParams() iLinkType=$_product->getLinkType() _object=$_product anid=$product->getId() sWidgetType=product sListType=listitem$type iIndex=$testid blDisableToCart=$blDisableToCart isVatIncluded=$oView->isVatIncluded() showMainLink=$showMainLink recommid=$recommid owishid=$owishid toBasketFunction=$toBasketFunction removeFunction=$removeFunction altproduct=$altproduct inlist=$_product->isInList() skipESIforUser=1 testid=$testid}]
</div>
<div id=“detailsRelated” class=“detailsRelated clear”>
<div class=“relatedInfo[{if !$oView->getSimilarProducts() && !$oView->getCrossSelling() && !$oView->getAccessoires()}] relatedInfoFull[{/if}]”>
<div class=“row”>
<div class=“col-xs-12”>[{include file="page/details/inc/tabs.tpl"}] [{if $oView->isReviewActive()}] <div class="spacer"></div> <div class="widgetBox reviews"> <div class="h2 page-header">[{oxmultilang ident="WRITE_PRODUCT_REVIEW"}]</div> [{include file="widget/reviews/reviews.tpl"}] </div> [{/if}] </div> </div> </div> <div class="row"> <hr> </div> [{include file="page/details/inc/related_products.tpl"}]
</div>
Ich bin so blöd echt! Hab ja die Hälfte vergessen…
Danke dir vielmals, nun funktionierts!!!
bisschen mehr Code muss da schon sein. Hier ist mein Code (eingesetzt an der selben Stelle wie bei dir)
[{assign var="type" value='infogrid'}]
[{assign var="products" value=$oView->getVariantList()}]
[{if $products|@count gt 0}]
<p class="qf_detailView_var">Varianten</p>
<ul class="[{$type}]View clear" id="[{$listId}]">
[{foreach from=$products name=variants item=_product}]
<li class="productData">
[{oxid_include_widget cl="oxwArticleBox" _parent=$oView->getClassName() nocookie=1 _navurlparams=$oViewConf->getNavUrlParams() iLinkType=$_product->getLinkType() _object=$_product anid=$_product->getId() sWidgetType=product sListType=listitem_$type iIndex=$testid blDisableToCart=$blDisableToCart isVatIncluded=$oView->isVatIncluded() showMainLink=$showMainLink recommid=$recommid owishid=$owishid toBasketFunction=$toBasketFunction removeFunction=$removeFunction altproduct=$altproduct inlist=$_product->isInList() skipESIforUser=1 testid=$testid}]
</li>
[{/foreach}]
</ul>
[{/if}]
edit: ah, super.