Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2011
    Posts
    3
    Plugin Contributions
    0

    Default How to add text box on bottom of every page?

    If you look at http://zedel.com/ you can see a box for " Wide Variety of Products" with text in it. It appears on every page. How do i achieve the same thing with zencart http://zedel.com/store/zencart

    Just started learning how to use this. I tried to put it in the footer page but then it just goes across the whole footer and not in the body center.

    I just want a text box like that on every page.
    Thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How to add text box on bottom of every page?

    Check out the banner manager. It allows you to add text as a banner.

    Depending on your template it will allow you to display banners in a number of positions. If your template doesn't put one in the right place then moving it should be no problem .

    Having had a quick look at your store it looks like that might be needed. You are going to want to post the file includes/templates/your_template/tpl_main_page.php ( just zip it and attach it to a post) so that someone can look at it and tell you how to do that.

    The advantage of using the banner manager is that you can easily change the text.

  3. #3
    Join Date
    Jun 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to add text box on bottom of every page?

    This is my tpl_main_page.php

    Where should i add the banner thing for text then?

    Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
        $flag_disable_right = true;
      }
    
      $header_template = 'tpl_header.php';
      $footer_template = 'tpl_footer.php';
      $left_column_file = 'column_left.php';
      $right_column_file = 'column_right.php';
      $body_id = ($this_is_main_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
    ?>
    
    
    <body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
    
    
    <!-- ========== IMAGE BORDER TOP ========== -->
    
    <div class="top-tail">
    <div class="main-width">
    
    <!-- ====================================== -->
    
    
    <!-- ========== HEADER ========== -->
    <?php
     /* prepares and displays header output */
      if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
        $flag_disable_header = true;
      }
      require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');
    ?>
    <!-- ============================ -->
    
    
    <div id="content">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" id="contentMainWrapper">
    	<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 (!isset($flag_disable_left) || !$flag_disable_left) {
    		?>
    		
                <td id="column-left" style="width:<?php echo COLUMN_WIDTH_LEFT; ?>;">
    				<div style="width:<?php echo COLUMN_WIDTH_LEFT; ?>;">
    					<?php
                         /* ----- prepares and displays left column sideboxes ----- */
                        ?>
                        <?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?>
                    </div>
                </td>
                
    		<?php
    			}
            ?>	
    		
                <td id="column-center" valign="top">
                	
                    <div class="column-center-padding">
                    
                        <!--content_center-->
                    
                    
                            <!-- bof breadcrumb -->
                            <?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
                                <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
                            <?php } ?>
                            <!-- eof breadcrumb -->
                        
        
                            <!-- bof upload alerts -->
                            <?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
                            <!-- eof upload alerts -->
        
                        
    						<?php
                         		/* ----- prepares and displays center column ----- */
                         		require($body_code);
    						?>
                        
                    
                    	<div class="clear"></div>
                        
                        <!--eof content_center-->
                    
                    </div>
    
                </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 (!isset($flag_disable_right) || !$flag_disable_right) {
            ?>
    
                <td id="column_right" style="width:<?php echo COLUMN_WIDTH_RIGHT; ?>">
        
                    <div style="width:<?php echo COLUMN_WIDTH_RIGHT; ?>;">
                        <?php
                         /* ----- prepares and displays right column sideboxes ----- */
                        ?>
                        <?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?>
                    </div>
        
                </td>
    			
            <?php
            }
            ?>
            
        </tr>
    </table>
    
    
    
    </div>
    
    
    
    <!-- ========== FOOTER ========== -->
    <?php
     /* prepares and displays footer output */
      if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
        $flag_disable_footer = true;
      }
      require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
    ?>
    <!-- ============================ -->
    
    
    
    <!--bof- parse time display -->
    <?php
      if (DISPLAY_PAGE_PARSE_TIME == 'true') {
    ?>
    <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
    <?php
      }
    ?>
    <!--eof- parse time display -->
    
    
    
    <!-- BOF- BANNER #6 display -->
    <?php
    	if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
      		if ($banner->RecordCount() > 0) {
    ?>
    			<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        	}
    	}
    ?>
    <!-- EOF- BANNER #6 display -->
    
    
    
    
    <!-- ========== IMAGE BORDER BOTTOM ========== -->
    		</div>
        </div>
    
    <!-- ========================================= -->
    
    <script type="text/javascript">
    		$(function() {
    			 //carousel begin 
    			 $(".carousel").jCarouselLite({
    				  btnNext: ".next",
    				  btnPrev: ".prev"
    			 });
    			 			
    		});
    	</script>
    
    </body>

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How to add text box on bottom of every page?

    OK Well, because it is all in the same file do this. Use Banner 6. So you want to cut all this code :

    Code:
    <!-- BOF- BANNER #6 display -->
    <?php
    	if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
      		if ($banner->RecordCount() > 0) {
    ?>
    			<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
        	}
    	}
    ?>
    <!-- EOF- BANNER #6 display -->
    and paste it in just underneath where it says...

    Code:
    <!--eof content_center-->
    So you have moved this banner to the bottom of the center column.

    Now you need to work out how to use banners. Have a read of:

    https://www.zen-cart.com/tutorials/index.php?article=80

    and in the banner manager you want to use the bit that says somethign like 'html text'

  5. #5
    Join Date
    Jun 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to add text box on bottom of every page?

    Ok, I changed it and read that document. Under Layout Settings there are the banner display groups, which one of those would be banner 6? I guess I am having a hard time understanding how I edit banner 6, or what banner 6 even is called in the admin area. Probably a silly question, just new to Zen Cart

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

 

 

Similar Threads

  1. v150 How Do I Add A Text Box At The Bottom Of The Index Page?
    By Scully in forum General Questions
    Replies: 27
    Last Post: 16 Nov 2013, 02:43 AM
  2. Moving text box to bottom of page
    By eminentonline in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Dec 2008, 12:12 AM
  3. Bottom Green Bar in every Side Box - How do I change its Color?
    By zcnb in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jun 2008, 04:13 PM
  4. How to add text or image at bottom of page
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Mar 2008, 04:08 AM
  5. How do I add text to the BOTTOM of the main page only?
    By wtashby in forum General Questions
    Replies: 1
    Last Post: 25 Feb 2007, 01:09 AM

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