New Zenner
- Join Date:
- Mar 2013
- Posts:
- 48
- Plugin Contributions:
- 0
Changes to sidebars... very frustrated...
Hi Zen Cart Forum,
This is my first time posting here... i am just looking for some help with modifying the sidebar in zen cart.
It seems like the whole shopping cart software is designed to function around these annoying sideboxes. I dont want to totally get rid of the sideboxes, because i still have interest in using some of them- but - Is there a way to get my own content (HTML) in the side bar??? Which files would i have to modify in order to do that? Your help with this would be much appreciated.
my website is https://www.toyzeum.com/store/
as you can see...
i have attempted to do this by modifying the files "tpl_box_default_left.php" and "tpl_box_default_right.php" in the "common" subfolder of the "template-default" folder. However whenever a sidebox is present it also repeats my HTML content... That is why the "INCOMING" image repeatedly shows... Any suggestions? I already tried the blank sidebox plugin but was not happy with the results of that either because i do not want boxes but rather the freedom to post pure HTML content or call up other scripts in the sidebar...
This is what the coding looks like of the tpl_box_default_right.php
##################################################
<?php /** * Common Template - tpl_box_default_right.php * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_box_default_right.php 2975 2006-02-05 19:33:51Z birdbrain $ */ // choose box images based on box position if ($title_link) { $title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>'; } // ?><IMG SRC="https://www.toyzeum.com/store/images/main/rightsidebar_incoming<? //Chooses a random number $num = Rand (1,6); //Based on the random number, gives a quote switch ($num) { case 1: echo "1"; break; case 2: echo "2"; break; case 3: echo "2"; break; case 4: echo "2"; break; case 5: echo "1"; break; case 6: echo "1"; } ?>.jpg">
<!--// bof: <?php echo $box_id; ?> //--> <div class="rightBoxContainer" id="<?php echo str_replace('_', '-', $box_id ); ?>" style="width: <?php echo $column_width; ?>"> <h3 class="rightBoxHeading" id="<?php echo str_replace('_', '-', $box_id) . 'Heading'; ?>"><?php echo $title; ?></h3> <?php echo $content; ?> </div> <!--// eof: <?php echo $box_id; ?> //--> ########################################################Thank you so much!
Sincerely,
Aaron morgan