Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

banner in the right side of page.


Platinum Games

Recommended Posts

includes/column_right.php is the correct place. It is a fairly simple file but you have to be careful where you insert your code since it could interrupt php and cause errors. You can also mess up your table structure easily. All pages are created with several files, including column_right.php. Try adding your code in a table like this:

<table><tr><td>your bit of code</td></tr></table>

and define the table parameters with html if you need that. Place it after the: ?> That gets you outside of the php.

 

You might also want to move the infoboxes from the right to left column to make the page balanced. Look for this:

require(DIR_WS_BOXES . 'search.php');

just move it to column_left.php. Back up your files before you make any of these changes!

Link to comment
Share on other sites

If it is too tough to figure out you could try a contribution. =)

http://www.oscommerce.com/community/contributions,59

 

It is very simple. You just open whichever side you want it to show up on catalog/includes/column_left.php or column_right.php

 

add something like this

 if ($banner = tep_banner_exists('dynamic', 'side')) {
?>
<tr><td>
<?php echo tep_display_banner('static', $banner); ?>
<?php
}
?>
</td></tr>
<?php

if you want to place it between boxes you already have.

if you just want to put it under the boxes you already have find the last

?> and then put this...

<?php
if ($banner = tep_banner_exists('dynamic', 'side')) {
?>
<tr><td>
<?php echo tep_display_banner('static', $banner); ?>
<?php
}
?>
</td></tr>

 

You will then have to go into your banner manager and add the banners and create the new "group" that I called "side" in the code above but you can change it to anything you want.

 

If that is confusing just go with the contribution. =)

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...