View Single Post
  #6  
Old 05-07-2006, 12:32 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default

OK, not a programmer by any means, but you are checking to see if the catnum is a ultiple of 3, and then checking to see if it is a multiple of 2....

Code:
{ if %cat_num.index% is div by 3}

this line is checking to see if it is divisiable by 3 in order to start a new row, this creates a 3 column table... what you want to do is check against the cat num, and if true create a 2 column table, so I would do something like...

Code:
{if $cat eq "1372"} { if %cat_num.index% is div by 2} <tr> {/if} {else} { if %cat_num.index% is div by 3} <tr> {/if} {/if}

it may not be correct, but hth
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote