Finx Posted February 21, 2010 Share Posted February 21, 2010 Hey.. I have just installed oscommerce 2.2rc1, but when I make a new category, and then a subcategory in that main category, the subcategorypicture link goes to index.php and not index.php?cPath=16_18. And if I make a subcategory more and click on the picture for that, I then I get redirected to the index.php?cPath=16_18 that its suppose to do with the first subcategory ... where strange. Is there a bugfix for this somewhere...? Link to comment Share on other sites More sharing options...
PineappleCove Posted February 23, 2010 Share Posted February 23, 2010 Hey.. I have just installed oscommerce 2.2rc1, but when I make a new category, and then a subcategory in that main category, the subcategorypicture link goes to index.php and not index.php?cPath=16_18. And if I make a subcategory more and click on the picture for that, I then I get redirected to the index.php?cPath=16_18 that its suppose to do with the first subcategory ... where strange. Is there a bugfix for this somewhere...? I'm experiencing the same exact problem and would like to know how to fix this too. Link to comment Share on other sites More sharing options...
PineappleCove Posted February 23, 2010 Share Posted February 23, 2010 Hey.. I have just installed oscommerce 2.2rc1, but when I make a new category, and then a subcategory in that main category, the subcategorypicture link goes to index.php and not index.php?cPath=16_18. And if I make a subcategory more and click on the picture for that, I then I get redirected to the index.php?cPath=16_18 that its suppose to do with the first subcategory ... where strange. Is there a bugfix for this somewhere...? After searching the forums for a few hours, I found a fix that got my site to work. First, make a back-up of your index.php, in case you need to go back to it. Search for the following code: $p_pic_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>'; Insert the following right above it: $cPath_new = tep_get_path($categories['categories_id']); Hope this helps! Link to comment Share on other sites More sharing options...
Finx Posted February 23, 2010 Author Share Posted February 23, 2010 After searching the forums for a few hours, I found a fix that got my site to work. First, make a back-up of your index.php, in case you need to go back to it. Search for the following code: $p_pic_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>'; Insert the following right above it: $cPath_new = tep_get_path($categories['categories_id']); Hope this helps! That worked perfectly for me to.. many thanks.. I have seached the forums to, but with no luck.. :) thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.