Forums / Templates, Stylesheets, Page Layout / featured products on main home page

featured products on main home page

Views: 900

Results 1 to 5 of 5
6 Jul 2011, 1:47 AM
#1
jazdeep avatar

jazdeep

New Zenner

Join Date:
Feb 2011
Posts:
11
Plugin Contributions:
0

featured products on main home page

I had someone else build and customize my zen cart. My homepage comes from tpl_main_page.php. How can i get the featured products to list on my main page? So i can edit the details such as number of items per row or dispaly image, display model, etc. all from the admin?

because right now, turning on featured products or new products from the admin does nothing.

i am no coder, but i believe i am missing the code for showing featured products in tpl_main_page.php. Could anyone provide that?

thanks in advance,
jazdeep

6 Jul 2011, 1:52 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: featured products on main home page

My homepage comes from tpl_main_page.php
Post the tpl_main_page.php file contents being used for your template

Zen-Venom Get Bitten

6 Jul 2011, 4:53 PM
#3
jazdeep avatar

jazdeep

New Zenner

Join Date:
Feb 2011
Posts:
11
Plugin Contributions:
0

Re: featured products on main home page

heres the tpl_main_page, i added a couple of my own tables and thiings to customize the look of the page

<?php


// 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_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

<div id="mainWrapper">
<?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');?>
<?php  
   if ($this_is_home_page) {
 ?>
 	
 

 
 <div id="featured_show">
	
	
	
	
	<div id="brand_wrapper">

	

	<table class="brand" width="150" height="240" border="1">
  <tr>
    <td><img src="http://www.rollbackdeal.com/images/buttons/bbb.png" width="150"></a></tr></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-nike-c-1_10.html';"><a href="http://www.rollbackdeal.com/footwear-nike-c-1_10.html"><img src="http://rollbackdeal.com/images/buttons/nike.jpg"></a></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-adidas-c-1_6.html;"><a href="http://www.rollbackdeal.com/footwear-adidas-c-1_6.html"><img src="http://rollbackdeal.com/images/buttons/adidas.jpg"></a></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-jordan-c-1_4.html';"><a href="http://www.rollbackdeal.com/footwear-jordan-c-1_4.html"><img src="http://rollbackdeal.com/images/buttons/jordan.jpg"></a></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-timberland-c-1_5.html';"><a href="http://www.rollbackdeal.com/footwear-timberland-c-1_5.html"><img src="http://rollbackdeal.com/images/buttons/timberland.jpg"></a></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-new-balance-c-1_742.html';"><a href="http://www.rollbackdeal.com/footwear-new-balance-c-1_742.html"><img src="http://rollbackdeal.com/images/buttons/new-balance.jpg"></a></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-clarks-c-1_7.html';"><a href="http://www.rollbackdeal.com/footwear-clarks-c-1_7.html"><img src="http://rollbackdeal.com/images/buttons/clarks.jpg"></a></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-rocawear-c-1_745.html';"><a href="http://www.rollbackdeal.com/footwear-rocawear-c-1_745.html"><img src="http://rollbackdeal.com/images/buttons/rocawear.jpg"></a></td>
  </tr>
  <tr class="brands">
    <td onClick="document.location.href='http://www.rollbackdeal.com/footwear-rocawear-c-1_745.html';"><a href="http://www.rollbackdeal.com/footwear-rocawear-c-1_745.html"><img src="http://rollbackdeal.com/images/buttons/lacoste.jpg"></a></td>
  </tr>
  </table> 
	</div>
	
	
	
	
	
	
	<div id="left_wrapper">
        <script type="text/javascript" src="includes/templates/classic/jscript/jscript_easySlider.js"></script>

	<script type="text/javascript">
		$(document).ready(function(){	
		    
			$("#slider").easySlider({
				auto: true, 
				continuous: true,
				numeric: true
			});
			
		});	
	</script>
	 <?php 
	 
  global $db;
		$sql = "SELECT banners_title,banners_url,banners_image FROM ".TABLE_BANNERS." z where status='1' and banners_group ='Wide-Banners'";
		$result = $db->Execute($sql);
		$path = HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES;
		if ($result->RecordCount() > 0) {
		  echo '<div id="slider"><ul>';
		  while (!$result->EOF) {
				
				 echo '<li><a href="'.($result->fields['banners_url']).'"><img src="'.$path.($result->fields['banners_image']).'" class="clip" title="'.($result->fields['banners_title']).'" /></a></li>';
				
			$result->MoveNext();
		  }
		   echo '</ul></div>';
		} else {
		  echo 'no value';
		}
 ?>
 
 
 

 
 
 
    </div>

	
	
	
	
	


	
	
	
	
	
	<div id="jaz_wrapper">
	
	<table width="150">
	<tr><td>
	
	<div class="jaz_banner">
		<?php  // the right first featured show
          if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
            if ($banner->RecordCount() > 0) {
        ?>
       <?php echo zen_display_banner('static', $banner); ?>
        <?php
            }
          }
        ?>
       </div>
	
	</td></tr>
	<tr><td>
	
	<div class="jaz_banner">
			 <?php // the right second featured show
                  if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                    if ($banner->RecordCount() > 0) {
			?>
				  <?php echo zen_display_banner('static', $banner);?>
			<?php
							}
						  }
			?>
       </div>
	
	</td></tr>
	<tr><td>
	
	<div class="jaz_banner">
          <?php  // // the right third featured show
 			 if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
   				 if ($banner->RecordCount() > 0) {
				?>
			<?php echo zen_display_banner('static', $banner); ?>
			<?php
			}
		  }
		?>
       </div>
	
	</td></tr>
	<tr><td>
	
	<div class="jaz_banner">
          <?php
			  if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
				if ($banner->RecordCount() > 0) {
			?>
			<?php echo zen_display_banner('static', $banner); ?>
			<?php
            }
          }
        ?>
       </div>
	
	</td></tr>
	<tr><td>
	<a href=""><img src="http://rollbackdeal.com/images/banners/tes-banner.jpg" /></a>
	</td></tr>
	
	
	</table></div>
	
	
	
	
	




	
	
	

      <div id="footer_wrapper">
       
	   
	   
        <div id="brand_wrapper">

	

	<table class="brand" width="152" height="200" border="1">
  <tr>
    <td><img src="http://www.rollbackdeal.com/images/buttons/bbg.png" width="150"></a></td>
  </tr>
  <tr class="brands">
    <td class="brands" onClick="document.location.href='http://www.rollbackdeal.com/page_2.html';"><a href="http://www.rollbackdeal.com/page_2.html">Men</a></td>
  </tr>
  <tr class="brands">
    <td class="brands" onClick="document.location.href='http://www.rollbackdeal.com/footwear-c-1.html?filter_id=3&sort=20a';"><a href="http://www.rollbackdeal.com/footwear-c-1.html?filter_id=3&sort=20a">Kids/Juniors</a></td>
  </tr>
  <tr class="brands">
    <td class="brands" onClick="document.location.href='http://www.rollbackdeal.com/footwear-c-1.html?filter_id=14&sort=20a';"><a href="http://www.rollbackdeal.com/footwear-c-1.html?filter_id=14&sort=20a">Preschool</a></td>
  </tr>
  <tr class="brands">
    <td class="brands" onClick="document.location.href='http://www.rollbackdeal.com/footwear-c-1.html?filter_id=15&sort=20a';"><a href="http://www.rollbackdeal.com/footwear-c-1.html?filter_id=15&sort=20a">Toddlers/Infants</a></td>
  </tr>
  <tr class="brands">
    <td class="brands" onClick="document.location.href='http://www.rollbackdeal.com/footwear-c-1.html?filter_id=2&sort=20a';"><a href="http://www.rollbackdeal.com/footwear-c-1.html?filter_id=2&sort=20a">Women</a></td>
  </tr>
 
</table> 
	
	
	<table class="sizes" width="150" height="300" border="1">
	<tr>
    <td>
	
	<?php
    echo '<div id="mansize" class="rightBoxContainer">';
	echo '<h3 class="leftBoxHeading" align="left"><font color="#660000"><strong>Men\'s Size</h3>';
		?>
		
		
		
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=1&options_2=&options_3='; ?>">7</a>  
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=2&options_2=&options_3='; ?>">7.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=3&options_2=&options_3='; ?>">8</a>
     <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=4&options_2=&options_3='; ?>">8.5</a>
     <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=5&options_2=&options_3='; ?>">9</a>
       <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=6&options_2=&options_3='; ?>">9.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=7&options_2=&options_3='; ?>">10</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=8&options_2=&options_3='; ?>">10.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=9&options_2=&options_3='; ?>">11</a>
       <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=10&options_2=&options_3='; ?>">11.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=11&options_2=&options_3='; ?>">12</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=12&options_2=&options_3='; ?>">13</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=28&options_2=&options_3='; ?>">14</a> 
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=83&options_2=&options_3='; ?>">15</a> 
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=84&options_2=&options_3='; ?>">16</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=85&options_2=&options_3='; ?>">17</a>
	  
	   
	   <div class="clearboth"></div>
	
	
	</td>
	</tr>

	<tr>
	<td>
	
	<?php
		
	echo '</div>';
    echo '<div id="mansize" class="rightBoxContainer">';
			echo '<h3 class="leftBoxHeading" align="left"><font color="#660000"><strong>Kids/Juniors Size</h3>';
			?>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=13&options_3='; ?>">3.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=14&options_3='; ?>">4</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=15&options_3='; ?>">4.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=16&options_3='; ?>">5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=18&options_3='; ?>">5.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=19&options_3='; ?>">6</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=20&options_3='; ?>">6.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=21&options_3='; ?>">7</a>
  	 <div class="clearboth"></div>
	 
	 </td>
	 </tr>
	 <tr>
	 <td>
	 
	 <?php
		
	echo '</div>';
    echo '<div id="mansize" class="rightBoxContainer">';
			echo '<h3 class="leftBoxHeading" align="left"><font color="#660000"><strong>Women\'s Size</h3>';
			?>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=29'; ?>">5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=30'; ?>">5.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=31'; ?>">6</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=32'; ?>">6.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=33'; ?>">7</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=34'; ?>">7.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=35'; ?>">8</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=36'; ?>">8.5</a>
  	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=37'; ?>">9</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=38'; ?>">9.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=39'; ?>">10</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=40'; ?>">10.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=41'; ?>">11</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=42'; ?>">11.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_4=43'; ?>">12</a>
	 <div class="clearboth"></div>
	 
	 
	 </td>
	 </tr>
	 
	  <tr>
	 <td>
	 
	 <?php
		
	echo '</div>';
    echo '<div id="mansize" class="rightBoxContainer">';
			echo '<h3 class="leftBoxHeading" align="left"><font color="#660000"><strong>Preschool Size</h3></font>';
			?>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=44'; ?>">10.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=45'; ?>">11</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=46'; ?>">11.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=47'; ?>">12</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=48'; ?>">12.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=49'; ?>">13</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=50'; ?>">13.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=51'; ?>">1</a>
  	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=52'; ?>">1.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=53'; ?>">2</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=54'; ?>">2.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_6=55'; ?>">3</a>
	  
	 <div class="clearboth"></div>
	 
	 
	 </td>
	 </tr>
	 
	 <tr>
	 <td>
	 
	 <?php
		
	echo '</div>';
    echo '<div id="mansize" class="rightBoxContainer">';
			echo '<h3 class="leftBoxHeading" align="left"><font color="#660000"><strong>Toddlers/Infants Size</h3>';
			?>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=56'; ?>">2</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=57'; ?>">2.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=58'; ?>">3</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=59'; ?>">3.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=60'; ?>">4</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=61'; ?>">4.5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=62'; ?>">5</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=63'; ?>">5.5</a>
  	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=64'; ?>">6</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=65'; ?>">6.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=66'; ?>">7</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=67'; ?>">7.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=68'; ?>">8</a>
  	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=69'; ?>">8.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=70'; ?>">9</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=71'; ?>">9.5</a>
	  <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_5=72'; ?>">10</a>
	 <div class="clearboth"></div>
	 
	 
	 </td>
	 </tr>
	 
	 <tr>
	 <td>
	 
	 <?php
	echo '</div>';
    echo '<div id="clothing" class="rightBoxContainer">';
			echo '<h3 class="leftBoxHeading" align="left"><font color="#660000"><strong>Mens Clothing Size</h3>';
	?>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=&options_3=22'; ?>">S</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=&options_3=23'; ?>">M</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=&options_3=24'; ?>">L</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=&options_3=25'; ?>">XL</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=&options_3=26'; ?>">2XL</a>
      <a href="<?php echo zen_href_link('product_filter_result', '', 'NONSSL', false).'&options_1=&options_2=&options_3=27'; ?>">3XL</a>
      	 <div class="clearboth"></div>
		 
	
	</td>
	</tr>
    </table>  
	
	</div>
       
     



	
   

   </div>
	
	
<div id="featuredproductsyo">	

<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
	
	</div>
	
	
 <?php }else{ ?>
 
    
 
 <?php } ?>

<?php  
   if (!$this_is_home_page) {
 ?>
 	
<div id="contentMainWrapper">
  
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  // global disable of column_left
  $flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>

 <div id="navColumnOne"  style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
 /**
  * prepares and displays left column sideboxes
  *
  */
?>
<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div>
</div><!--endof navCoumnOne-->
<?php
}
?>
    <div id="centerColumn" >
    <?php  
   if (!$this_is_home_page) {
 ?>
<!-- bof  breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
    
    <div id="navBreadCrumb"><?php echo $breadcrumb->trail(' // '); ?></div>
    <div class="bread_bottom"></div>
<?php } ?>
<!-- eof breadcrumb -->

  <?php } ?>



<!-- 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>

<?php
//if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' && $_SESSION['customers_authorization'] != 0)) {
if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
  // global disable of column_right
  $flag_disable_right = true;
}

?>

  
</div><!--endof contentwrapper-->
<?php  
   }
 ?>
 	

<div class="clear"></div>
<?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');
?>

</div>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22112533-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</body>
6 Jul 2011, 4:55 PM
#4
jazdeep avatar

jazdeep

New Zenner

Join Date:
Feb 2011
Posts:
11
Plugin Contributions:
0

Re: featured products on main home page

this code seems to get only 9 featured products on the main page, but i dont think its right since i cant turn it on and off from the admin...

<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
6 Jul 2011, 9:37 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: featured products on main home page

<div id="featuredproductsyo">	

<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
	
	</div>
	
	
 <?php }else{ ?>

This is non standard code for that file
Look at an unaltered copy and determine why it is there

Zen-Venom Get Bitten