Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › MP3 preview with Audio player – File Not Found
Tagged: audio player, mp3 preview, mp3 sales, preview, search shortcode
- This topic has 9 replies, 5 voices, and was last updated 11 years, 3 months ago by Brodephat.
-
AuthorPosts
-
March 16, 2011 at 3:05 pm #2962RinaldoMember
Hi,
Installed the Audio Player plugin, the player appears on the page and I verified the link to the audio folder location in the AP settings successfully.
Still get the above message when starting the player. Any ideas please ???
Thank You
Rinaldo
March 16, 2011 at 11:11 pm #30275wpCommerceModeratorYou don’t have to configure any Audio Player settings.
You can use the following eStore shortcode to display the player-
[wp_eStore_audio_player src = "http://www.example.com/auido/test.mp3"]
Replace the src with your actual mp3 URL. You need to have the eStore extra shortcode plugin installed to use this shortcode. All the shortcodes and the plugin can be found here:
Please also post a link to the page where you have the player.
March 18, 2011 at 9:54 pm #30276RinaldoMemberThanks, I am having the extra short code plugin installed, I am using this shortcode though: [wp_eStore_fancy7 id=1] and this works well on my local WP installation, just not online.
I have tried the code with link and the result is the same . File Not Found. The file is in the WP Media Library and I also checked that its actually there. I am clueless ….
I have another question regarding the product search code [wp_eStore_product_search]
It finds products, but presents them w/o a hyperlink, which makes the whole exercise for the user quiet useless. Is there a way to solve this problem?
Thank you!
March 19, 2011 at 12:00 am #30277wpCommerceModeratorCan you please post the URL of the file which you have in the WP Media Library?
If the product has any “Product Page URL” specified then it converts the name to a link to that page. Otherwise how do you think someone will find that product?
But if you don’t want to show the link you can tweak the code. Please open the
eStore-extra-shortcodes.php
and search for the following line:$output .= '<tr><td><a href="'.$wp_eStore_db->product_url.'">'.$wp_eStore_db->name.'</a></td><td>'.print_digi_cart_payment_currency($wp_eStore_db->price, WP_ESTORE_CURRENCY_SYMBOL, ".").'</td></tr>';
Once you find it replace with the following line:
$output .= '<tr><td>'.$wp_eStore_db->name.'</td><td>'.print_digi_cart_payment_currency($wp_eStore_db->price, WP_ESTORE_CURRENCY_SYMBOL, ".").'</td></tr>';
March 21, 2011 at 11:00 am #30278RinaldoMemberThe mp3 url : http://gotarda.com/wp/wp-content/uploads/Piano_Sonata_Begin.mp3
I assume my hoster does something with the url since it works on Xampp?
Re. to search function: The only somewhat similar code DWeaver finds in above php (v3.9.1) is this :
$output .= ‘<tr><td>product_url.'”>’.$wp_eStore_db->name.’</td><td>’.$curr_symbol.number_format($wp_eStore_db->price,2).'</td></tr>’;
}
else
{
$output .= ‘<tr><td>’.$wp_eStore_db->name.'</td><td>’.$curr_symbol.number_format($wp_eStore_db->price,2).'</td></tr>’;
And my Finder cant find any other file containing above code ??
March 21, 2011 at 4:38 pm #30279RinaldoMemberSorry and thank you for this simple trick, apparently my WP Media Library produced/shows a false URL. I dont understand how this can happen since I cant change it manually. [wp_eStore_fancy7 id=1] works also fine now.
Regarding the code you gave me for the product search though, I am sure it doesnt exist in my eStore-extra-shortcodes.php, …WP_ESTORE_CURRENCY_SYMBOL does exist in shortcode_include.php though !?
March 22, 2011 at 12:39 am #30280amin007ParticipantMake sure to get a latest build of the extra shortcodes plugin from here (the code may have changed):
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
August 15, 2013 at 1:52 pm #30281BrodephatSpectatorThis is an old topic but what I’m experiencing could be similar:
Everything is working fine however I do notice that when using the audio player within the product description, it wants to play the audio file that is also the digital product I’m selling instead of the mp3 file url specified in the player shortcode.
I know this from looking at the rendered source code. I like to put my downloadable audio products above the domain for protection and use a sample of the song for preview.
To see this visit and view the source code:
[http://www.roderickcarter.com/jessie-obanner-united-voices-of-worship]
Most people when selling music, want to protect the mp3 product by only allowing the visitor to hear a sample (which could be another mp3 file itself)
I’m trying to do just that but when I look at the source code I can see that the player is trying to reference the protected mp3 and not the sample mp3 listed in the shortcode.
Any advise on this?
Thanks,
Roderick
August 16, 2013 at 12:10 am #30282adminKeymasterHi Roderick, you are correct but you are using the one estore product display template that is not for you
The fancy 8 template was designed after getting requests from users who wanted to play the same file that is specified in the digital file URL field (basically for lazy users). They are okay with the mp3 file’s security compromise.
So I would recommend you to use fancy 9 template and you should be good. This one will render the audio player shortcode that you enter in the description section of the product (this will be used for preview).
Here is a reference to the fancy display templates:
http://www.tipsandtricks-hq.com/ecommerce/stylish-product-display-options-for-wp-estore-829
August 22, 2013 at 2:17 am #30283BrodephatSpectatorThanks, that did it.
-
AuthorPosts
- You must be logged in to reply to this topic.