Hallo zusammen,
ich habe ein Problem mit den Topartikeln.
Vieleicht sitz ich auch schon wieder zu lange davor.
Hab es geschafft bei Staffelpreisen die anzeige von zb "0,87 EUR - 0,75 EUR" zu ändern in "ab 0,75 EUR".
Das klappt in der Kategorieansicht wie auch in der Detailansicht.
Jedoch ist in der Top Artikel Box der Artikel mit Staffeklpreisen wieder mit "0,87 EUR - 0,75 EUR" angegeben. In welchem Template muss ich meinen Code einbauen, damit ich auch bei den TOP Artikeln "ab 0,75 EUR" stehen habe.
Für interesierte hier der Code für die Dateien.
product.html:
<div id="productinfoprice">
{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}<p class="productprice">
<!--Staffelpreise mit "ab"-->
{assign var=price_string value=$products_price.formated}
{php}
$price_string = $this->get_template_vars('price_string');
$price_string = split("\-",$price_string);
$price_string = "ab ".$price_string[1];
$this->assign('price_lowest',$price_string)
{/php}
{if $price_lowest =='' or $price_lowest =='ab ' }
{$products_price.formated}
{else}
{$price_lowest}
{/if}
<!--Staffelpreise formatierung Ende-->
</p><br />[/HTML]
und Datei
product_listing_v1.html:
[HTML]{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
<p class="price">
<!--Staffelpreise mit "ab"-->
{assign var=price_string value=$module_data.products_price.formated}
{php}
$price_string = $this->get_template_vars('price_string');
$price_string = split("\-",$price_string);
$price_string = "ab ".$price_string[1];
$this->assign('price_lowest',$price_string)
{/php}
{if $price_lowest =='' or $price_lowest =='ab ' }
{$module_data.products_price.formated}
{else}
{$price_lowest}
{/if}
<!--Staffelpreise formatierung Ende-->
</p>[/HTML]