In the php file showing the page in question. You have to assign it as smarty variable. To customize xcart you will need not only php but also smarty knowledge -
www.smarty.net
In general for your question you can do this
$products = "sql query to get the products array";
$smarty->assign("new_products", $products);
which will give you $new_products array available for that page