Post by sash_007 » Sat Sep 17, 2011 6:59 am

Hello friends,

I have just taken open cart 1.4.9.5 fro my practice and made a new folder and copy all theme files and deleted all contents from it now i first started wrking on header.tpl now my question is if i just complete the header.tpl will i see anything in the front end? i also want to know do i have to use the same div names to make it work or i can use mine
my html can be seen here http://mydomain007.host56.com/bible/

New member

Posts

Joined
Wed Apr 28, 2010 10:33 am

Post by Xsecrets » Sat Sep 17, 2011 7:54 am

well actually you should have only copied the header and stylesheet. That way all the other files fall back to the default, and if you need to upgrade you automatically pickup any changes in those files.

You will see changes on the frontend if you made any visible changes by only changing the header. You do not have to use the same div id's, but you will need to update the stylesheet respectively if you change them.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by sash_007 » Sat Sep 17, 2011 8:19 am

this is my header.tpl

Code: Select all

<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo str_replace('&', '&', $link['href']); ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/stylesheet.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
DD_belatedPNG.fix('img, #header .div3 a, #content .left, #content .right, .box .top');
</script>
<![endif]-->
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>

<!-- include Cycle plugin -->
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
</script>
</head>
<body>
   <div id="container">
    <div id="header_top">
	  <p class="left">Welcome,<a href="">Guest</a></p>
	</div><!--header_top-->
       <div id="header">
	    <div id="light"></div> <!--light-->
          <div id="logo"><a href=""><img src="images/logo.png" alt="bible" /></a></div><!--logo--> 
		   <div id="search">
          
                        <input type="text" class="field"  value="Keywords" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #666666;" />
                        <input type="image"  class="button" src="" value=""/>
		 </div><!--search-->
		 
						
	   </div><!--header-->
	   <div id="nav">
	     <ul id="top_nav">
		    <li><a href="" class="selected">Home</a></li>
			<li><a href="">Special Offers</a></li>
			<li><a href="">Log in</a></li>
			<li><a href="">Account</a></li>
			<li><a href="">Basket</a></li>
			<li><a href="">Checkout</a></li>
		 </ul><!--top_nav-->
	  </div><!--nav-->
	   <div id="nav2">
	        <ul id="cat_nav">
		    <li class="noimg"><a href="" class="selected">GENESIS</a></li>
			<li><a href="">EXODUS</a></li>
			<li><a href="">LEVITICUS</a></li>
			<li><a href="">NUMBERS</a></li>
			<li><a href="">DEUTERONOMY</a></li>
			<li><a href="">JOSHUA</a></li>
			<li><a href="">Judges</a></li>
		 </ul><!--top_nav-->
	   </div><!--nav2-->
	   <div id="banner">
	  <div class="slideshow">
	  <div class="slide_cont">
	   <div class="banner_left">
	    <h1>Judges</h1>
		<h2>Then sang Deborah and Barak the son of Abinoam on that day</h2>
		<p class="slidetxt">Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
		Suspendisse tincidunt sodales egestas. Aenean pharetra lacinia sem, 
		id posuere lorem accumsan fauci, eget imperdiet mauris</p>
		<p class="sliderprice">£6.40</p>
		<a href=""><img src="images/slidercart.png" alt="buynow" border="0"/></a>
	   </div><!--banner_left-->
	   <div class="banner_right">
	   <img src="images/slide1.jpg" class="rounded-corners "  alt="slide1"/>
	    </div><!--banner_right-->
		</div><!--slide_cont-->
		  <div class="slide_cont">
		<div class="banner_left">
	    <h1>Judges</h1>
		<h2>Gideon and his three hundred men</h2>
		<p class="slidetxt">Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
		Suspendisse tincidunt sodales egestas. Aenean pharetra lacinia sem, 
		id posuere lorem accumsan fauci, eget imperdiet mauris</p>
		<p class="sliderprice">£10.40</p>
		<a href=""><img src="images/slidercart.png" alt="buynow" border="0"/></a>
	   </div><!--banner_left-->
	   <div class="banner_right">
	   <img src="images/slide2.jpg" alt="slide2"/>
	    </div><!--banner_right-->
			</div><!--slide_cont-->
			
			<div class="slide_cont">
		<div class="banner_left">
	    <h1>Judges</h1>
		<h2>Jephthah_s daughter sent away for two months</h2>
		<p class="slidetxt">Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
		Suspendisse tincidunt sodales egestas. Aenean pharetra lacinia sem, 
		id posuere lorem accumsan fauci, eget imperdiet mauris</p>
		<p class="sliderprice">£15.40</p>
		<a href=""><img src="images/slidercart.png" alt="buynow" border="0"/></a>
	   </div><!--banner_left-->
	   <div class="banner_right">
	   <img src="images/slide3.jpg" alt="slide3"/>
	    </div><!--banner_right-->
			</div><!--slide_cont-->
		</div><!--slideshow-->
	   </div><!--banner-->
	   <div id="banner_btm"></div><!--banner_btm-->
	      <h2>Featured Images</h2>
		  <!--http://www.bxslider.com/examples/display-move-multiple-slides-once-example-one-->
		   <div id="holder">
		   <script type="text/javascript">
				(function($){	
				  $(function(){
					$('#slider1').bxSlider({
					  displaySlideQty: 4,
					  moveSlideQty: 1
					});
				  });	
				}(jQuery))
				</script>
		     <div class ="demo-wrap"> 
			   <div class="bx-wrapper">
			     <div class="bx-window">
				   <ul id="slider1" class="multiple">
				     <li>
						<a href=""><img src="images/fet1.jpg" width="150" height="176" /></a> 
					  </li>
					  <li>
						<a href=""><img src="images/fet2.jpg" width="150" height="176" /></a>
					  </li>
					  <li>
						<a href=""><img src="images/fet3.jpg" width="150" height="176" /></a>
					  </li>
					  <li>
						<a href=""><img src="images/fet4.jpg" width="150" height="176" /></a>
						</li>
						
						 <li>
						<a href=""><img src="images/fet1.jpg" width="150" height="176" /></a>
					  </li>
					  <!-- <li>
						<a href=""><img src="images/fet2.jpg" width="150" height="176" /></a>
					  </li>
					  <li>
						<a href=""><img src="images/fet3.jpg" width="150" height="176" /></a>
					  </li>
					  <li>
						<a href=""><img src="images/fet4.jpg" width="150" height="176" />
						</li>-->
				   </ul><!--slider1-->
				  </div><!--bx-window-->
				  <a href="" class="bx-prev">prev</a>
				   <a href="" class="bx-next">next</a>
			   </div><!--bx-wrapper-->
			 </div><!--demo-wrap-->
		   </div><!--holder-->
		   <div id="content_full">
		     <div class="col4 rounded-corners special">
			 <a href=""><img src="images/special.jpg" alt="special" /></a>
			 </div><!--col4-->
			 <div class="col4 rounded-corners">
			 <img src="images/pic1.jpg"/>
			 <h2 class="title">Kings And Ahab</h2>
			 <h3>£6.40</h3>
			 <div class="addcart"><a href=""> <img src="images/addcart.png"/></a></div>
			  <div class="info"><a href=""> <img src="images/info.png"/></a></div>
			  <div class="clear"></div>
			
			 </div><!--col4-->
			 <div class="col4 rounded-corners">
			  <img src="images/pic2.jpg"/>
			 <h2>Kings And Ahab</h2>
			 <h3>£6.40</h3>
			  <div class="addcart"><a href=""> <img src="images/addcart.png"/></a></div>
			 <div class="info"><a href=""> <img src="images/info.png"/></a></div>
			  <div class="clear"></div>
			 </div><!--col4-->
			 <div class="col4 rounded-corners">
			   <img src="images/pic3.jpg"/>
			 <h2>Kings And Ahab</h2>
			 <h3>£6.40</h3>
			  <div class="addcart"><a href=""> <img src="images/addcart.png"/></a></div>
			 <div class="info"><a href=""> <img src="images/info.png" alt="info"/></a></div>
			  <div class="clear"></div>
			 
			 </div><!--col4-->
			
			 <div class="sep"></div>
			   <div class="col4 rounded-corners special">
			   <img src="images/news_icon.png" alt="news" class="newsico"/><h3>Signup For Our Newsletter</h3>
			   <div class="subscribe">
			    <input type="text" class="news"  value="Keywords" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #666666;" />
				<input type="image"  class="newsbtn" src="images/news_btn.png" value=""/>
				</div><!--subscribe-->
				<div class="clear"></div>
				<div class="sep"></div>
				<h3>Follow Us</h3>
			    <ul id="social">
		    <li><a href=""><img src="images/twitter.png" alt="twitter"/></a></li>
			<li><a href=""><img src="images/in.png" alt="twitter"/></a></li>
			<li><a href=""><img src="images/facebook.png" alt="twitter"/></a></li>
		
		 </ul><!--social-->
			 </div><!--col4-->
			 <div class="col4 rounded-corners">
			   <img src="images/pic3.jpg"/>
			 <h2>Kings And Ahab</h2>
			 <h3>£6.40</h3>
			  <div class="addcart"><a href=""> <img src="images/addcart.png"/></a></div>
			 <div class="info"><a href=""> <img src="images/info.png"/></a></div>
			  <div class="clear"></div>
			 </div><!--col4-->
			 <div class="col4 rounded-corners">
			   <img src="images/pic2.jpg"/>
			 <h2>Kings And Ahab</h2>
			 <h3>£6.40</h3>
			  <div class="addcart"><a href=""> <img src="images/addcart.png"/></a></div>
			 <div class="info"><a href=""> <img src="images/info.png"/></a></div>
			  <div class="clear"></div>
			 </div><!--col4-->
			 <div class="col4 rounded-corners">
			 <img src="images/pic1.jpg"/>
			 <h2>Kings And Ahab</h2>
			 <h3>£6.40</h3>
			  <div class="addcart"><a href=""> <img src="images/addcart.png"/></a></div>
			 <div class="info"><a href=""> <img src="images/info.png"/></a></div>
			  <div class="clear"></div>
			 </div><!--col4-->
		   </div><!--content_full-->
		   
		   <div class="sep"></div>
		   <div id="footer">
		      <div class="aboutus">
			    <h3>About Bible Illustrations</h3>
				<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tincidunt sodales egestas. 
				Aenean pharetra lacinia sem, id posuere lorem accumsan faucibus. Vestibulum vel augue nisl, nec fringilla lacus. 
				Suspendisse eget tortor lectus, eget imperdiet mauris. 
				Morbi fringilla pellentesque magna, eu blandit ante vehicula a. Phasellus nunc eros, 
				tempus nec gravida sed, lacinia et lorem</p>
			  </div><!--aboutus-->
			  <div class="col3">
			  <h3>Store</h3>
			  <ul class="footer_links">
					<li><a href="" class="selected">Home</a></li>
					<li><a href="">Special Offers</a></li>
					<li><a href="">Log in</a></li>
					<li><a href="">Account</a></li>
					<li><a href="">Basket</a></li>
					
			</ul>
			  </div><!--col3-->
			  <div class="col3">
			     <h3>Information</h3>
			  <ul class="footer_links">
					<li><a href="">About Bible Illustrations</a></li>
					<li><a href="">Privacy Policy</a></li>
					<li><a href="">Terms & Conditions</a></li>
					<li><a href="">Contact Ust</a></li>
					<li><a href="">Sitemap</a></li>
				
			</ul>
			  </div><!--col3-->
			  <div class="col3">
			     <h3>Categories</h3>
			  <ul class="footer_links">
					<li><a href="">Genesis</a></li>
					<li><a href="">Exodus</a></li>
					<li><a href="">Leviticus</a></li>
					<li><a href="">Numbers</a></li>
					<li><a href="">Joshua</a></li>
					
			</ul>
			 
		   </div><!--footer-->
		   <div class="footer_lower">
		     <p class="footer_lower_left">Powered By <a href="">OpenCart</a> Bible Illustartions &copy; 2011</p>
			<div class="footer_lower_right">
			 <ul id="cards">
		    <li><a href=""><img src="" alt="" class="discover"/></a></li>
			<li><a href=""><img src="" alt="" class="visa"/></a></li>
			<li><a href=""><img src="" alt="" class="paypal"/></a></li>
		   <li><a href=""><img src="" alt="" class="mastercard"/></a></li>
			<li><a href=""><img src="" alt="" class="americanxpress"/></a></li>
			 </ul><!--cards-->
			</div><!--footer_lower_right-->
		
		
		   </div><!--footer_lower-->
	   
   </div><!--container-->
</body>
</html>
i have not separated the segments yet and i have put my stylesheet in the stylesheets folder and got images too but i even cant see the html?
just see blank page

New member

Posts

Joined
Wed Apr 28, 2010 10:33 am

Post by Xsecrets » Sat Sep 17, 2011 9:21 am

well if you get a blank page that is a php fatal error meaning you have something wrong with some of your php somewhere. Where did you get this variable? <?php echo $template; ?> as far as I know there is no $template variable.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by sash_007 » Sat Sep 17, 2011 9:47 am

well since i am new to php i was just trying implement php from the default template in my html thats it so i will not have
<?php echo $template; ?>/>? wht shld i have instead?

this is default header.tpl

Code: Select all

<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo str_replace('&', '&', $link['href']); ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/stylesheet.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
DD_belatedPNG.fix('img, #header .div3 a, #content .left, #content .right, .box .top');
</script>
<![endif]-->
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<script type="text/javascript"><!--
function bookmark(url, title) {
	if (window.sidebar) { // firefox
    window.sidebar.addPanel(title, url, "");
	} else if(window.opera && window.print) { // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) {// ie
   		window.external.AddFavorite(url, title);
	}
}
//--></script>
</head>
<body>
<div id="container">
<div id="header">
  <div class="div1">
    <div class="div2">
      <?php if ($logo) { ?>
      <a href="<?php echo str_replace('&', '&', $home); ?>"><img src="<?php echo $logo; ?>" title="<?php echo $store; ?>" alt="<?php echo $store; ?>" /></a>
      <?php } ?>
    </div>
    <div class="div3"><a href="<?php echo str_replace('&', '&', $special); ?>" style="background-image: url('catalog/view/theme/default/image/special.png');"><?php echo $text_special; ?></a><a onclick="bookmark(document.location, '<?php echo addslashes($title); ?>');" style="background-image: url('catalog/view/theme/default/image/bookmark.png');"><?php echo $text_bookmark; ?></a><a href="<?php echo str_replace('&', '&', $contact); ?>" style="background-image: url('catalog/view/theme/default/image/contact.png');"><?php echo $text_contact; ?></a><a href="<?php echo str_replace('&', '&', $sitemap); ?>" style="background-image: url('catalog/view/theme/default/image/sitemap.png');"><?php echo $text_sitemap; ?></a></div>
    <div class="div4"><a href="<?php echo str_replace('&', '&', $home); ?>" id="tab_home"><?php echo $text_home; ?></a>
      <?php if (!$logged) { ?>
      <a href="<?php echo str_replace('&', '&', $login); ?>" id="tab_login"><?php echo $text_login; ?></a>
      <?php } else { ?>
      <a href="<?php echo str_replace('&', '&', $logout); ?>" id="tab_logout"><?php echo $text_logout; ?></a>
      <?php } ?>
      <a href="<?php echo str_replace('&', '&', $account); ?>" id="tab_account"><?php echo $text_account; ?></a><a href="<?php echo str_replace('&', '&', $cart); ?>" id="tab_cart"><?php echo $text_cart; ?></a><a href="<?php echo str_replace('&', '&', $checkout); ?>" id="tab_checkout"><?php echo $text_checkout; ?></a></div>
    <div class="div5">
      <div class="left"></div>
      <div class="right"></div>
      <div class="center">
        <div id="search">
          <div class="div8"><?php echo $entry_search; ?>&nbsp;</div>
          <div class="div9">
            <?php if ($keyword) { ?>
            <input type="text" value="<?php echo $keyword; ?>" id="filter_keyword" />
            <?php } else { ?>
            <input type="text" value="<?php echo $text_keyword; ?>" id="filter_keyword" onclick="this.value = '';" onkeydown="this.style.color = '#000000'" style="color: #999;" />
            <?php } ?>
            <select id="filter_category_id">
              <option value="0"><?php echo $text_category; ?></option>
              <?php foreach ($categories as $category) { ?>
              <?php if ($category['category_id'] == $category_id) { ?>
              <option value="<?php echo $category['category_id']; ?>" selected="selected"><?php echo $category['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $category['category_id']; ?>"><?php echo $category['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select>
          </div>
          <div class="div10">&nbsp;&nbsp;<a onclick="moduleSearch();" class="button"><span><?php echo $button_go; ?></span></a> <a href="<?php echo str_replace('&', '&', $advanced); ?>"><?php echo $text_advanced; ?></a></div>
        </div>
      </div>
    </div>
  </div>
  <div class="div6">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
	  <?php if (isset($common_error)) { ?>
	  <div class="warning"><?php echo $common_error; ?></div>
	  <?php } ?>
      <div id="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <?php echo $breadcrumb['separator']; ?><a href="<?php echo str_replace('&', '&', $breadcrumb['href']); ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
      </div>
      <div class="div7">
        <?php if ($currencies) { ?>
        <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="currency_form">
          <div class="switcher">
            <?php foreach ($currencies as $currency) { ?>
            <?php if ($currency['code'] == $currency_code) { ?>
            <div class="selected"><a><?php echo $currency['title']; ?></a></div>
            <?php } ?>
            <?php } ?>
            <div class="option">
              <?php foreach ($currencies as $currency) { ?>
              <a onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $('#currency_form').submit();"><?php echo $currency['title']; ?></a>
              <?php } ?>
            </div>
          </div>
          <div style="display: inline;">
            <input type="hidden" name="currency_code" value="" />
            <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          </div>
        </form>
        <?php } ?>
        <?php if ($languages) { ?>
        <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="language_form">
          <div class="switcher">
            <?php foreach ($languages as $language) { ?>
            <?php if ($language['code'] == $language_code) { ?>
            <div class="selected"><a><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" />&nbsp;&nbsp;<?php echo $language['name']; ?></a></div>
            <?php } ?>
            <?php } ?>
            <div class="option">
              <?php foreach ($languages as $language) { ?>
              <a onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" />&nbsp;&nbsp;<?php echo $language['name']; ?></a>
              <?php } ?>
            </div>
          </div>
          <div>
            <input type="hidden" name="language_code" value="" />
            <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
          </div>
        </form>
        <?php } ?>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript"><!-- 
function getURLVar(urlVarName) {
	var urlHalves = String(document.location).toLowerCase().split('?');
	var urlVarValue = '';
	
	if (urlHalves[1]) {
		var urlVars = urlHalves[1].split('&');

		for (var i = 0; i <= (urlVars.length); i++) {
			if (urlVars[i]) {
				var urlVarPair = urlVars[i].split('=');
				
				if (urlVarPair[0] && urlVarPair[0] == urlVarName.toLowerCase()) {
					urlVarValue = urlVarPair[1];
				}
			}
		}
	}
	
	return urlVarValue;
} 

$(document).ready(function() {
	route = getURLVar('route');
	
	if (!route) {
		$('#tab_home').addClass('selected');
	} else {
		part = route.split('/');
		
		if (route == 'common/home') {
			$('#tab_home').addClass('selected');
		} else if (route == 'account/login') {
			$('#tab_login').addClass('selected');	
		} else if (part[0] == 'account') {
			$('#tab_account').addClass('selected');
		} else if (route == 'checkout/cart') {
			$('#tab_cart').addClass('selected');
		} else if (part[0] == 'checkout') {
			$('#tab_checkout').addClass('selected');
		} else {
			$('#tab_home').addClass('selected');
		}
	}
});
//--></script>
<script type="text/javascript"><!--
$('#search input').keydown(function(e) {
	if (e.keyCode == 13) {
		moduleSearch();
	}
});

function moduleSearch() {	
	pathArray = location.pathname.split( '/' );
	
	url = '<?php echo HTTP_SERVER; ?>';
		
	url += 'index.php?route=product/search';
		
	var filter_keyword = $('#filter_keyword').attr('value')
	
	if (filter_keyword) {
		url += '&keyword=' + encodeURIComponent(filter_keyword);
	}
	
	var filter_category_id = $('#filter_category_id').attr('value');
	
	if (filter_category_id) {
		url += '&category_id=' + filter_category_id;
	}
	
	location = url;
}
//--></script>
<script type="text/javascript"><!--
$('.switcher').bind('click', function() {
	$(this).find('.option').slideToggle('fast');
});
$('.switcher').bind('mouseleave', function() {
	$(this).find('.option').slideUp('fast');
}); 
//--></script>

New member

Posts

Joined
Wed Apr 28, 2010 10:33 am

Post by Xsecrets » Sat Sep 17, 2011 2:00 pm

just use catalog/view/theme/yourthemfolder/stylesheet/stylesheet.css like the default template does.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by sash_007 » Sun Sep 18, 2011 3:09 pm

sorry i still see blank page i changed as u said

Code: Select all

<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/stylesheet.css" />
this to this

Code: Select all

<link rel="stylesheet" type="text/css" href="catalog/view/theme/bible2/stylesheet/stylesheet.css" />
but my query is i should at least see the plain html? instead of blank page or am i missing something how open cart works?

New member

Posts

Joined
Wed Apr 28, 2010 10:33 am

Post by jon22 » Tue Sep 20, 2011 8:17 pm

Hi, just had a look at your site, the slideshow is not displaying properly in firefox. Try removing the overflow:hidden tag for that div and then test in IE.

JME Web Design


User avatar
New member

Posts

Joined
Thu May 28, 2009 5:44 pm

Who is online

Users browsing this forum: No registered users and 37 guests