Hi
onBeforeDownloadFile(&$filename,&$do,&$file)
This function will be triggered by HikaShop before a file download.
- $filename is the path to the file, you can change it's value.
- $do allows you to cancel the download if you set it to false
- $file is an object containing the information about the file.
To understand all you code i need t understand the context  where ( location) and when ( step process) the plugin code is trigger .
1) I mean which code in hikashop  make the call to the plugin :   I think a click on a specific link in the web browser client side ?
2) If i don't want to use xdebug  and want to go to the documentation way :  where i can find information about the structure ( array ) of the variable $file ?
3) what mean {secure} ? a dynamic parameter that ll be compute/replace  by the plugin code  ?
4) All argument use 
	&$
  a global context like javascript context ( windows) !!!. does it mean all original value store in variable can be change (
 write/read mode )  ?
regard's