Quote:
Originally Posted by fiberglass.supply
final issue is how to not show on products with no variants or options. on those products it shows price lowest to highest but it not needed.
|
Just change the code as follows:
Code:
{if $variants}
{assign var="variant_max_price" value=$product.taxed_price}
{assign var="variant_min_price" value=$product.taxed_price}
{foreach from=$variants item="variant_item"}
{math assign="variant_max_price" equation="max(x, y)" x=$variant_max_price y=$variant_item.taxed_price}
{math assign="variant_min_price" equation="min(x, y)" x=$variant_min_price y=$variant_item.taxed_price}
{/foreach}
Max. Price: {$variant_max_price}
Min. Price: {$variant_min_price}
{/if}