Hi, I need to get a list of all the products in Product.php in order to pass it to product.tpl. That way I will be able to access some kind of $products variable from product.tpl, just like it can be done in products.tpl with the $listing.products variable. My problem is that I don't really know PHP and I have no idea on how to implement it inside Product.php. My guess is that it should be a relatively easy thing to do, so I would appreciate if someone could give me an answer (taking into account my little knowledge of PHP).
Edit History
Hi, I need to get a list of all the products in Product.php in order to pass it to product.tpl. That way I will be able to access some kind of $products variable from product.tpl, just like it can be done in products.tpl with the $listing.products variable. My problem is that I don't really know PHP and I have no idea on how to implement it inside Product.php. My guess is that it should be a relatively easy thing to do, so I would appreciate if someone could give me an answer (taking into account my little knowledge of PHP).