Guest jmn0426 Posted August 7, 2006 Share Posted August 7, 2006 I have a total of 6 items in my products list that i have selected "yes" to display in the latest items list, but only 3 of them show up. no matter how many i select, i keep getting the same three and thats it. i have looked to see if there is a setting some where to limit it to three but do not see anything. anyone have any thoughts on this? Quote Link to comment Share on other sites More sharing options...
roban Posted August 7, 2006 Share Posted August 7, 2006 May we have a URL please? How many categories have you/ Quote Link to comment Share on other sites More sharing options...
Guest jmn0426 Posted August 7, 2006 Share Posted August 7, 2006 May we have a URL please? How many categories have you/ sorry. the temp url is http://gastrucks.com.lsh0103.uslec.net/store/ currently 138 items / 18 categories ( and growing ). Quote Link to comment Share on other sites More sharing options...
roban Posted August 8, 2006 Share Posted August 8, 2006 Try this: In the includes/content/index.inc.php find this line: for($i=0;$i<count($latestProducts);$i++){ Replace with this code $across=4; $index->assign("TW",100/$across); for($i=0;$i<count($latestProducts);$i++){ if (!(($i+1) % $across)) { $index->assign("TXT_TR","</tr><tr>"); } else { $index->assign("TXT_TR",""); } in skins/Killer/styleTemplates/content/index.tpl replace all code between <!-- BEGIN: repeat_prods --> and CODE <!-- END: repeat_prods --> including those two lines above with this code CODE <table width="100%" border="0"><tr> <!-- BEGIN: repeat_prods --> <td width="{TW}%"> <div style="float: center; text-align: center;"> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a> <br /> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a> <br /> {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span> </div> </td> {TXT_TR} <!-- END: repeat_prods --> </tr></table> The $across variable is used to specify number products across. Quote Link to comment Share on other sites More sharing options...
Guest jmn0426 Posted August 8, 2006 Share Posted August 8, 2006 Try this: In the includes/content/index.inc.php find this line: for($i=0;$i<count($latestProducts);$i++){ Replace with this code $across=4; $index->assign("TW",100/$across); for($i=0;$i<count($latestProducts);$i++){ if (!(($i+1) % $across)) { $index->assign("TXT_TR","</tr><tr>"); } else { $index->assign("TXT_TR",""); } in skins/Killer/styleTemplates/content/index.tpl replace all code between <!-- BEGIN: repeat_prods --> and CODE <!-- END: repeat_prods --> including those two lines above with this code CODE <table width="100%" border="0"><tr> <!-- BEGIN: repeat_prods --> <td width="{TW}%"> <div style="float: center; text-align: center;"> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a> <br /> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a> <br /> {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span> </div> </td> {TXT_TR} <!-- END: repeat_prods --> </tr></table> The $across variable is used to specify number products across. first off THANKS FOR ALL YOUR HELP SO FAR! now.. i changed the code, but all it did was spread out the 3 items to fill the box ( which is good ) but it does not show four items even though i set it to show 4 and it does not show a second line ( or third line ). josh Quote Link to comment Share on other sites More sharing options...
markscarts Posted August 8, 2006 Share Posted August 8, 2006 There is a setting in ACP, look again, you have missed it. You can tell he store exactly how many latest prods to show on that page P.S. - don't be offended by the rolleyes. They are for YOU and also for my good buddy, Roban :D Quote Link to comment Share on other sites More sharing options...
roban Posted August 8, 2006 Share Posted August 8, 2006 There is a setting in ACP, look again, you have missed it. You can tell he store exactly how many latest prods to show on that page P.S. - don't be offended by the rolleyes. They are for YOU and also for my good buddy, Roban LMAO. I think he's already looked there (roban says hopefully) Quote Link to comment Share on other sites More sharing options...
markscarts Posted August 8, 2006 Share Posted August 8, 2006 Re-read the post Robert :rolleyes: Quote Link to comment Share on other sites More sharing options...
Guest jmn0426 Posted August 8, 2006 Share Posted August 8, 2006 Re-read the post Robert strange.. i changed it back to 3 saved it then to 12 and it seems to be working now. thanks again to all that helped. josh Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted August 8, 2006 Share Posted August 8, 2006 I am sure someone gained from the code above :rolleyes: 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.