Modify products array sent to products list template

I want to modify the $products array that is assigned to products_list.tpl. I am building a addon that will only show the products if the product code is equal to a list of product codes that I generate on the fly.

I think the $products array is generated in core/fn.catalog but I am not sure how I can change it in my addon. If anyone can point me in the right direction it would be much appreciated. This is my first post so if I am missing any information let me know and I will provide it.

Thanks in advance…


You can use hooks, [url=“Hooks base”]Hooks base and search for [color=#ff0000]get_products[/color]

You can filter products returned

I hope that helps,