My current setup is SMF 2.0 RC4 and SMFShop by Createaforum.com plugin
Problem
One of our downloadable item is not working because $smcFunc variable is not present in filedownload.php file from SMFShop.
Solution
Modify the code to fix the bug.
BEFORE:
$smcFunc['db_query'](”, ‘
DELETE FROM {db_prefix}shop_inventory
WHERE id = {int:id}’,
array(
‘id’ => $_GET['id'],
));
AFTER:
$id = $_GET['id'];
mysql_query(“DELETE FROM smf_shop_inventory WHERE id = $id”);
Result
Item can now be downloaded and the purchased item is also deleted. Case closed.