This is for CubeCart 3.
Overview:
This mod will allow you to choose which products are shown in your Featured Product box. This is a quick and easy solution, very easy install, but please note that when you want to change the list of products which are shown featured, you will need to modify a source file (ie. download it, modify it and upload it).
Instructions:
Gather the product IDs for all of the products which you want shown in the Featured Product box.
Edit includes/boxes/randomProd.inc.php. Look for this code block:
if(isset($_GET['catId'])){ $whereClause = "WHERE cat_id=".$db->mySQLSafe($_GET['catId']); } else { $whereClause = ""; }
Insert the following block of code after it, changing the "2, 4, 50, ..." to your list of comma separated product IDs:
$prodIdArray = array(2, 4, 50, ...); for ($i=0; $i<count($prodIdArray); $i++) { if ($i==0) { $whereClause = "WHERE productId=".$prodIdArray[$i]; } else { $whereClause .= " OR productId=".$prodIdArray[$i]; } }
(Based on 1 Reviews)
Add to Registry Add to Wish List Price: $0.00
Copyright © 2005 - 2009 Estelle Winterflood. Designed Lovingly by Projeto