Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

When clicking on banner not to open another browse


ignatius

Recommended Posts

Does anyone know how to make it so when someone clicks on the banner, to load the new url in the current browser instead of opening another browser?

 

I am trying to use the banner to link to other areas in the site and it doesnt make sense to load up another browser.

 

Thanks

Link to comment
Share on other sites

Thanks!! That did exactly what i was looking for.

 

 

under

../catalog/includes/functions/banner.php

 

replace

 

$banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

 

 

with

 

 

$banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_self">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...