foreach item=product_array name=i from=$product_array
  • if $smarty.foreach.i.iteration%8 eq 0 class="nomargin" /if > if $ifhtml eq '1' && $product_array.html_url neq ''

    <tpl> $product_array.p_name </tpl>

    $product_array.p_short_name

    ¥ $product_array.p_price

    else

    <tpl> $product_array.p_name </tpl>

    $product_array.p_short_name

    ¥ $product_array.p_price

    /if
  • /foreach