Wie wird in der Produktliste ein ab-Preis angezeigt, wenn die Varianten unterschiedliche Preise haben?
Der niedrigste Preis soll zuerst angezeigt werden.
Öffne die products-list.tpl im Theme-Ordner, bei den Preisangaben ändere den Code wie folgt ab:
{if $product.on_sale}
{l s='On sale!'}
{elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d' >= $product.reduction_from))}
{l s='Price lowered!'}
{/if}
{if !$priceDisplay || $priceDisplay == 2}
{if $product.id_product_attribute}{l s='from'}{/if} {convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx'}{/if}
{/if}
{if $priceDisplay}
{if $product.id_product_attribute}{l s='from'}{/if} {convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx'}{/if}
{/if}
{if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}
{l s='Add to cart'}{else}
Kompatbilität: PrestaShop 1.2 – 1.5.x
Schreibe einen Kommentar