Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP in Banner HTML


jimmybeamer

Recommended Posts

Posted

I am trying to add an internal link via banner manager. The idea is to link to certain products or categories while keeping the session id. I have tried both of these methods as examples:

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cpath=27') . '">' . tep_image(DIR_WS_IMAGES . 'klim_1.jpg', 'Click to go to the KLIM product line') . '</a>'; ?>

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cpath=27'); ?>"><img src="images/klim_1.jpg" alt="Click to go to the KLIM product line" border="0"></a>

 

I paste this into the html section of banner manager and the image on the second example will show up but the source code shows <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cpath=27'); ?>"> and not the actual link.

 

I have created a php page, upload to the server and it works fine.

 

Any options here?

 

Thanks Corey

Archived

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

×
×
  • Create New...