Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2006
    Posts
    25
    Plugin Contributions
    0

    Default Add a sidebox on the right column

    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>
    Attached Images Attached Images  

  2. #2
    Join Date
    Apr 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: Add a sidebox on the right column

    here is my web site

    http://www.ladybazar.com

  3. #3
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: Add a sidebox on the right column

    I've used the banner feature (Tools, Banner Manager) to do this in the past which has worked well and avoids programming. You then just add a url to the category you want to link.

  4. #4
    Join Date
    Apr 2006
    Posts
    25
    Plugin Contributions
    0

    Re: Add a sidebox on the right column

    I tried creating the side box using tools--> banner manager but it is still not showing on my web site

    Zen Cart the art of e-commerce SideBox-Banners 35 / 0 0

    I am sure there is something simple. Please Help!!

  5. #5
    Join Date
    Apr 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: Add a sidebox on the right column

    Please help zen support team!!!! You guys are the best...

  6. #6
    Join Date
    Nov 2004
    Location
    Deal, Kent, UK
    Posts
    332
    Plugin Contributions
    0

    Default Re: Add a sidebox on the right column

    You need to make sure the box is enabled in Tools Layout Boxes Controller.

    Also, that you have allocated your image to the correct banner and have a look in Configuration Layout settings to make sure the banner is enabled there.

 

 

Similar Threads

  1. Remove Left Column and add images on right column
    By steve Nezia in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Jun 2011, 03:40 PM
  2. Can I add Categoy links left and Right column around center column?
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2010, 06:06 PM
  3. Right Column Sideboxes not staying to the right on some pages
    By kdays in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Mar 2010, 09:53 PM
  4. Can I locate my 'Add to Cart' button in the Right Column?
    By jafma in forum Basic Configuration
    Replies: 3
    Last Post: 26 Mar 2008, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg