View Single Post
  #2  
Old 04-21-2009, 03:54 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: How to make a specific category to by 3 column layout??

1. You should find id of this category (my example is for category 105)

2. open your customer/main/products.tpl
Code:
{if $config.Appearance.products_per_row && ($featured eq "Y" || $config.Appearance.featured_only_multicolumn eq "N")}
and replace it with
Code:
{if $config.Appearance.products_per_row && ($featured eq "Y" || $config.Appearance.featured_only_multicolumn eq "N") || $current_category.categoryid eq "105"}

3. open your customer/main/products_t.tpl replace
Code:
{list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$config.Appearance.products_per_row}

with
Code:
{if $current_category.categoryid eq "105" && $featured ne "Y"} {assign var="per_row" value="3"} {else} {assign var="per_row" value=$config.Appearance.products_per_row} {/if} {list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$per_row}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote