Brivtech - and ALL the moderators here - kudos to you all, you do a fantastic job and are a great lot of guys and gal(s)
To those who are relatively new, believe me, the forum here is really a much better place for the rules. The rules here are not arbitrary, but were developed over time out of necessity.
As for helpful info in this thread, here is some more, to whom it may concern:
First, "How does the Featured Product box work in CubeCart?"• Featured Product is actually a random product taken from inventory on each page reload
• On homepage, the random product is taken from the list of all products in inventory
• When browsing the store, the random product is taken from the current category you are browsing.
• When you browse a category that contains no products, the featured product box will disappear
Second, "How may I exclude a single product from ever showing in Featured Product box?"• Using a text editor, find and open the file,
includes/boxes/randomProd.inc.php
• FIND the following block of code within that file, about lines 39 - 47:
CODE
if(isset($_GET['catId'])){
$whereClause = "WHERE cat_id=".$db->mySQLSafe($_GET['catId']);
} else {
$whereClause = "";
}
• ALTER that code as indicated in red below:
if(isset($_GET['catId'])){
$whereClause = "
WHERE productId != 10 AND cat_id=".$db->mySQLSafe($_GET['catId']);
} else {
$whereClause = "
WHERE productId != 10";
}
• CHANGE the number
10 to the actual productId number of the product you wish to exclude
• SAVE, CLOSE and UPLOAD the file to your store
• Note: Take care the difference between productId and productCode
Third, "How do I Gain Total Control Over this Box?"
There are a great number of useful tweaks for this in the form of free and paid mods and little tweaks, all of which pretty much has been discussed repeatedly in this forum, try searching and reading topics for featured product and random product and you may find a great deal of info. Also, as written above, you may discuss this more freely in third party forums like Cubecartforums.org adn you may find direct links to mods by looking there and by searching google.
A free mod was published well over a year ago by a person whom i do not believe is active any longer in the forums, but it is a very simple modifiaction involving adding one field to the database, then choosing to add or remove any product from the random products function in the admin add.edit product screen.
Good luck and enjoy CubeCart! 