You are here:
Actually found that the above method was clearing out the session for some reason.
Instead find line 68 and replace with:
// Offer the product as a download
$path_parts = pathinfo($file_path);
$file_name = $path_parts;
if (ini_get(‘allow_url_fopen’) == ‘1’)