Jump to content

Modify "Include in latest products in homepage?"


WalterL48

Recommended Posts

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.

Link to comment
Share on other sites

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>

............................................................

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...