Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add link to category list


BRoy

Recommended Posts

I'm in the process of setting up a site and want to add a link to the category list.

I want it to look something like:

MyLink

Hardware -> (6)

Software -> (4)

and so on

 

MyLink would be a link to another page (some like http://www.mysite.com/catalog/ccc.php)

 

Could someone direct me to the correct file (and perhaps a tip or two about the correct coding) to add this to?

 

Thank you

Link to comment
Share on other sites

you change your catalog\includes\boxes\categories.php

 

in that file you have this code

  tep_show_category_products($first_element);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => $categories_string
						  );

 

change it to add your link

  tep_show_category_products($first_element);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . 'My Link Text' . '</a>'
						  );

 $info_box_contents[] = array('align' => 'left',
						   'text'  => $categories_string
						  );

just change the link the way you want

Link to comment
Share on other sites

That worked great.

Thank you

 

 

you change your catalog\includes\boxes\categories.php

 

in that file you have this code

  tep_show_category_products($first_element);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => $categories_string
						  );

 

change it to add your link

  tep_show_category_products($first_element);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . 'My Link Text' . '</a>'
						  );

 $info_box_contents[] = array('align' => 'left',
						   'text'  => $categories_string
						  );

just change the link the way you want

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...