WalterL48 Posted September 30, 2006 Share Posted September 30, 2006 To make entering products easier I want to change the default selection to "No" for "Include in latest products in homepage?" That way after entering the Stock Level I can just hit ENTER and go to the next one. Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted October 1, 2006 Share Posted October 1, 2006 Yup, I did this ages ago. Just edit admin/products/index.php and reverse the order of the 2 options. Change it to: <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> (normally, option value="1" is above the other. I just cut and pasted it below the other instead. Quote Link to comment Share on other sites More sharing options...
WalterL48 Posted October 1, 2006 Author Share Posted October 1, 2006 Thanks Mysty! You wouldn't believe it, but I did this before and for some reason when I DID want to select YES it wouldn't add the item. Now it seems to work though. GO FIGURE!!!! Thanks again. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 1, 2006 Share Posted October 1, 2006 You probably accidentally deleted something you shouldn't have - like the end /select or something silly. It's easy to do when you modify something :( Quote Link to comment Share on other sites More sharing options...
WalterL48 Posted October 4, 2006 Author Share Posted October 4, 2006 I took this one step further by moving the "Tax Class" After the "Stock Level". This saves me another keystroke! Moved this code: ........................................................... <tr> <td class="tdText"><strong><?php echo $lang['admin']['products']['tax_class'];?></strong></td> <td class="tdText"> <select name="taxType"> <?php $taxTypes = $db->select("SELECT * FROM ".$glob['dbprefix']."CubeCart_taxes"); ?> <?php for($i=0; $i<count($taxTypes);$i++){ ?> <option value="<?php echo $taxTypes[$i]['id']; ?>" <?php if(isset($results[0]['taxType']) && $taxTypes[$i]['id'] == $results[0]['taxType']) echo "selected='selected'"; ?>><?php echo $taxTypes[$i]['taxName']; ?> (<?php echo $taxTypes[$i]['percent']; ?>%)</option> <?php } ?> </select> </td> </tr> ............................................................ 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.