ec_return_product_fileWhat it does:
Returns a file for the product in the calling url.Defined in: /web/philip/tcl/ecommerce-defs.tcl
Source code:
# Get file_path from url set url [ns_conn url] regexp {/product-file/([^/]+)$} $url match file_path set full_path "[ad_parameter EcommerceDataDirectory ecommerce][ad_parameter ProductDataDirectory ecommerce]$file_path" ns_returnfile 200 [ns_guesstype $full_path] $full_path