Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sub category link problem


jp.bond

Recommended Posts

hi,

 

I have a problem when i use my store as a client (not admin part) :

My store is organised like this :

2 categories, Cat1 and Cat2, and some more subcats :

- subcat 1

- subcat 2

- subcat 3

...ect...

 

When i click in the column left on the cat1 for example (same problem on cat2), i have access to the Cat1 home page, with little thumbnails for each subcat. There is a problem with thumbnails links here :

- thumbnail subcat 1 linked to http://www.mysite.com/boutique/index.php => website homepage !?

- thumbnail subcat 2 linked to http://www.mysite.com/index.php?cPath=17_22 => go to subcat 1

- thumbnail subcat 3 linked to http://www.mysite.com/index.php?cPath=17_23 => go to subcat 2

 

everything is false !

 

is anybody has an idea ?

 

thanks for your help

 

jpascal

Link to comment
Share on other sites

i understood how it doesn't work, but no how to correct it :

 

the link on the subcat 1 is not complete because the var cPath is empty.

And, on the subcat 2, there is the var cPath of the subcat 1

same for subcat 3 with cPath = subcat 2

 

Don't tell me i'm the only one with this bug !?

Link to comment
Share on other sites

i understood how it doesn't work, but no how to correct it :

 

the link on the subcat 1 is not complete because the var cPath is empty.

And, on the subcat 2, there is the var cPath of the subcat 1

same for subcat 3 with cPath = subcat 2

 

Don't tell me i'm the only one with this bug !?

 

 

I happen to discover this today. The first subcat will point to the Home Page. But, if you use the right hand cat menu, it is fine. Any solution?

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

I manage to fix the problem.

 

Search for:

 

$cPath_new = tep_get_path($categories['categories_id']);

 

and move it above:

 

$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>';

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...