News:

Looking for documentation? Take a look on our wiki

Main Menu

Adding downloadable zip files wih product

Started by myplace2100, August 01, 2013, 15:41:16 PM

Previous topic - Next topic

myplace2100

reinhold
Hehe i am quite fair about that.What download plugin you using if available to get online? i went through the spiral plugin for download and it seems good and yes complexity is high.
now what my final plan is - i am going to set condition in the components\com_virtuemart\views\productdetails\tmpl\default_customfields.php file so that download link appears only if the current user order status is confirmed.
joomla & wordpress extension developer

reinhold

Quote from: myplace2100 on August 03, 2013, 22:58:22 PM
Hehe i am quite fair about that.What download plugin you using if available to get online? i went through the spiral plugin for download and it seems good and yes complexity is high.
now what my final plan is - i am going to set condition in the components\com_virtuemart\views\productdetails\tmpl\default_customfields.php file so that download link appears only if the current user order status is confirmed.

I initially also tried the (paid) spiral plugin, but then I wanted the download link to also appear on the product page and to have a "Your downloads" page for each user, where all available downloads of the logged-in user are displayed. So I wrote my own "Downloads for Sale" plugin: http://www.open-tools.net/virtuemart-2-extensions/vm2-downloads-for-sale.html

The problem with simply hiding the download link in the productdetails view is that the file can still be downloaded if the user knows the URL. In particular, if an order is later refunded or cancelled, the user will still be able to download with the old link.
The check for the order status really needs to be added to the download step, too (and to the link display).

myplace2100

hi reinhold
Thanks for identifying url leak.I will set condition in file download function in plugin's php file so it will also check order status for current logged in user is confirmed or not.I want to hear other leaks if any i missed.

Thanks
joomla & wordpress extension developer

Maxim Pishnyak

#18
Quote from: reinhold on August 03, 2013, 22:45:02 PM
... it would be great if you could share your results with others, too.
For an interesting price of course! ;D
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart