Represents a file in a downloadable product.
Objects of this class are available through the Shop_Product::$files property.
See the Creating the Order Details page article for examples of the class usage.
Returns an URL for downloading the file.
Use this function to create links to product files.
Please refer the Creating the Order Details page
article for details of the method usage. In the default implementation customers can only download files from products which belong
to paid orders. You can develop a custom file download page as it is described in the
Integrating downloadable products article.
By default the built-in URL /download_product_file used for product downloadable files.
The $custom_download_url parameter allows to specify an URL of a custom file download page.
A custom download URL should should be specified relative to LemonStand root address, without the
subdirectory prefix: /custom_download_page