This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Woo Track list and Sample Player

Description

Adds the track list for an album on the WooCommerce products page to the short description.
It will also attempt to discover a sample version of the track and display an audio player for the sample. If no sample is found then just the track title is displayed.

Usage

Once the plugin is activated then the short descriptions of your album products will be updated with the list of tracks.
If you wish to display an audio player that will play a sample of the track, then upload a sample track with the name of the track prefixed with ‘sample-‘. For example if you have a file named ‘WooHoo.mp3’ then create and upload a file call ‘sample-WooHoo.mp3’ in the Media Library.
Creating the samples is not possible with this plugin. I recommend the use of Sound eXchange (SoX) at http://sox.sourceforge.net/
On Linux I use the script

for i in *.mp3 ;
do sox „$i“ „sample-basename "$i"“ trim 10 30 fade h 1 0 1 ;
done

to convert a whole folders worth of mp3 files to sample files (run the script from the folder). In this example the sample will start 10 seconds into the track, play for 30 seconds, and will fade in and out for 1 second.
The SoX download contains a similar example for Windows.
SoX has a multitude of options and I suggest reading the documentation to get the most out of it.

If you sell both hard copies and virtual versions of your albums, then the track list and sample audio player can be added to the short description of the hard copy provided you follow the naming convention. If your album is ‘The best of WooHoo’ then create products titled ‘The best of WooHoo – Digital Download’ and ‘The best of WooHoo – CD Hardcopy’.

These file naming conventions can be changed by editing the global variables at the top of woo-tlasp.php. There is no options screen.

The audio file sample icon style can be changed by modifying css file css/woo-tlasp.css or overriding the styles in your theme stylesheet.

Screenshots

  • Album product with track list and sample player

Installation

  1. Upload the plugin to your WordPress installation
  2. Activate the plugin through the „Plugins“ menu in WordPress.

FAQ

None

Reviews

3. Mart 2019.
This does exactly what it is supposed to do -find the sample music files and display them for the user to play. The larger files will still be downloaded. Love it. Not a bloated application for once! Thank You! Cathy
Read all 1 review

Contributors & Developers

“Woo Track list and Sample Player” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.2 Fixed display problem with play/pause button
1.0.1 Fixed school boy error ‘wp_enqueue_style was called incorrectly’. Thanks to @mikeill and @learning22