View Single Post
  #7  
Old 07-16-2010, 04:33 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: Changing the background color based on Category

ARW,

Yup, already did that. Except the "-m" represents male in my css and "-f" female.

The code in the bestsellers.tpl that sets that class is:

Code:
{if $bestsellers} {capture name=bestsellers} <ul class="bestsellers-products-item-m"> {foreach from=$bestsellers item=bestseller} <li>

Do I build the {if} formula inside the "<ul>" ?

I tried the following and that did work to well.
{if $cat eq '8'}
<ul class="bestsellers-products-item-m">
{elseif $cat eq '10'}
<ul class="bestsellers-products-item-f">
{else}
<ul class="bestsellers-products-item">
{/if}

It messed it up like it didn't have a Class at all.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote