Guest Posted July 12, 2005 Share Posted July 12, 2005 File Name :: CC3 Category Description Mod Author :: louisplatt Category :: Minor Description This tiny mod allows you to add a description to your categories. View File Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2005 Share Posted July 12, 2005 (edited) File Name :: CC3 Category Description Mod Author :: louisplatt Category :: Minor Description :: This tiny mod allows you to add a description to your categories. Updated Thu, Jul 14 2005 11:39 am View File Edited July 14, 2005 by Guest Link to comment Share on other sites More sharing options...
Guest GnomeyNewt Posted July 13, 2005 Share Posted July 13, 2005 Thanks for this mod. I was thinking about how it would be great to have descriptions for the category. Waiting for v3.01 to start changing things up tho. :errm: Link to comment Share on other sites More sharing options...
Guest tbladecki Posted August 4, 2005 Share Posted August 4, 2005 I have to say that it worked great!!! I know nothing about scripting, programing, sql, and I was able to follow it step by step, loaded the pages, and it worked great. Thank you for being so direct and clear with the instructions!!! Link to comment Share on other sites More sharing options...
Guest EverythingWeb Posted August 12, 2005 Share Posted August 12, 2005 Hello, Just a side note to this mod - make sure that when editting includes/content/viewCat.inc.php you use the following instructions: Open includes/content/viewCat.inc.php Find $currentCatQuery = "SELECT cat_name, cat_father_id, cat_id FROM ".$config['dbprefix']."CubeCart_category WHERE cat_id = ".$db->mySQLSafe($_GET['catId']); replace with: $currentCatQuery = "SELECT cat_name, cat_desc, cat_father_id, cat_image, cat_id FROM ".$config['dbprefix']."CubeCart_category WHERE cat_id = ".$db->mySQLSafe($_GET['catId']); Note: the difference is that cat_image is missing from the original SQL command. (If using cc3 it is in the file, however the mod instructions don't include it, so you could end up turning the category images off, while turning the description on) This is of course if you need to have the Category Images showing. Cheers. Link to comment Share on other sites More sharing options...
Guest Posted August 13, 2005 Share Posted August 13, 2005 Hi guys Just installed this mod and have now got this problem MySQL Error Occured 1054: Unknown column 'cat_desc' in 'field list' QUERY = INSERT INTO CubeCart_category (`cat_name`, `cat_desc`, `cat_father_id`, `cat_image`, `per_ship`, `item_ship`, `item_int_ship`, `per_int_ship`) VALUES ('Mobile Phones', 'Get the latest Mobile Phones with the best deals on tariffs', '0', 'samsung_2107.png', '', '', '', '') Any ideas? Thanks Link to comment Share on other sites More sharing options...
Guest EverythingWeb Posted August 13, 2005 Share Posted August 13, 2005 This would indicate that the column has not been created correctly. Could you print the Schema for that table from your database please? For phpmyadmin - do an export of the Structure for that table. Thanks. Link to comment Share on other sites More sharing options...
Guest jeroenz19 Posted August 30, 2005 Share Posted August 30, 2005 I did the mod, but it doesn't display my category description. I added an description at the Pioneer category. http://www.audioweb.nl/cubecart/index.php?...viewCat&catId=4 Please help! Link to comment Share on other sites More sharing options...
Guest tbladecki Posted August 31, 2005 Share Posted August 31, 2005 "jeroenz19" need a little help...... what exactly did you do?? I have installed this on mine "www.desertcoralaquatics.com" and it works fine... It could be that you did not add the (TXT DESC) part correctly. Even if everything else is there it will not "show" the description wihtout it. I found out the hard way after I did an update and everything was in place execpt that. Link to comment Share on other sites More sharing options...
Guest jeroenz19 Posted August 31, 2005 Share Posted August 31, 2005 Ok! Done it! Will post soon how to :( Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2005 Share Posted September 1, 2005 I'd be interested to know what the problem was so I can fix it for you :D Link to comment Share on other sites More sharing options...
Guest jeroenz19 Posted September 2, 2005 Share Posted September 2, 2005 See here: Open: includes/content/viewCat.inc.php Add on line 73 the next piece of code: $view_cat->assign("CAT_DESC",$subCategoroies[$i]['cat_desc']); Then open: skins/classic/styletemplates/content/viewCat.tpl Add {CAT_DESC} Where you want the description to appear! This should work! Link to comment Share on other sites More sharing options...
Guest Denver Dave Posted September 8, 2005 Share Posted September 8, 2005 I've noticed a difference in the level links not being displayed: Before: $view_cat->assign("CURRENT_DIR",getCatDir($currentCat[0]['cat_name'],$currentCat[0]['cat_father_id'], $currentCat[0]['cat_id'], $link=TRUE)); gives: Products in: /Candles/Aromatherapy/Bergamot Lime with the first 2 levels being links After: $view_cat->assign("CURRENT_DIR",getCatDir($currentCat[0]['cat_name'],$currentCat[0]['cat_desc'],$currentCat[0]['cat_father_id'], $currentCat[0]['cat_id'], $link=TRUE)); gives: Products in: /Bergamot Lime does not show the two cateories above May or may not be related, I have not been able to see my category text yet and am in the process of trying to track that down. Suggestions? Link to comment Share on other sites More sharing options...
Guest turtle Posted October 14, 2005 Share Posted October 14, 2005 Yes, I too have that happening. Prior to this mod, I added Webpresentation's excellent breadcrumbs mod - everything works except for the previous categories Denver Dave has mentioned. Look forward to getting this fixed as both mods are excellent! Link to comment Share on other sites More sharing options...
Guest speak2stv Posted November 15, 2005 Share Posted November 15, 2005 Hey, all... (y'all?) After updating everything, when I go to CubeCart admin, and then either the "View Categories" or "Add Category" option, I get the following error: Error 401: You do not have permission to access that page. Please ask one of the super users to grant this for you. Any ideas??? Thanks in advance!!! -Stv Link to comment Share on other sites More sharing options...
Guest speak2stv Posted November 17, 2005 Share Posted November 17, 2005 Fixed. If this should happen to anyone else, check your dirctory pointers. Sorry to bother y'all. -Stv Link to comment Share on other sites More sharing options...
convict Posted November 28, 2005 Share Posted November 28, 2005 I've noticed a difference in the level links not being displayed: Before:Â $view_cat->assign("CURRENT_DIR",getCatDir($currentCat[0]['cat_name'],$currentCat[0]['cat_father_id'], $currentCat[0]['cat_id'], $link=TRUE)); gives: Products in: /Candles/Aromatherapy/Bergamot Lime with the first 2 levels being links After: $view_cat->assign("CURRENT_DIR",getCatDir($currentCat[0]['cat_name'],$currentCat[0]['cat_desc'],$currentCat[0]['cat_father_id'], $currentCat[0]['cat_id'], $link=TRUE)); gives: Products in: /Bergamot Lime does not show the two cateories above May or may not be related, I have not been able to see my category text yet and am in the process of trying to track that down. Suggestions? Dont make this $view_cat->assign..... replacement and link level will be ON. Link to comment Share on other sites More sharing options...
Guest vrakas Posted November 30, 2005 Share Posted November 30, 2005 @louisplatt can you collect all this info and upload/change the file so we can have the total solution? It would be great if you had the time and this :blink: Link to comment Share on other sites More sharing options...
Guest Mysiteonline Posted November 30, 2005 Share Posted November 30, 2005 I've just installed this mod on a site i'm working on, here I've noticed that i now have an extra blank category on the main page. any ideas where i went wrong? Many thanks Link to comment Share on other sites More sharing options...
Guest Denver Dave Posted November 30, 2005 Share Posted November 30, 2005 Is there a process where mods could be nominated and considered for inclusion in the base product? I realize that different people may want different things, but some mods like this one, seem to be naturals in that if you do not want a discription, just don't enter one. Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2005 Share Posted December 8, 2005 what version was this written for, because im getting all sorts of problems i cant find specific code ... for includes/content/viewCat.inc.php im using 3.0.5 atm Link to comment Share on other sites More sharing options...
Guest Denver Dave Posted December 8, 2005 Share Posted December 8, 2005 I was using category descriptions with 3.0.3, but have not applied yet to 3.0.6 until I've sorted out issues with blank admin emails in 3.0.6. I'm not expecting problems, but you never know. Link to comment Share on other sites More sharing options...
Guest Mysiteonline Posted December 9, 2005 Share Posted December 9, 2005 I've got it working on a site with 3.05. The url is: www.inktech.co.uk/cube/ Link to comment Share on other sites More sharing options...
Guest miscellany Posted January 28, 2006 Share Posted January 28, 2006 The link below to this mod goes the the forum main page? I would like to use this mod.. is it online somewhere else? thanks File Name :: CC3 Category Description Mod Author :: louisplatt Category :: Minor Description This tiny mod allows you to add a description to your categories. View File Link to comment Share on other sites More sharing options...
Recommended Posts