You could try editing /includes/extra_cart_actions/restrict_digital_downloads.php, adding (temporarily) the code in red. That will at least give us a clue as to what's going on:
Code:
// -----
// Part of the "Restrict Digital Downloads" plugin by Cindy Merkin ([email protected])
// Copyright (c) 2014 Vinos de Frutas Tropicales
//
switch ($_GET['action']) {
/*----
** If a product is being added to the cart and that product includes attributes (the $_POST['id'] array
** is set), then check each of the attributes being added to see if there is a download/virtual product amongst them. If so,
** don't allow the duplicate download/virtual product to be added to the cart ... or just add 1 if this is the original add.
*/
case 'add_product': {
error_log (__FILE__ . ':' . print_r ($_POST, true));
if ($_SESSION['is_restricted_ip'] && isset($_POST['products_id']) && $_POST['cart_quantity'] > 0 && isset($_POST['id']) && is_array($_POST['id'])) {
foreach($_POST['id'] as $option => $value) {
if (is_digital_download ($_POST['products_id'], $option, $value)) {
$messageStack->add ('header', sprintf (CART_MESSAGE_DOWNLOAD_PRODUCT_RESTRICTED, zen_get_products_name ($_POST['products_id'])), 'caution');
unset ($_GET['action']);
break;
}
}
}
break;
}
}
Bookmarks