Delete featured products from Admin.
You may think this change fits better in "Remove Market from admin frontend." section, but featured products make a call to Osclass to get the product list.
Open the following file:
Locate and remove this code:
$aFeatured = array();
$out_featured = osc_file_get_contents(osc_market_featured_url('plugins', 3));
$array_featured_plugins = (array) json_decode($out_featured, true);
$out_featured = osc_file_get_contents(osc_market_featured_url('themes', 3));
$array_featured_themes = (array) json_decode($out_featured, true);
$this->_exportVariableToView("aFeatured",
array_merge($array_featured_plugins, $array_featured_themes));
Open the following file:
oc-admin/themes/modern/main/index.phpRemove each one of this blocks of code:
$aFeatured = __get('aFeatured');osc_register_script('market-js',
osc_current_admin_theme_js_url('market.js'), array('jquery', 'jquery-ui'));
osc_enqueue_script('market-js');
osc_add_hook('admin_header','add_market_jsvariables');Last updated
Was this helpful?