piller Posted April 26, 2008 Posted April 26, 2008 Hello, I installed OS Commerce 2.2RC2, with a template from MonsterTemplate. I've been customizing the catalog and after many translation changes and some other code changes I realized that when a click on a main category, the first subcategory shown in the body points to index.php, instead of showing the products contained in it (Like /index.php?cPath=22_37 for example). I also realized that the other subcategories points to the next subcategories' products page, so every link got confused. I also realized that if a set a oder in the subcategories, always the first one points to index.php, and the others point to the wrong products page. I am using FeaturedProducts contribution (http://addons.oscommerce.com/info/651), but I don't think this is the reason of the problem. I've been looking into every changed I made, but cannot see anything wrong. I'd really appreciate it if any of you can guide me through this process. May be telling me what file I have to check. Thanks a lot, Piller
rbboyl Posted September 29, 2008 Posted September 29, 2008 This is probably the sixth instance of this problem I've seen on the forums with no answer. What's going on? Hello, I installed OS Commerce 2.2RC2, with a template from MonsterTemplate. I've been customizing the catalog and after many translation changes and some other code changes I realized that when a click on a main category, the first subcategory shown in the body points to index.php, instead of showing the products contained in it (Like /index.php?cPath=22_37 for example). I also realized that the other subcategories points to the next subcategories' products page, so every link got confused. I also realized that if a set a oder in the subcategories, always the first one points to index.php, and the others point to the wrong products page. I am using FeaturedProducts contribution (http://addons.oscommerce.com/info/651), but I don't think this is the reason of the problem. I've been looking into every changed I made, but cannot see anything wrong. I'd really appreciate it if any of you can guide me through this process. May be telling me what file I have to check. Thanks a lot, Piller
rbboyl Posted October 24, 2008 Posted October 24, 2008 Can someone please help with this issue? It seems like a lot of people experience this strange behavior with their subcategory links going back to index.php I'm sure somebody has to know a solution or know where to look.
chimol Posted October 25, 2008 Posted October 25, 2008 Nevermind, I figured it out httpdocs/catalog/includes/header.php is where the problem was. Steve I appreciate all the help that everyone on this site has given me!
Sardonic76 Posted October 30, 2008 Posted October 30, 2008 Nevermind, I figured it out httpdocs/catalog/includes/header.php is where the problem was. What's the solution???? Please share!! I've been going nuts trying to figure this out.
chimol Posted October 30, 2008 Posted October 30, 2008 I had the link in my header.php pointing to the wrong catagory. I edited it to the correct path and it works fine now. I guess that's the best that I can explain it. Steve Steve I appreciate all the help that everyone on this site has given me!
usernamenone Posted October 31, 2008 Posted October 31, 2008 This is probably the sixth instance of this problem I've seen on the forums with no answer. What's going on? The problem is with the Template Monster Template and the reason there are so many instances of this problem is their Templates are flawed and until Template Monster opens their own forum for free help you will see more and more of these issues and no answer. What makes you think we should know how to fix their templates? :blink:
maxtors Posted November 26, 2008 Posted November 26, 2008 I have the same problem how did you fix this?
vahidrk Posted June 4, 2009 Posted June 4, 2009 Open catalog/index.php Find: $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>'; $p_name_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a>'; Cut it and paste after: $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.