This one, on the other hand, just cropped up recently on a client's site when he was editing an order with a restricted coupon:
The line number's most likely not going to match because I've kept this site up-to-date with the EO bug-fixes as they're reported. To correct the issue, I edited /admin/includes/functions/extra_functions/edit_orders_functions.php, conditionally adding the function defined in the store-front's /includes/functions/functions_categories.php as highlighted below:Code:PHP Fatal error: Call to undefined function zen_product_in_category() in /home/mysite/public_html/admin/includes/functions/extra_functions/edit_orders_functions.php on line 326
Code://-bof-20160128-lat9-Forum bugfix if (!function_exists ('zen_product_in_category')) { function zen_product_in_category($product_id, $cat_id) { global $db; $in_cat=false; $category_query_raw = "select categories_id from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . (int)$product_id . "'"; $category = $db->Execute($category_query_raw); while (!$category->EOF) { if ($category->fields['categories_id'] == $cat_id) $in_cat = true; if (!$in_cat) { $parent_categories_query = "select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . $category->fields['categories_id'] . "'"; $parent_categories = $db->Execute($parent_categories_query); //echo 'cat='.$category->fields['categories_id'].'#'. $cat_id; while (!$parent_categories->EOF) { if (($parent_categories->fields['parent_id'] !=0) ) { if (!$in_cat) $in_cat = zen_product_in_parent_category($product_id, $cat_id, $parent_categories->fields['parent_id']); } $parent_categories->MoveNext(); } } $category->MoveNext(); } return $in_cat; } } //-eof-20160128-lat9 // Start Edit Orders configuration functions function eo_debug_action_level_list($level) { global $template;


Reply With Quote

