I am trying to add the picture (with hyperlink to a category) on the sidebox (right column), just below the bestseller sidebox on all the cart pages.
I have attahed a image file of what I am trying to achieve. I am not a php programmer. Thanks in advance
Here is my tpl_main_page.php file:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license AT zen-cart DOT com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: tpl_main_page.php 361 2004-09-29 03:36:09Z drbyte $
//
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = str_replace('_', '', $_GET['main_page']);
// this file can be copied to /templates/your_template_dir/pagename
// example: to override the privacy page
// make a directory /templates/my_template/privacy
// copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php
// to override the global settings and turn off columns un-comment the lines below for the correct column to turn off
// to turn off the header and/or footer uncomment the lines below
// Note: header can be disabled in the tpl_header.php
// Note: footer can be disabled in the tpl_footer.php
// $flag_disable_header = true;
// $flag_disable_left = true;
// $flag_disable_right = true;
// $flag_disable_footer = true;
?>
<body id="<?php echo $body_id; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<?php require(DIR_WS_MODULES . 'header.php'); ?>
<table border="0" cellspacing="0" cellpadding="0" width=727 align=center>
<?php
if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<tr>
<td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div></td>
</tr>
<?php
}
}
?>
<tr>
<?php
if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_left
$flag_disable_left = true;
}
if (!$flag_disable_left) {
?>
<td width=199 valign=top height=100% bgcolor=#EEECE7>
<table cellspacing=0 cellpadding=0 width=199 height=100%>
<tr><td width=196 height=100% valign=top>
<?php require(DIR_WS_MODULES . 'column_left.php'); ?>
<table cellspacing=0 cellpadding=0>
<tr><td colspan=4><a href="<?=zen_href_link('index', 'cPath=45')?>"?>>
<img src="<?=DIR_WS_TEMPLATE?>images/m05.gif" width="196" height="183" border="0"?>images/m05.gif width=196 height=183 border=0></a></td></tr>
<tr><td height=3></td></tr>
<tr><td colspan=3 bgcolor=#EEEBE8 width=196 height=100%></td></tr>
</table>
<td width=3></td>
</td></tr>
</table></td>
<?php
}
?>
<td width=100% valign=top class="center_column">
<?php require($body_code); ?>
</td>
<?php
if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_right
$flag_disable_right = true;
}
if (!$flag_disable_right) {
?>
<td width=186 valign=top height=100% bgcolor=#EEECE7>
<table cellspacing=0 cellpadding=0 width=186 height=100%>
<tr><td width=3></td>
<td width=183 valign=top heigth=100%>
<table cellspacing=0 cellpadding=0>
<tr><td bgcolor=#98653F width=183 height=44>
<table cellspacing=0 cellpadding=0 align=center>
<? // SEARCH FORM ?>
<?=zen_draw_form('quick_find', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get')?>
<?=zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT)?>
<?=zen_draw_hidden_field('search_in_description', '1')?>
<tr><td width=45 class=ch5>Search:</td>
<td width=95><?=zen_draw_input_field('keyword', '', 'class=se2')?></td>
<td>
<input type=image src="<?=DIR_WS_TEMPLATE?>images/m12.gif"?>images/m12.gif></td></tr>
</form>
</table>
</td></tr>
<tr><td height=2></td></tr>
</table>
<table cellspacing=0 cellpadding=0>
<? // MANUFACTURERS ?>
<?=zen_draw_form('manufacturers', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get')?>
<?=zen_draw_hidden_field('main_page', FILENAME_DEFAULT)?>
<tr><td><a href="<?=zen_href_link('index', 'cPath=43')?>"?>>
<img src="<?=DIR_WS_TEMPLATE?>images/m19.gif" width="183" height="124" border="0"?>images/m19.gif width=183 height=124 border=0></a></td></tr>
<tr><td height=3></td></tr>
</table>
<?php require(DIR_WS_MODULES . 'column_right.php'); ?>
</td></tr></table></td>
<?php
}
?>
</tr>
<?php
if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<tr>
<td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div> </td>
</tr>
<?php
}
}
?>
</table>
<?php require(DIR_WS_MODULES . 'footer.php'); ?></body>



