techker Posted October 18, 2011 Share Posted October 18, 2011 Hey guys im installing an x-cart module for my buddy and in the install doc it says 3b. In include/product_modify.php, add: /* BCSE Begin - Advanced Filter module */ if($active_modules['Advanced_Filter']){ include $xcart_dir."/modules/Advanced_Filter/product_modify_get_fields.php"; } /* BCSE End */ Before the last instance of: whats this? if (empty($product_info)) { this is the lines.. if (empty($product_info)) { if ($login_type == 'A') { $providers = func_query("SELECT id, login, title, firstname, lastname FROM $sql_tbl[customers] WHERE usertype='P' ORDER BY login, lastname, firstname"); if (!empty($providers)) { $smarty->assign('providers', $providers); } else { $top_message['content'] = func_get_langvar_by_name('msg_adm_warn_no_providers'); $top_message['type'] = 'W'; $smarty->assign('top_message', $top_message); $top_message = ''; $section = 'error'; /* BCSE Begin - Advanced Filter module */ if($active_modules['Advanced_Filter']){ include $xcart_dir."/modules/Advanced_Filter/product_modify_get_fields.php"; } /* BCSE End */ } } else { $product_owner = $logged_userid; } } else { $product_owner = addslashes($product_info['provider']); } if (!empty($product_owner)) { $provider_info = func_query_first("SELECT id, login, title, firstname, lastname FROM $sql_tbl[customers] WHERE id='$product_owner' AND usertype IN ('P','A')"); $smarty->assign('provider_info', $provider_info); } $gdlib_enabled = func_check_gd(); $generate_thumbnail = ''; if ($REQUEST_METHOD == 'POST') { Quote Link to comment https://forums.phpfreaks.com/topic/249344-install-module-line/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.