foreach item=product_array name=i from=$product_array
  • if $ifhtml eq '1' && $product_array.html_url neq ''

    <tpl> $product_array.p_name </tpl> if $product_array[i].img_width > $product_array[i].img_heigth width="60" elseif $product_array[i].img_width < $product_array[i].img_heigth height="60" else width="60" heigth="60" /if />

    $product_array.p_short_name

    else

    <tpl> $product_array.p_name </tpl> if $product_array[i].img_width > $product_array[i].img_heigth width="60" elseif $product_array[i].img_width < $product_array[i].img_heigth height="60" else width="60" heigth="60" /if />

    $product_array.p_short_name

    /if
  • /foreach