Products display

kokirk

Avatar: kokirk

2012-05-03 10:50

Please help me:

How can I display products list as "List" in some pages and as "Three columns" in other pages ??

Now, I can only choose "List" or "Three columns" for the whole site.

Thank you!

» Quick.Cart v5.x

Kirk Ko

boboo

Avatar: boboo

2012-05-03 14:04

The easiest way:
in database/config/general.php
somewhere under:
$aPhotoTypes=Array(1=>...
add:
$aThreeColsPages=array(x,y,z,a,b,c);
(the letters mean the ID-numbers of prod-pages, you want to show as 3 columns).
Now in core/products.php in function listProducts
Under:
$oPage=Pages::getInstance();
add:
if(in_array($iContent,$GLOBALS['aThreeColsPages']))
$GLOBALS['config']['display_products_list']=1;
else
$GLOBALS['config']['display_products_list']=2;

Thats all. A dirty, but quick and easy solution.

qc-plugins.kimla.de

kokirk

Avatar: kokirk

2012-05-04 05:19

Thank you boboo !!
it woks !

Kirk Ko

about us | contact