Barfen
November 18, 2016, 4:32pm
1
Hallo Gemeinde,
ich stehe wiedermal vor einem kleinen Problemchen. Die Forensuche hat mich leider kein Stück weitergebracht und Mr. Google weiß einfach nichts
[B]Wie kann ich die Preise für die Artikel “Angebote der Woche” ausblenden (Angebot der Woche wird zweckentfremdet :rolleyes:)? [/B]
In der [B]bargainitems.tpl[/B] habe ich den Bereich auskommentiert aber es erfolgt keine Änderung! Übersehe ich etwas oder muss ich das in einer anderen Datei auskommentieren?
[B]Es wäre toll wenn mir jemand helfen würde / könnte![/B]
Viele Grüße und ein schönes Wochenende
Tim
Hallo Tim,
ok. die Versionsnummer kann ich aus der Signatur auslesen. Konntest du uns noch das Theme verraten?
Grüße
Rafig
Barfen
November 18, 2016, 5:47pm
3
[QUOTE=OXID-Design;184180]Hallo Tim,
ok. die Versionsnummer kann ich aus der Signatur auslesen. Konntest du uns noch das Theme verraten[/QUOTE]
Oh, sorry! Habe ich ganz vergessen mit in die Signatur zu packen…
Wir verwenden das Flow Theme
Liebe Grüße
Tim
[{if $listId != "bargainItems"}]
Preis in tpl
[{/if}]
[{if $listId != "bargainItems"}]
[{block name="widget_product_listitem_grid_price"}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]
[{assign var="oUnitPrice" value=$product->getUnitPrice()}]
[{assign var="tprice" value=$product->getTPrice()}]
[{assign var="price" value=$product->getPrice()}]
[{if $tprice && $tprice->getBruttoPrice() > $price->getBruttoPrice()}]
<span class="oldPrice text-muted">
<del>[{$product->getFTPrice()}] [{$currency->sign}]</del>
</span>
[{/if}]
[{block name="widget_product_listitem_grid_price_value"}]
[{if $product->getFPrice()}]
<span class="lead text-nowrap">
[{if $product->isRangePrice()}]
[{oxmultilang ident="PRICE_FROM"}]
[{if !$product->isParentNotBuyable()}]
[{$product->getFMinPrice()}]
[{else}]
[{$product->getFVarMinPrice()}]
[{/if}]
[{else}]
[{if !$product->isParentNotBuyable()}]
[{$product->getFPrice()}]
[{else}]
[{$product->getFVarMinPrice()}]
[{/if}]
[{/if}]
[{$currency->sign}]
[{if $oView->isVatIncluded()}]
[{if !($product->hasMdVariants() || ($oViewConf->showSelectListsInList() && $product->getSelections(1)) || $product->getVariants())}]*[{/if}]
[{/if}]
</span>
[{/if}]
[{/block}]
[{if $oUnitPrice}]
<span id="productPricePerUnit_[{$testid}]" class="pricePerUnit">
[{$product->oxarticles__oxunitquantity->value}] [{$product->getUnitName()}] | [{oxprice price=$oUnitPrice currency=$currency}]/[{$product->getUnitName()}]
</span>
[{elseif $product->oxarticles__oxweight->value }]
<span id="productPricePerUnit_[{$testid}]" class="pricePerUnit">
<span title="weight">[{oxmultilang ident="WEIGHT"}]</span>
<span class="value">[{$product->oxarticles__oxweight->value}] [{oxmultilang ident="KG"}]</span>
</span>
[{/if}]
[{/oxhasrights}]
[{/block}]
[{/if}]
Aslo so wie im Anhang…
Ok. Hiermit kannst auf beliebiger Seite im Shop die Preise deaktivieren.
[I]/application/views/dein-child-theme/page/shop/[B]start.tpl[/B][/I]
[{if $oBargainArticles && $oBargainArticles->count()}]
[{include file="widget/product/list.tpl" type=$oViewConf->getViewThemeParam('sStartPageListDisplayType') head="START_BARGAIN_HEADER"|oxmultilangassign subhead="START_BARGAIN_SUBHEADER"|oxmultilangassign showPrice=false listId="bargainItems" products=$oBargainArticles rsslink=$rsslinks.bargainArticles rssId="rssBargainProducts" showMainLink=true iProductsPerLine=4}]
[{/if}]
[I]/application/views/dein-child-theme/widget/product/[B]list.tpl[/B][/I]
[{oxid_include_widget cl="oxwArticleBox" _parent=$oView->getClassName() nocookie=1 _navurlparams=$oViewConf->getNavUrlParams() showPrice=$showPrice 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}]
[I]/application/views/dein-child-theme/widget/product/[B]listitem_grid.tpl[/B]
/application/views/dein-child-theme/widget/product/[B]listitem_infogrid.tpl[/B]
/application/views/dein-child-theme/widget/product/[B]listitem_line.tpl[/B][/I]
[{if $showPrice !== false && ($tprice && $tprice->getBruttoPrice() > $price->getBruttoPrice())}]
....
[{/if}]
[{if $product->getFPrice() && $showPrice !== false}]
.....
[{/if}]
Grüße
Rafig
Barfen
November 18, 2016, 6:14pm
6
[B]Ihr seit ja Spitze!!! Es klappt!!! Tausend Dank an euch!!!
[/B]Liebe Grüße
Tim