View Single Post
  #4  
Old 08-10-2004, 09:46 AM
 
jburba2000 jburba2000 is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Oklahoma
Posts: 66
 

Default

after you have added the "TableThumbnailBorders" class to the css file, you need to change the following in the products_t template:

Change:
Quote:
<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td class="ThumbNailBorder">

<table border=0 width=100% cellpadding=5 cellspacing=1>

{math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

{section name=product loop=$products}

{if %product.index% is div by $config.Appearance.products_per_row}
<tr>
{assign var="cell_counter" value=0}
{/if}

{math equation="x+1" x=$cell_counter assign="cell_counter" }

<td align=center valign=top width="{$width}%" class="DialogBox">

To:
Quote:
<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td>

<table border=0 width=100% cellpadding=5 cellspacing=1>

{math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

{section name=product loop=$products}

{if %product.index% is div by $config.Appearance.products_per_row}
<tr>
{assign var="cell_counter" value=0}
{/if}

{math equation="x+1" x=$cell_counter assign="cell_counter" }

<td align=center valign=top width="{$width}%" class="ThumbNailBorder">

This should work if you are listing ONLY featured products in multitabular format. I have not figured out the {if}/{else} statements yet to make it work on ONLY featured products if you list your regular products in multitab format also.
__________________
Mindells.com - Your Style. Your Comfort. Your Way.
X-Cart Platinum - 4.6.1
Reply With Quote