View Single Post
  #43  
Old 07-24-2007, 08:44 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: 3 column layout with thumbnail for Related Products

I'm a bit lost about what you are trying to do exactly. The code I have allows a maximum of three products per row, then creates a new row.

How about this?

{ if %cat_num.3 }
</tr>
{/if}


{ if %cat_num.last% }
</tr></table>
{/if}
{/section}
{/capture}

I'm guessing at the "3" in { if %cat_num.3 } as I don't know much about Smarty either, but presumably it would then insert a </tr> after the third item?

If your code doesn't add a </tr> after each row, then how does it create a second row? Isn't that impossible without the </tr> tag being there somehow?
__________________
X-Cart Gold Version 4.3.2
Reply With Quote