solved Downloading media after purchase

alt=
DannyA
@dannya
10 years ago
584 posts
After user completes a purchase and clicks on the 'download' button on the cart purchases page, I get an error "Error: mp3 files are restricted to streaming only". If I try to download the zip file, it is empty. The song is definately in the profile though and can be played while browsing.

Am i missing a setting somewhere?
updated by @dannya: 05/20/14 09:31:21PM
michael
@michael
10 years ago
7,719 posts
The user should be able to download them after, purchasing them, from their "My Items" section:

YOUR-SITE.com/foxycart/items

There should be a 'Download' next to the items they have purchased.
alt=
DannyA
@dannya
10 years ago
584 posts
Please see the original question. The problem IS when I click the download button
brian
@brian
10 years ago
10,148 posts
andersda:
Please see the original question. The problem IS when I click the download button

The MP3 download restriction is only in place on the "normal" download that is provided by the core. When in the My Files section, downloads go through the vault_download view from the FoxyCart module. If you have customized your My Files view, make sure you are using the correct download URL.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
From steve:
Hi Danny,

Yes, all 3 were copies of jrAudio. Changes to jrAudio were merged in every month or two, they have the download file listener, and they should still worked with foxycart as well.

The button in MyFiles is created by jrFoxyCart smarty_function_jrFoxyCart_my_items_download_button

Check that the url of the download is correctly formed - this is the line from foxycart which creates the url:
$download_url = $_conf['jrCore_base_url'] . '/' . jrCore_get_module_url($_rt['purchase_module']) . '/vault_download/' . $_rt['purchase_field'] . '/' . $_rt['purchase_item_id'];

If the forms are still being recreated in the skin, check that they contain all the necessary foxycart data. That would be added by foxycart to the normal forms created by the modules, but might not be there in the skin "recreated" forms.

Steve
alt=
DannyA
@dannya
10 years ago
584 posts
Also from Steve,

Note that the vault_download is a magic view provided by the foxycart module, and the purchase field is audio_file, not song_file (I am assuming that the purchase field is the field type for the file, I haven’t checked). All 3 modules used the audio file field, not their own field type.

Thanks steve
sbhadauria
@sbhadauria
10 years ago
129 posts
Hi guys I am able to download single file but when I download all files as a zip then we have not found any files. Any Idea?
sbhadauria
@sbhadauria
10 years ago
129 posts
I have resolved the issue.
I have update the path of downloadable files in view_jrFoxyCart_items action of index.php file of foxycart module.

Tags