View Single Post
  #2  
Old 11-19-2015, 02:06 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: How to set 2 different column numbers?

This really depends on how you want to do this. I think I would handle it with CSS.

Just add in your products_t.tpl somewhere a class definition associated with categoryid.

I'm assuming the categoryid is assigned to Smarty, and it is something like this {$cat} = 123

So in the container div you could do something like this:
Code:
<div class="products{if $cat != ''}cat-{$cat}{/if}">

Then you can add CSS specific to that category.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote