Guest Posted January 28, 2007 Share Posted January 28, 2007 I would like to change the legend skin homepage so that it shows 3 columns of products instead of 2. How can I go about doing this. Thanks, Dbrhet Quote Link to comment Share on other sites More sharing options...
roban Posted January 28, 2007 Share Posted January 28, 2007 When you say "3 columns" are you referring to the Latest Products? If so, use the following hack: 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/{insert skin name}/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 Posted January 28, 2007 Share Posted January 28, 2007 Thanks, It works perfectly. dbrhett I was also wondering if it would be possible to put several products and their descriptions on the index page instead of just the images of the 'latest products' Thanks Dbrhett Quote Link to comment Share on other sites More sharing options...
roban Posted January 28, 2007 Share Posted January 28, 2007 Thanks, It works perfectly. dbrhett I was also wondering if it would be possible to put several products and their descriptions on the index page instead of just the images of the 'latest products' Thanks Dbrhett Is there a reason not to do that through your homepage editor? Quote Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2007 Share Posted January 29, 2007 Roban, How could I call up the brief pictures and descriptions of my choice such as are found in the category listings? dbrhett Quote Link to comment Share on other sites More sharing options...
roban Posted January 29, 2007 Share Posted January 29, 2007 Why would you call them? If you are looking to edit the products in your Latest Products box there is a mod to do this at cubecart.org. If you simply want to add product images and descriptions in your home page box you can do it by creating a table with as many columns and rows as necessary and add your images and descriptions. Other than that I know of no way to 'call' the products. Perhaps someone else would know. Quote Link to comment Share on other sites More sharing options...
Guest americanrandr Posted September 7, 2007 Share Posted September 7, 2007 Is there a way to display the products in the latest products window without the description. Just display the images? 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.