Author Topic: Adding downloadable zip files wih product  (Read 4794 times)

myplace2100

  • Jr. Member
  • **
  • Posts: 50
    • Tech and extensions
  • Skype Name: mridulcs
Re: Adding downloadable zip files wih product
« Reply #15 on: August 03, 2013, 22:58:22 pm »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 204
Re: Adding downloadable zip files wih product
« Reply #16 on: August 03, 2013, 23:15:55 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

  • Jr. Member
  • **
  • Posts: 50
    • Tech and extensions
  • Skype Name: mridulcs
Re: Adding downloadable zip files wih product
« Reply #17 on: August 03, 2013, 23:44:58 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
Re: Adding downloadable zip files wih product
« Reply #18 on: August 04, 2013, 11:49:22 am »
... it would be great if you could share your results with others, too.
For an interesting price of course! ;D