Hello Support Forum,
for a digital product i can add sample music files.
I have a vinyl record store and use sample files.
Can i enable the sample music file option for a simple product?
Thanks for your request
It doesn't allow that as such out the box - however a very simple way (without extensions) to do it.. would be to have a folder in your media directory.
e.g. /media/samples/ - upload the samples to there.
And then have an attribute called sample that just takes a filename.. e.g. '1.mp3'
Then in your template something like:
<?php if($sample = $product->getSample()) : ?> <a href="<?php echo Mage::getBaseUrl('media');?>sample/<?php echo $sample;?>">$this->__('Download Sample');</a> <?php endif; ?>
You could extend the above to check for existence of the file first; allow multiple files etc.. but the above should be a start.
Haven't you considered create your digital product of downloadable type, availble in default Magento?
There you can add downloadable samples that users will be able to download before the purchase.
Thanks for your answer. But this option is only for digital products. The vinyl is a simple product and i will use the audio sample function on it.
There are to different things.
I can´t buy a vinyl as a digital prodct. A vinyl is a physical product.
Thats my problem.
I am very interested in the music topic at the forum, so lucky to find the article about free music here.