Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple Banners


Guest

Recommended Posts

Hello I am kind of new to OSC and I was currious is it possible to add multiple banner sections on the site so that when you use the banner manager you can specify a different section. I was wanting this mainly to manage different banner sizes more easily.

 

I searched the entire footer of OSC and found the following code

 

<?php
 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
 }
?>

 

I tried to copy the code to the header just to test it and changed the '468x50' to 'test' so it looked like this

 

<?php
 if ($banner = tep_banner_exists('dynamic', 'test')) {
?>
<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
 }
?>

 

However I got nothing not even a change. Am I doing this wrong?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...