This mod, resolves that by providing a 404 error if the configuration variable for:
Admin > Store Settings > Display > Show Product's Brand? is set to No
Open: includes/classes/class.brands.php
Find:
Code: Select all
$brand = MakeURLNormal($brand);
// Get the link to the "all brands" page
$GLOBALS['AllBrandsLink'] = BrandLink();
Code: Select all
// MOD: Show 404 if show brands is not enabled
if(!$GLOBALS['ISC_CFG']['ShowProductBrand']) {
$GLOBALS['ISC_CLASS_404'] = GetClass('ISC_404');
$GLOBALS['ISC_CLASS_404']->HandlePage();
exit;
}
// MOD END