Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

link on the Categories / Products


jsmith1

Recommended Posts

I wanted to create a link on the Categories box that just goes to one page thats "About Us".

 

It shows up as a product

 

Let's See What We Have Here Let's See What We Have Here

Product Name+ Price Buy Now

$0.00 Buy Now

 

 

 

 

that you have to click to get to it. I DONT wnat that, just want a direct link to the page. Thanks in advance.

Link to comment
Share on other sites

I wanted to create a link on the Categories box that just goes to one page thats "About Us".

 

It shows up as a product

 

Let's See What We Have Here Let's See What We Have Here

Product Name+ Price Buy Now

$0.00 Buy Now

that you have to click to get to it. I DONT wnat that, just want a direct link to the page. Thanks in advance.

'

 

It's so simple! No one knows?

Link to comment
Share on other sites

Couple of things

1)People are out here to help free of charge on their own time. Don't be so impatient.

2)If it's so simple how come you can't so it?

Now that that is out of the way heres how

In your inludes/boxes/categories.php find near the bottom

  new infoBox($info_box_contents);

Right above that add

  $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>');

This assumes you have in includes/filenames.php

define('ABOUT_US', 'about_us.php');

And in includes/languages/english.php

define('BOX_INFORMATION_ABOUT_US', 'About Us');

Make changes to the names as you need.

Link to comment
Share on other sites

Couple of things

1)People are out here to help free of charge on their own time. Don't be so impatient.

2)If it's so simple how come you can't so it?

Now that that is out of the way heres how

In your inludes/boxes/categories.php find near the bottom

  new infoBox($info_box_contents);

Right above that add

  $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>');

This assumes you have in includes/filenames.php

define('ABOUT_US', 'about_us.php');

And in includes/languages/english.php

define('BOX_INFORMATION_ABOUT_US', 'About Us');

Make changes to the names as you need.

 

ty kind sir

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...