abezing wrote:
Instead of downloading the sample track and play it on our computer, can we have an actual player?
What you can do is add an sample file and change the following code in /templates/glass_gray/content/products/info.php to embed the player
starting at line 87
| Code: |
if ($osC_Product->isDownloadable() && $osC_Product->hasSampleFile()) {
?>
<tr>
<td class="label"><?php echo $osC_Language->get('field_sample_url'); ?></td>
<td><?php echo osc_link_object(osc_href_link(FILENAME_DOWNLOAD, 'type=sample&id=' . $osC_Product->getID()), $osC_Product->getSampleFile()); ?></td>
</tr>
<?php
}
|
What you can do here is embed the file
| Code: |
if ($osC_Product->isDownloadable() && $osC_Product->hasSampleFile()) {
?>
<tr>
<td colspan='2'>
EMBED THE PLAYER HERE WITH THE FOLLOWING LINK TO MP3
</td>
<?php echo $osC_Product->getSampleFile()); ?></td>
</tr>
<?php
}
|