Ajeh, thanks for the continued testing! The correction for that boo-boo is simple, just comment out the virtual-product check in the ldProductIsDownload function of /includes/extra_cart_actions/limit_downloads.php:
Code:
function ldProductIsDownload ($products_id, $options_id, $options_value_id) {
global $db;
//-v1.1.2d if (zen_get_products_virtual($products_id)) return true;
$sql = "SELECT count(*) as count
FROM " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
WHERE pa.products_id = " . (int)$products_id . "
AND pa.options_id = " . (int)$options_id . "
AND pa.options_values_id = " . (int)$options_value_id . "
AND pa.products_attributes_id = pad.products_attributes_id";
$sql_result = $db->Execute($sql);
return ($sql_result->fields['count'] > 0) ? true : false;
}
I'll get this packaged up (again ...)
Bookmarks