Guest Owain Posted November 28, 2006 Share Posted November 28, 2006 Why don't my categories line up with each other? http://www.tractionkiting.co.uk/shop/index...Cat&catId=2 Cheers, O. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 28, 2006 Share Posted November 28, 2006 Sorry but your link isn't working so I cannot tell you. Quote Link to comment Share on other sites More sharing options...
roban Posted November 28, 2006 Share Posted November 28, 2006 Is that version 2 or 3? If version 3 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/{insert skin name}/styleTemplates/content/index.tpl replace all code between <!-- BEGIN: repeat_prods --> and <!-- END: repeat_prods --> including those two lines above with this 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 Owain Posted November 28, 2006 Share Posted November 28, 2006 ye its version 3. Here is the url again : HERE I still have one product taking an entire line up itself in the middle for some reason. O. Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 28, 2006 Share Posted November 28, 2006 an easy fix with a height setting for the subcat division, O. I am sending PM with link to tutorial that will help you, provided you haven't already add the php fix that roban posted. Quote Link to comment Share on other sites More sharing options...
Guest Owain Posted November 28, 2006 Share Posted November 28, 2006 an easy fix with a height setting for the subcat division, O. I am sending PM with link to tutorial that will help you, provided you haven't already add the php fix that roban posted. Yip cheers, Mark, sorted now, also resized the images to the same height and everything is looking good. One more question still related to this, how can I change the order the products are displayed? The different models go up depending on experience so I would like the imp first and then fury and so on... O. Quote Link to comment Share on other sites More sharing options...
Guest Owain Posted November 29, 2006 Share Posted November 29, 2006 One more question still related to this, how can I change the order the products are displayed? The different models go up depending on experience so I would like the imp first and then fury and so on... O. Is there a way to change the product list from alphabetic to ID number ordering? O. Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 29, 2006 Share Posted November 29, 2006 "product list"? Are we to assume this is the product list on the viewCat page? If so, change the sql query in includes/viewCat.inc.php to order by id Quote Link to comment Share on other sites More sharing options...
Guest Owain Posted November 30, 2006 Share Posted November 30, 2006 "product list"? Are we to assume this is the product list on the viewCat page? If so, change the sql query in includes/viewCat.inc.php to order by id Hi Mark, I have installed a mod from cubecart.org which allows me to change the order of the products perfectly. Thanks again, O. 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.