Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

First subcategory in category points to index.php


piller

Recommended Posts

Posted

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

  • 5 months later...
Posted

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

  • 4 weeks later...
Posted

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.

Posted

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!

Posted
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.

Posted

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!

Posted
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:

  • 4 weeks later...
  • 6 months later...
Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...