Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Info Box Link


llz925

Recommended Posts

Hi -

I can't seem to find the answer to my question anywhere on here, so I'm sorry if this has been covered before.

 

I am trying to make the "contact us" link in the Information box link to a different page than the oscommerce one. I have my own contact us page I want it to link to instead.

What file do I need to modify, and what part of the code do I need to edit to change where this link goes?

 

Thank you for the help in advance.

Liz

Link to comment
Share on other sites

catalog/includes/boxes/information.php

The is the file for all the information links.

 

Be sure to back up the file before you make changes in case of problems.

 

find:

 

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

 

replace:

 

 

'<a href="' . tep_href_link(******your link here******) . '">' . BOX_INFORMATION_CONTACT . '</a>');

Link to comment
Share on other sites

catalog/includes/boxes/information.php

The is the file for all the information links.

 

Be sure to back up the file before you make changes in case of problems.

 

find:

 

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

 

replace:

 

 

'<a href="' . tep_href_link(******your link here******) . '">' . BOX_INFORMATION_CONTACT . '</a>');

 

Thanks - I have tried that though a few times, and each time I reload my website to see if it has worked all of my main content goes missing! It's very strange. I have tried to enter in the linked url a few different ways and that seems to make the content come back, but then the link just gives me a 404 error.

 

Maybe I am going about this wrong - it's not actually an external link to a different website, it is a link to a different html file outside of the catalog directory for the same website. Any suggestions?

Link to comment
Share on other sites

Thanks - I have tried that though a few times, and each time I reload my website to see if it has worked all of my main content goes missing! It's very strange. I have tried to enter in the linked url a few different ways and that seems to make the content come back, but then the link just gives me a 404 error.

 

Maybe I am going about this wrong - it's not actually an external link to a different website, it is a link to a different html file outside of the catalog directory for the same website. Any suggestions?

 

Update:

I actually got it to work, after playing around with it A LOT. I ended up having to copy the page I wanted to direct it to into the catalog directory and keep the .html off. the "." was messing with the .php code I think. Thank you for your help!

Link to comment
Share on other sites

If you are putting in a absolute link like this:

 

'<a href="' . tep_href_link('this/is/my/other/contact_us.html') . '">' . BOX_INFORMATION_CONTACT . '</a>');

 

Be sure it is surrounded by apostrophes.

I"m pretty sure you can link on your own server outside of your web root path do a search on google, might get better answer. I'm not sure this is something you would do regularly as I believe your file and directory permissions could compromise the integrity of your server if you don't have the it set up right. Of course do a little research.

 

Why not just bring the contact us file you want to use over to your catalog folder. Shouldn't be any problems there.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...