Guest Posted December 1, 2005 Share Posted December 1, 2005 Hello, I'm wondering if I can put the categories on the frontpage, the way latest products are displayed centered bud then with thumbs of the categorie displayed? I'm using killer skin. Looked everywhere. Thanks, Loua Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted December 2, 2005 Share Posted December 2, 2005 Moved, here you will get a better chance of reply :lol: Quote Link to comment Share on other sites More sharing options...
Guest Posted December 4, 2005 Share Posted December 4, 2005 Hi, yeah thanks for changing, bud don't think its better of here tho. Changed the query's in index.inc, and some output parameters working fine now thanks anyway. Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 4, 2005 Share Posted December 4, 2005 Can you give a detailed explianation of what you did to get the results for others who also wish to do this... Quote Link to comment Share on other sites More sharing options...
Guest Posted December 5, 2005 Share Posted December 5, 2005 Hi, yes i'm planning to put it on here for others. I do it ASAP. :) Quote Link to comment Share on other sites More sharing options...
Guest Posted December 6, 2005 Share Posted December 6, 2005 Hello, To put the categories on the frontpage I did the following. In ../yourroot/includes/content/index.inc.php look for this line: $latestProducts = $db->select("SELECT productId, image, price, name, sale_price FROM ".$glob['dbprefix']."CubeCart_inventory WHERE `showFeatured` = 1 ORDER BY productId DESC LIMIT ".$config['noLatestProds']); #### Change that query for this one: $latestProducts = $db->select("SELECT cat_id, cat_image, cat_name FROM ".$glob['dbprefix']."CubeCart_category ORDER BY cat_id DESC "); #### Now look for: if(($val = prodAltLang($latestProducts[$i]['productId'])) == TRUE){ #### Change "productId" field for "cat_id" like this: if(($val = prodAltLang($latestProducts[$i]['cat_id'])) == TRUE){ #### Now look for: $latestProducts[$i]['name'] = $val['name']; #### Change the "name" field for "cat_name": $latestProducts[$i]['cat_name'] = $val['cat_name']; #### Look for: if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$latestProducts[$i]['image'])){ $index->assign("VAL_IMG_SRC",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$latestProducts[$i]['image']); #### Change "image" field: if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$latestProducts[$i]['cat_image'])){ $index->assign("VAL_IMG_SRC",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$latestProducts[$i]['cat_image']); #### Look for "productId" field in the rest of de script and change that for "cat_id". Change "name" for "cat_name". Go to ../yourroot/skins\Killer\styleTemplates\content And in index.tpl change both links: <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"> #### For: <a href="index.php?act=viewCat&catId={VAL_PRODUCT_ID}"> Maybee you want to change some layout stuff here aswell. Thats it! Speak to you later <_< Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 6, 2005 Share Posted December 6, 2005 That is a very quick hack which sneeks the category information in place of latest products information. It should work well and fast and easy. Note, I am also working on cats on homepage right now, and will leave the latest prods coding alone in my version. That way, you can either have both on the homepage, or you can turn latest prods off in ACP and have categories only <_< Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted December 6, 2005 Share Posted December 6, 2005 Thanks Loua, very good job done I have added this here for other users that seek this solution to find. <_< Quote Link to comment Share on other sites More sharing options...
Guest Posted December 9, 2005 Share Posted December 9, 2005 Sure, Hopefully it's usefull for someone else. Later L Quote Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2005 Share Posted December 19, 2005 Hello! I made the changes suggested here but have a few problems. The categories are shown in the frontpage but with very small pictures and the link is not working. my webpage is www.precioestrella.com/tiendamayorista I'd appreciate your help (anybody's help!!!) Anopther thing is: what if I also want to have my latest products shown? isn't there a way to put the categories in the front page without subtituting all the codes for the latest products. Thanks to all in advance Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 19, 2005 Share Posted December 19, 2005 There is a way to do this correctly, contact me Via PM for more details and i can sort you out with the mod ;) Quote Link to comment Share on other sites More sharing options...
Guest rey1 Posted November 19, 2006 Share Posted November 19, 2006 Hello, To put the categories on the frontpage I did the following. In ../yourroot/includes/content/index.inc.php look for this line: $latestProducts = $db->select("SELECT productId, image, price, name, sale_price FROM ".$glob['dbprefix']."CubeCart_inventory WHERE `showFeatured` = 1 ORDER BY productId DESC LIMIT ".$config['noLatestProds']); #### Change that query for this one: $latestProducts = $db->select("SELECT cat_id, cat_image, cat_name FROM ".$glob['dbprefix']."CubeCart_category ORDER BY cat_id DESC "); #### Now look for: if(($val = prodAltLang($latestProducts[$i]['productId'])) == TRUE){ #### Change "productId" field for "cat_id" like this: if(($val = prodAltLang($latestProducts[$i]['cat_id'])) == TRUE){ #### Now look for: $latestProducts[$i]['name'] = $val['name']; #### Change the "name" field for "cat_name": $latestProducts[$i]['cat_name'] = $val['cat_name']; #### Look for: if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$latestProducts[$i]['image'])){ $index->assign("VAL_IMG_SRC",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$latestProducts[$i]['image']); #### Change "image" field: if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$latestProducts[$i]['cat_image'])){ $index->assign("VAL_IMG_SRC",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$latestProducts[$i]['cat_image']); #### Look for "productId" field in the rest of de script and change that for "cat_id". Change "name" for "cat_name". Go to ../yourroot/skins\Killer\styleTemplates\content And in index.tpl change both links: <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"> #### For: <a href="index.php?act=viewCat&catId={VAL_PRODUCT_ID}"> Maybee you want to change some layout stuff here aswell. Thats it! Speak to you later Hello, To put the categories on the frontpage I did the following. In ../yourroot/includes/content/index.inc.php look for this line: $latestProducts = $db->select("SELECT productId, image, price, name, sale_price FROM ".$glob['dbprefix']."CubeCart_inventory WHERE `showFeatured` = 1 ORDER BY productId DESC LIMIT ".$config['noLatestProds']); #### Change that query for this one: $latestProducts = $db->select("SELECT cat_id, cat_image, cat_name FROM ".$glob['dbprefix']."CubeCart_category ORDER BY cat_id DESC "); #### Now look for: if(($val = prodAltLang($latestProducts[$i]['productId'])) == TRUE){ #### Change "productId" field for "cat_id" like this: if(($val = prodAltLang($latestProducts[$i]['cat_id'])) == TRUE){ #### Now look for: $latestProducts[$i]['name'] = $val['name']; #### Change the "name" field for "cat_name": $latestProducts[$i]['cat_name'] = $val['cat_name']; #### Look for: if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$latestProducts[$i]['image'])){ $index->assign("VAL_IMG_SRC",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$latestProducts[$i]['image']); #### Change "image" field: if(file_exists($GLOBALS['rootDir']."/images/uploads/thumbs/thumb_".$latestProducts[$i]['cat_image'])){ $index->assign("VAL_IMG_SRC",$GLOBALS['rootRel']."images/uploads/thumbs/thumb_".$latestProducts[$i]['cat_image']); #### Look for "productId" field in the rest of de script and change that for "cat_id". Change "name" for "cat_name". Go to ../yourroot/skins\Killer\styleTemplates\content And in index.tpl change both links: <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"> #### For: <a href="index.php?act=viewCat&catId={VAL_PRODUCT_ID}"> Maybee you want to change some layout stuff here aswell. Thats it! Speak to you later I tried this but nothing happened. I am using 3.0.13 and was wondering if that would make a difference. I am very new at this but I have been able so to change my header and would love to show my cats on the home page instead of the latest products. My url is educationtoystation.com Thanks, rey1 Quote Link to comment Share on other sites More sharing options...
Guest rey1 Posted November 19, 2006 Share Posted November 19, 2006 Hi, sorry for posting another question before help with the first but I was on a roll! I just realized that my homepage is showing my cats after I made the change but the text in the box is still Latest Products, so I don't know how to change this! Also when I add a cat. and a product in the cat. and I click on the cat. It gives me a "that product can not be found". I am so lost. Thanks for any help, rey1 Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 20, 2006 Share Posted November 20, 2006 Welcome to the forum, rey1 You are posting to a thread from December 2005. The latest free mod for this is fully featured, PM sent. :innocent: Quote Link to comment Share on other sites More sharing options...
Guest stmack89 Posted December 7, 2006 Share Posted December 7, 2006 Welcome to the forum, rey1 You are posting to a thread from December 2005. The latest free mod for this is fully featured, PM sent. I need help with this as well. Please see my site ... glowshark.net I did everything instructed. When you click it sends you to a different link than the cat. home. How can I make it so that it sends me to the homepage for the category? How can I change "Latest Products" title? Also, would it be possible to add a small description under the picture and make the picture larger? Thanks! :D Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 7, 2006 Share Posted December 7, 2006 LOL no problems, will send PM to you too. This old code was a very limited first attempt by loua, but I do not suggest that anyone use it. The most recent free mod for this allows use of both latest products and categories on front page, and is configurable in admin control panel, in other words truly integrated and properly coded for CubeCart . . . if anyone needs this just send me a pm Quote Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2007 Share Posted June 16, 2007 hi markscarts, can u send me pm for this mods... thanks LOL no problems, will send PM to you too. This old code was a very limited first attempt by loua, but I do not suggest that anyone use it. The most recent free mod for this allows use of both latest products and categories on front page, and is configurable in admin control panel, in other words truly integrated and properly coded for CubeCart . . . if anyone needs this just send me a pm Quote Link to comment Share on other sites More sharing options...
markscarts Posted June 17, 2007 Share Posted June 17, 2007 At present this mod can be found at http://cubecartforums.org/ in the free modifications section, it is called Categories on Homepage or some such. Quote Link to comment Share on other sites More sharing options...
Chargin Posted August 25, 2009 Share Posted August 25, 2009 Id like to use this mod also but I want ALL the categories to display, so that means subcategories also, not just master cats. Can this be done?? 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.