jerseyjoe Posted June 20, 2007 Share Posted June 20, 2007 When creating new products, it's tedious to click "no" on every entry. I've looked but can't find the code that would change the default. Help, please? TIA Quote Link to comment Share on other sites More sharing options...
Guest webicon Posted June 21, 2007 Share Posted June 21, 2007 Hi Jersey Jo - I did this on mine for the same reason... Go to: Admin > Products>index.php Find these lines <select name="showFeatured" class="textbox"> <option value="1" <?php if(isset($results[0]['showFeatured']) && $results[0]['showFeatured']==1) echo "selected='selected'"; ?>><?php echo $lang['admin']['yes'];?></option> <option value="0" <?php if(isset($results[0]['showFeatured']) && $results[0]['showFeatured']==0) echo "selected='selected'"; ?>><?php echo $lang['admin']['no'];?></option> </select> then just re-order so that the 'No' option is above the 'Yes' option... <select name="showFeatured" class="textbox"> <option value="0" <?php if(isset($results[0]['showFeatured']) && $results[0]['showFeatured']==0) echo "selected='selected'"; ?>><?php echo $lang['admin']['no'];?></option> <option value="1" <?php if(isset($results[0]['showFeatured']) && $results[0]['showFeatured']==1) echo "selected='selected'"; ?>><?php echo $lang['admin']['yes'];?></option> </select> (Hopefully this doesnt qualify as a 'Mod' and won't get into trouble for posting! ) Quote Link to comment Share on other sites More sharing options...
jerseyjoe Posted June 21, 2007 Author Share Posted June 21, 2007 Thank you - and with apologies to Ogden Nash I met a mod upon the stair, The little mod who wasn't there. He wasn't there again today. Gee, I wish he'd go away! Joe Quote Link to comment 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.