Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

LINK FOR OTHER SITE


vivavi

Recommended Posts

Posted

put something like this in a tag whereever you want it to be. for example:

 

For an image link:

<tr><td valign="left"><?php echo '<a href="http://www.whatever.com">' . tep_image(DIR_WS_IMAGES . 'whateverimageorbanner.gif', 'whatever.com') . '</a>'; ?></td></tr>

 

if you want text, you simply do this:

 

<tr><td valign="left"><?php echo '<a href="http://www.whatever.com">HOME or whatever</a>'; ?></td></tr>

 

Put it whereever you want it to appear.

Posted

and if you want to add that link to your breadcrump trail change the following code in includes/application_top.php:

  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

to

  $breadcrumb->add('Home', tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE'));
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

do mind to replace YOUR_LINK_TO_HOMEPAGE_HERE with your link

you could also change 'Home' to HEADER_TITLE_TOP (replace the '' too then) you will need to make sure that HEADER_TITLE_TOP is then also defined in your language files. Not sure if that is by default.

  • 3 weeks later...
Posted
and if you want to add that link to your breadcrump trail change the following code in includes/application_top.php:

  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

to

  $breadcrumb->add('Home', tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE'));
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

do mind to replace YOUR_LINK_TO_HOMEPAGE_HERE with your link

you could also change 'Home' to HEADER_TITLE_TOP (replace the '' too then) you will need to make sure that HEADER_TITLE_TOP is then also defined in your language files. Not sure if that is by default.

 

Should I change it in CATALOG/ADMIN/INCLUDES too?

Thanks

 

Vivi :rolleyes:

Posted

do not think you will care much about a breadcrump trail in your admin ;)

so no need to update that (I for one don't care, all pages I actively use are the adding products and managing orders, and those I and other colegues of mine can find just fine (direct link always nice))

Posted
do not think you will care much about a breadcrump trail in your admin ;)

so no need to update that (I for one don't care, all pages I actively use are the adding products and managing orders, and those I and other colegues of mine can find just fine (direct link always nice))

 

Hmmm, for some reason these breadcrumb are like an extension of the main domain name. Because I checked the TOP one and is repeating the domain twice.Opppps :(

Posted

tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE').

 

the tep_href_link function basicaly adds the "main domain name" prior to 'YOUR_LINK_TO_HOMEPAGE_HERE'. but also adds the conditional osCsid identifier to a link when a cookie is not used.

If you would like to specify a different url than the tep_href_link prepends to 'YOUR_LINK_TO_HOMEPAGE_HERE' then you could try and modify the code to:

  $breadcrumb->add('Home', 'YOUR_LINK_TO_HOMEPAGE_HERE');
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

that should solve your problem.

but then no osCsid is added to this url.

Posted
tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE').

 

the tep_href_link function basicaly adds the "main domain name" prior to 'YOUR_LINK_TO_HOMEPAGE_HERE'. but also adds the conditional osCsid identifier to a link when a cookie is not used.

If you would like to specify a different url than the tep_href_link prepends to 'YOUR_LINK_TO_HOMEPAGE_HERE' then you could try and modify the code to:

  $breadcrumb->add('Home', 'YOUR_LINK_TO_HOMEPAGE_HERE');
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

that should solve your problem.

but then no osCsid is added to this url.

 

 

THANKS A LOT ! :thumbsup:

Archived

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

×
×
  • Create New...