When I click to update the order after editing, I get a blank page.
Logs say:
Code:
[09-Mar-2015 12:26:48] [09-Mar-2015 12:37:45] PHP Fatal error: Call to undefined function validate_for_category() in /home/sjenkins/public_html/shop/saffire_admin/includes/functions/extra_functions/edit_orders_functions.php on line 331
Here's what is in that section:
Code:
$allow_for_category = validate_for_category($product_id, $coupon_id);
$allow_for_product = validate_for_product($product_id, $coupon_id);
// echo '#'.$product_id . '#' . $allow_for_category;
// echo '#'.$product_id . '#' . $allow_for_product;
if ($allow_for_category == 'none') {
if ($allow_for_product === 'none') return true;
if ($allow_for_product === true) return true;
if ($allow_for_product === false) return false;
}
if ($allow_for_category === true) {
if ($allow_for_product === 'none') return true;
if ($allow_for_product === true) return true;
if ($allow_for_product === false) return false;
}
if ($allow_for_category === false) {
if ($allow_for_product === 'none') return false;
if ($allow_for_product === true) return true;
if ($allow_for_product === false) return false;
}
return false; //should never get here
}
}
Any ideas?
Bookmarks