| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Different Column Number Based on Category | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Different Column Number Based on Category
I was looking through the boards and could not find anything that was even remotely similar to my question.
I'd like something like this: {if $cat eq "342"} then number of columns 4 {else} number of columns 3 {/if} This is for my main categories, by the way. I tried editing the Appearance.products_per_row, x, %product.index% and any other variable or equation possible in products.tpl and products_t.tpl, but nothing ever does anything. It stubbornly just keeps the 3-column display. Does anyone have anything that I can do that I haven't done already (=has not been said on these boards already)? No paid mods, please (I got burnt before). Thanks. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Different Column Number Based on Category
Insert this code at the very top of products_t.tpl
Code:
Then replace $config.Appearance.products_per_row with $products_per_row in the file.
__________________
Regards, Piotr Markushin X-Cart PDF Catalog Generator NEW Professional X-Cart Skins Store (7 new skins added in August 2008!) ahedOffice.com - Web 2.0 Online Groupware |
|||||||||
#3
|
|||||||
|
|||||||
Re: Different Column Number Based on Category
Does a weird design with 3, 1, 2 and 2 products per row. Strange.
|
|||||||
#4
|
|||||||||
|
|||||||||
Re: Different Column Number Based on Category
You probably missed $config.Appearance.products_per_row occurence.
All of them must be replaced with $products_per_row
__________________
Regards, Piotr Markushin X-Cart PDF Catalog Generator NEW Professional X-Cart Skins Store (7 new skins added in August 2008!) ahedOffice.com - Web 2.0 Online Groupware |
|||||||||
|
|||
X-Cart forums © 2001-2020
|