Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where do you set the URL to link to Categories page?


doktorwunder

Recommended Posts

Posted

Hi,

I've just noticed that when I click on the array

next to Categories box (index page), it goes to

an unexisting page named '1' <_<

I guess I probably messed the code when editing

my pages, and I'd like to know how can I fix that

and set a correct link to this array..

Hope this sounds clear,

Thanks in advance! :thumbsup:

Dr.W.

Dr.Wunder

Always need help :(

Posted
Hi,

I've just noticed that when I click on the array

next to Categories box (index page), it goes to

an unexisting page named '1' <_<

I guess I probably messed the code when editing

my pages, and I'd like to know how can I fix that

and set a correct link to this array..

Hope this sounds clear,

Thanks in advance! :thumbsup:

Dr.W.

 

The URL of index page is : http://www.fatalclothing.com/catalog/

Then drag your mouse over the array next to 'Categories' box...

and you'll see the broken link I'm talking about...

Any suggestion is welcome ;)

Dr.Wunder

Always need help :(

Posted

are you talking about the number in () next to the category name? It isn't supposed to be a link. It just tells you how many products are in each category. You can turn this off in the admin panel if you want to:

Admin > configuration > Show Category Counts > set it to false

 

I don't see any broken links there. You get to the categories page by clicking the cateogry name, not the number next ot it.

Posted
are you talking about the number in () next to the category name? It isn't supposed to be a link. It just tells you how many products are in each category. You can turn this off in the admin panel if you want to:

Admin > configuration > Show Category Counts > set it to false

 

I don't see any broken links there. You get to the categories page by clicking the cateogry name, not the number next ot it.

 

Thanks for your reply!

Well, no... I'm not talking about the numbers of products, next

to each category... I know it's not supposed to be linked to anything...

I am talking about the URL that's linked to the little array, next to

the text-image "Collections". When you click on it, it should open

the categories page... Here the linked URL is:

http://www.fatalclothing.com/catalog/1

Which is wrong... So I wonder how/where do you set the links for

the little white arrays next to each menu boxes.

Still haven't found out :(

Dr.Wunder

Always need help :(

Posted

that looks hard-coded so check your catalog\includes\classes\boxes.php

 

Have you made mods there?

Posted
Thanks for your reply!

Well, no... I'm not talking about the numbers of products, next

to each category... I know it's not supposed to be linked to anything...

I am talking about the URL that's linked to the little array, next to

the text-image "Collections". When you click on it, it should open

the categories page... Here the linked URL is:

http://www.fatalclothing.com/catalog/1

Which is wrong... So I wonder how/where do you set the links for

the little white arrays next to each menu boxes.

Still haven't found out :(

 

You mean the little arrows on the right of your infobox headers which are not meant to be with every type of infobox. The categories infobox header shouldn't have a link to another page and by osC default does not show the little arrow unless you modded something.

Compare the (catalog)/includes/boxes/categories.php creation of the infobox header

  new infoBoxHeading($info_box_contents, true, false);

with (catalog)/includes/boxes/shopping_cart.php

  new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART));

The last one specifically sends a third parameter with a reference/link to the new page.

 

In your shop all infobox headers have this link so chances are big you modded (catalog)/includes/classes/boxes.php as Enigma already referred you to.

Posted
You mean the little arrows on the right of your infobox headers which are not meant to be with every type of infobox. The categories infobox header shouldn't have a link to another page and by osC default does not show the little arrow unless you modded something.

Compare the (catalog)/includes/boxes/categories.php creation of the infobox header

In your shop all infobox headers have this link so chances are big you modded (catalog)/includes/classes/boxes.php as Enigma already referred you to.

 

Well, yah, sorry, I meant "arrows", not "arrays"... My english

sometimes go nuts ;)

So, yes, I think I've probably made some mods (not that much

though) in the boxes.php but as far as I remember, there were

basically arrays with every infobox. I even posted a topic last

month when I started with osC to ask how to remove arrays. And I

didn't manage to do so.

I'll try to follow your advices anyway, hope this works :thumbsup:

I'll post again here if it doesn't... :-"

Thanks for your help!!

Dr.Wunder

Always need help :(

Posted
You mean the little arrows on the right of your infobox headers which are not meant to be with every type of infobox. The categories infobox header shouldn't have a link to another page and by osC default does not show the little arrow unless you modded something.

Compare the (catalog)/includes/boxes/categories.php creation of the infobox header

  new infoBoxHeading($info_box_contents, true, false);

with (catalog)/includes/boxes/shopping_cart.php

  new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART));

The last one specifically sends a third parameter with a reference/link to the new page.

 

In your shop all infobox headers have this link so chances are big you modded (catalog)/includes/classes/boxes.php as Enigma already referred you to.

 

I've just checked out those files and now I remember all the story...

I did make one mod in boxes/categories.php last month because I

wanted to remove the arrow. So I replaced :

  new infoBoxHeading($info_box_contents, true, false);

by :

  new infoBoxHeading($info_box_contents, false, false);

And it didn't change anything. The arrow's still there, whatever I do.

But now at least, I understand how you put a link to arrows, thanks to

the second part of code you've mentioned :)

I just need to find out how to remove the arrow... It drives me mad! :blink:

I just don't understand.

If you have any suggestion... That'd be great.

Thanks again!!

Dr.Wunder

Always need help :(

Posted
I've just checked out those files and now I remember all the story...

I did make one mod in boxes/categories.php last month because I

wanted to remove the arrow. So I replaced :

  new infoBoxHeading($info_box_contents, true, false);

by :

  new infoBoxHeading($info_box_contents, false, false);

And it didn't change anything. The arrow's still there, whatever I do.

But now at least, I understand how you put a link to arrows, thanks to

the second part of code you've mentioned :)

I just need to find out how to remove the arrow... It drives me mad! :blink:

I just don't understand.

If you have any suggestion... That'd be great.

Thanks again!!

 

Are you sure you didn't make any other changes ? Changing the infoBoxHeading parameters true, false to false, false stands seperatie from the little arrow appearing. Those two only influence the way your heading corners are shown.

If you take a look at your ../includes/classes/boxes.php you will find

  class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
  $this->table_cellpadding = '0';

  if ($left_corner == true) {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
  } else {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
  }
[color=#FF6666]	  if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';
  }[/color]	  if ($right_corner == true) {
	$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
  } else {
	$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
  }

As you see the third parameter (or actually the fourth) is the one telling to show the right arrow with link or not. It defaults to false if you don't send that parameter so when everything in your files is still stock it shouldn't be there.

 

In your ../includes/boxes/categories.php you should just have a call like

  new infoBoxHeading($info_box_contents, true, false);

 

You could try to change that last one to something like

new infoBoxHeading($info_box_contents, true, false, false);

or

new infoBoxHeading($info_box_contents, false, false, false);

to see if that makes any difference but normally you shouldn't have to.

 

You haven't by any chance used one of the available mods for having the ability of seperate infobox designs ?

Posted
Are you sure you didn't make any other changes ? Changing the infoBoxHeading parameters true, false to false, false stands seperatie from the little arrow appearing. Those two only influence the way your heading corners are shown.

 

You could try to change that last one to something like

new infoBoxHeading($info_box_contents, true, false, false);

or

new infoBoxHeading($info_box_contents, false, false, false);

to see if that makes any difference but normally you shouldn't have to.

 

Well, it worked !!! Thanks so much!! :)

 

You haven't by any chance used one of the available mods for having the ability of seperate infobox designs ?

 

I'm not sure to get that part :huh: what do you mean by "seperate infobox designs"?

Dr.Wunder

Always need help :(

Posted
Well, it worked !!! Thanks so much!! :)

I'm not sure to get that part :huh: what do you mean by "seperate infobox designs"?

 

When I started with osC I didn't like to have all infoboxes with the same appearance/style and searched the contributions for a solution to be able to apply a different style to every left or right column infobox seperately. I found this one which is rather an old contribution but works like a charm.

Posted
When I started with osC I didn't like to have all infoboxes with the same appearance/style and searched the contributions for a solution to be able to apply a different style to every left or right column infobox seperately. I found this one which is rather an old contribution but works like a charm.

 

Thanks for the tip :D I'm gonna check this out, that could be a good idea :)

Anyway, for now, another bigger problem's showing up (just posted a topic

- named 'adding products turned to a nightmare' - about that)... :(

Dr.Wunder

Always need help :(

Archived

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

×
×
  • Create New...