Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Change


Guest

Recommended Posts

If someone could please show me how to do this or point me into the correct direction I would be in your debt.

 

This is the code that calls the image per category, if there is one. What I want to do is put this code onto the index page so that it will display the banner for that category above products rather then in the header.php where it currently is. If I stick the code as is on the index.php the the first banner set via the banner manager will apear on all categories. This is really important to me and I would greatly appreciate any and all help I can get on this. Onced achieved it will be labeled as a contribution and put onto the contribs page.

 

<?php
//added for os6tm banner manager
 if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
 </tr>
</table>
<?php
 }
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...