They would be listed right on the product.tpl template.
I noticed that there is a public function in admin/model/catalog/product.php and I think it looks like it might do what I need it to do but I can't quite figure out how to use it.
Is there a way to call this directly into catalog/view/theme/default/template/product/product.tpl somehow?
Code: Select all
public function getProductDownloads($product_id) {
$product_download_data = array();
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_to_download WHERE product_id = '" . (int)$product_id . "'");
foreach ($query->rows as $result) {
$product_download_data[] = $result['download_id'];
}
return $product_download_data;
}