Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search Description & Banner Header


Guest

Recommended Posts

Hi.

 

I am wondering if there is any contribution to these features.

 

The search box in the column will search the product description without going to advanced search.

 

Also, I want to put banners in the header just like teh footer. I tried copy and paste the script in footer file, but no good.

 

Please help.

 

Thank you

Link to comment
Share on other sites

The code for the banner is located presently in /includes/footer.php

 

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

 }

?>

 

The IF statement has the Banner Group named in it for the display in the tep_display_banner function.

 

Just changing the Banner Group name will let you use different groups, or using the same group all the banners will come from the same place for the header and foot.

 

The banner code above creates its own table so you should be able to add it to the header.php file easily enough. By inserting that into a new row in the header.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...