I'm working on a very small cart (1 category, 10–20 products) and I would like to achieve this: Creating menu that would not contain list of categories but list of products.
I tried to generate this instead of menu3, so I altered code in index.php to:
I added series of require_once as treewood pointed out in another topic, changed listCategories function to listProducts and increased number to 30 (otherwise I'd have displayed only 3 products).
It works to some extent. Did anyone tried to achieve the same? I don't know whether I took right approach, but I doesn't work on every page. Menu displays only products that are contained within selected category. That means this menu is empty on contact page, because that page doesn't contain any products. And if I choose to display 5 products per page in product list, menu is created only on the first page. It's empty on page 2 and further.
I'd appreciate any help or suggestions where to point my attention.
Polygrafix - by the way, you probably want to display products instead of categories, so you should change manu1 not manu3, but if about displaying products on every page (also contact page) try to comment in core/products.php this: