2 column layout for v5


Avatar: kees

2012-03-17 11:38

I had a 2 column layout in v4.2 which looked nice with my short descriptions.
In v5 we now have the option to display producsts as a list or as three columns.

Is there a way to add a third option to display a 2 column layout?
If so, could you include that in the standard script?

» Quick.Cart v5.x

treewood (OpenSolution)

Avatar: treewood

2012-03-19 07:05

Edit core/products.php and change:
$aData['iStyleColums'] = ( $i % 3 ) ? 0: 1;
$aData['iStyleColums'] = ( $i % 2 ) ? 0: 1;

After edit templates/default/style.css and change all styles below:

especially width of this element etc:
#products.productsList1 .list li{clear:none;width:200px;margin-left:20px;padding:20px 0;border-top:1px solid #e0e0e0;text-align:center;}


Avatar: kees

2012-03-19 22:11

Thanks for the answer Treewood, this works fine but this way you loose the three column option.

To make it even more complete :
What would I have to do to have three different options for the layout in admin settings? a one column list, a two column layout and a three column layout ?
It would ofcourse need some new elements in the css as well, but I am unsure how to name them if a third layout option is added.

Back to top
about us | contact