X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to make a specific category to by 3 column layout?? (https://forum.x-cart.com/showthread.php?t=47057)

Christofer 04-20-2009 05:02 PM

How to make a specific category to by 3 column layout??
 
In my shop i have only featured products on 3 column layout. How can i make a specific (1 or 2..) categories to have also 3 column layout? Is it possible? thnx

Victor D 04-21-2009 03:54 AM

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}


Christofer 04-21-2009 03:19 PM

Re: How to make a specific category to by 3 column layout??
 
ok thank you, i'll check it!:0


All times are GMT -8. The time now is 11:29 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.