TomatoCart

65370 Downloads
288 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

selling music
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: selling music
*
#2037
selling music 1 Year, 6 Months ago Karma: 0
Is there a way to use this cart to sell MP3 tracks or full albums? and for each track there will be a sample "taste" track?
abezing
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
abesolomon
The administrator has disabled public write access.
 
#2038
Re: selling music 1 Year, 6 Months ago Karma: 29
The downloadable product have the option sample file and file so you can put the "taste" track in the sample file and the full albums in the real file.
zheng.lei
Team Member
Posts: 462
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2043
Re:selling music 1 Year, 6 Months ago Karma: 0
Instead of downloading the sample track and play it on our computer, can we have an actual player?
abezing
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
abesolomon
The administrator has disabled public write access.
 
#2045
Re:selling music 1 Year, 6 Months ago Karma: 1
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
    }

E-volutions
Gold Boarder
Posts: 294
graphgraph
User Offline Click here to see the profile of this user
Gender: Male TomatocartHosting ward@e-volutions.be Location: Belgium, Leuven
Last Edit: 2010/07/24 14:57 By E-volutions.

TomatocartHosting launching soon!


The administrator has disabled public write access.
 
#2046
Re:selling music 1 Year, 6 Months ago Karma: 0
Thank yiou for your great input. I added a folder name jukebox to the includes folder with a swf player and JS file to run it. here is your code with the player

if ($osC_Product->isDownloadable() && $osC_Product->hasSampleFile()) {
?>
<tr>
<td colspan='2'>
<object type="application/x-shockwave-flash" data="includes/jukebox/player.swf" id="audioplayer0" height="24"

width="290">
<param name="movie" value="includes/jukebox/player.swf">
<param name="FlashVars"

value="playerID=0&amp;bg=0xF7F7F7&amp;leftbg=0x7C4F16&amp;lefticon=0xEDECD7&amp;rightbg=0xA7AE80&amp;rightbghover=0x666666&amp;righticon=0x666666&amp;righticonhover=0xA7AE80&amp;text=0x4F4F4F&amp;slider=0x7C4F16&amp;track=0xFFFFFF&amp; border=0x7C4F16&amp;loader=0xE2ECAF&amp;loop=no&amp;autostart=no&amp;soundFile=media/tracksample.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
</td>
<?php echo $osC_Product->getSampleFile()); ?></td>
</tr>
<?php
}


I want the sample file to be a variable in the player, right now in the sample I have it hard coded as tracksample.mp3. Also what about an album with multiple tracks, I want them to show up one on top of the other.
abezing
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
abesolomon
The administrator has disabled public write access.
 
#2055
Re:selling music 1 Year, 6 Months ago Karma: 1
abezing wrote:
Thank yiou for your great input. I added a folder name jukebox to the includes folder with a swf player and JS file to run it. here is your code with the player

if ($osC_Product->isDownloadable() && $osC_Product->hasSampleFile()) {
?>
<tr>
<td colspan='2'>
<object type="application/x-shockwave-flash" data="includes/jukebox/player.swf" id="audioplayer0" height="24"

width="290">
<param name="movie" value="includes/jukebox/player.swf">
<param name="FlashVars"

value="playerID=0&amp;bg=0xF7F7F7&amp;leftbg=0x7C4F16&amp;lefticon=0xEDECD7&amp;rightbg=0xA7AE80&amp;rightbghover=0x666666&amp;righticon=0x666666&amp;righticonhover=0xA7AE80&amp;text=0x4F4F4F&amp;slider=0x7C4F16&amp;track=0xFFFFFF&amp; border=0x7C4F16&amp;loader=0xE2ECAF&amp;loop=no&amp;autostart=no&amp;soundFile=media/tracksample.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
</td>
<?php echo $osC_Product->getSampleFile()); ?></td>
</tr>
<?php
}


I want the sample file to be a variable in the player, right now in the sample I have it hard coded as tracksample.mp3. Also what about an album with multiple tracks, I want them to show up one on top of the other.


You should check the Product class to get this sample file's filename. I think the class is located in includes/classes/. There should be a method to get the sample file from the product (something like getSampleFile()). Invoke that method to get the filename and echo it in your value of the flash player (at the end -> soundFile).

For multiple songs I don't think this is yet possible, because you only can set one sample file. In the next release you'll have product attachments wich you can use for multiple files.

Kind regards,
E-volutions
E-volutions
Gold Boarder
Posts: 294
graphgraph
User Offline Click here to see the profile of this user
Gender: Male TomatocartHosting ward@e-volutions.be Location: Belgium, Leuven

TomatocartHosting launching soon!


The administrator has disabled public write access.
 
Go to top Page: 12

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?