How to display a list of Some products?

dynasty

Avatar: dynasty

2011-11-17 23:18

How can I display a list of only some products ( by ID ) so that it won't show every product but only for example product ID 1, 4 and 7?

I would like this list to appear on a page - is it possible?

I tried to look for the answer for couple of hours but I could not find it..

Thank you for your help

» Quick.Cart v4.x

Makaron

Avatar: Makaron

2011-11-17 23:38

You can prepare page which You add into Hidden menu and connect some products with this page. After that You can use function listProducts in templates/themes/default.php:

$sAdditionalProducts $oProduct->listProducts'pages_default.tpl'PAGE_ID999 );



Of course replace PAGE_ID by number of this prepared page before.
After that in templates/container.tpl You can use variable $sAdditionalProducts

Important:
Edit file core/products.php function listProducts() before line:

if( DISPLAY_SUBCATEGORY_PRODUCTS === true ){


add this:

$this->aPages null;

I helped? Like it: www.facebook.com/makwebpl

Back to top
about us | contact