Page 1 of 1

Product Layout Changed based on NUMBER OF COLUMNS

PostPosted: Mon Aug 22, 2011 12:37 pm
by tinpalace
Hi,

Is there a page column variable/value that I can check for on the product template?

I would like to change how the products display on a page based on the number of columns.

Example - in one column - the description is to the right. In a 3 column layout the description is below.

I would like to edit the template_product.sst template to display the product differently based on the number of columns of the page it is displayed on.

Thanks,

Luke

www.thegeekchic.ca

Re: Product Layout Changed based on NUMBER OF COLUMNS

PostPosted: Mon Aug 22, 2011 12:41 pm
by ShopSite Lauren
In the page template, you can add the following VAR tag to the top, just below the DEFINE PAGE tag.
[-- VAR.Columns PAGE.Columns --]

Then in the product template you can use the VAR tag to determine the layout. For example...
[-- IF VAR.Columns "Three columns" --]
<td align="right">
[-- ELSE --]
<td align="left">
[-- END_IF --]

Re: Product Layout Changed based on NUMBER OF COLUMNS

PostPosted: Mon Aug 22, 2011 3:00 pm
by tinpalace
that worked beautifully

thank you very much!!!!