Hi,
I have made a quickstart installation and it looks like something is wrong. jQuery is not loaded, Mega Menu is not working, quick preview also not working. Can you tell me what is wrong with my installation?
Thank you.
4 answers
Please post this file: app/design/frontend/default/jm_sportsgear/template/page/html/head.phtml
will check and provide you the solution
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* egory design
* @package base_default
* Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<title><?php echo $this->getTitle() ?></title>
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
<?php if($this->getCanLoadTinyMce()): ?>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<?php endif; ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes"/>
<meta name="HandheldFriendly" content="true" />
<meta name="apple-touch-fullscreen" content="YES" />
<meta name="description" content="<?php echo htmlspecialchars($this->getDescription()) ?>" />
<meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />
<meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
<link rel="icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />
<?php echo $this->getCssJsHtml() ?>
<?php echo $this->getChildHtml() ?>
<?php echo $this->helper(‘core/js’)->getTranslatorScript() ?>
<?php echo $this->getIncludes() ?>
<?php if(!defined(‘JM_ADD_JQUERY’)): ?>
<?php $jquery_url= $this->getSkinUrl(‘js/jquery/jquery.js’);?>
<?php if (@fopen($jquery_url,"r")==true):?>
<script type="text/javascript" src="<?php echo $jquery_url ?>"></script>
<?php define(‘JM_ADD_JQUERY’, true); ?>
<?php endif; ?>
<?php endif;?>
<script type="text/javascript">
//ie10 class
var doc = document.documentElement;
if(navigator.userAgent.indexOf("MSIE 10.0")){
doc.className+=’ ie10′;
}
var Baseurl = ‘<?php echo str_replace("index.php/","",Mage::getBaseUrl()); ?>’;
</script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/jm.script.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/jquery/plugins/iscroll/iscroll.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/jquery/plugins/colorbox/jquery.colorbox.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/jquery/plugins/thumbnailscroller/jquery.thumbnailScroller.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/jquery/jquery.noconflict.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/touchmenu.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/off-canvas.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/jquery/plugins/nicescroll/jquery.nicescroll.js’) ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl(‘js/jquery.hoverIntent.minified.js’) ?>"></script>
<!--[if IE]>
<link type="text/css" href="<?php echo $this->getSkinUrl(‘css/pie.php’) ?>" rel="stylesheet" />
<![endif]-->
<link href="http://fonts.googleapis.com/css?family=Titillium+Web:400,600,700" rel="stylesheet" type="text/css" />
Make a Backup of the head.phtml and replace this code
PHP Code:
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* egory design
* @package base_default
* Copyright (c) 2013 Magento Inc. ([url]http://www.magentocommerce.com[/url])
* @license [url]http://opensource.org/licenses/afl-3.0.php[/url] Academic Free License (AFL 3.0)
*/
?>
<title><?php echo $this->getTitle() ?></title>
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>" />
<?php if($this->getCanLoadTinyMce()): ?>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<?php endif; ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes"/>
<meta name="HandheldFriendly" content="true" />
<meta name="apple-touch-fullscreen" content="YES" />
<meta name="description" content="<?php echo htmlspecialchars($this->getDescription()) ?>" />
<meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />
<meta name="robots" content="<?php echo htmlspecialchars($this->getRobots()) ?>" />
<link rel="icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->getFaviconFile(); ?>" type="image/x-icon" />
<?php echo $this->getCssJsHtml() ?>
<?php echo $this->getChildHtml() ?>
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
<?php echo $this->getIncludes() ?>
<?php if(!defined('JM_ADD_JQUERY')): ?>
<?php $jquery_url= $this->getSkinUrl('js/jquery/jquery.js');?>
<?php if (@fopen($jquery_url,"r")==true):?>
<script type="text/javascript" src="<?php echo $jquery_url ?>"></script>
<?php define('JM_ADD_JQUERY', true); ?>
<?php else: ?>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<?php define('JM_ADD_JQUERY', true); ?>
<?php endif; ?>
<?php endif;?>
<script type="text/javascript">
//ie10 class
var doc = document.documentElement;
if(navigator.userAgent.indexOf("MSIE 10.0")){
doc.className+=' ie10';
}
var Baseurl = '<?php echo str_replace("index.php/","",Mage::getBaseUrl()); ?>';
</script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jm.script.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/plugins/iscroll/iscroll.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/plugins/colorbox/jquery.colorbox.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/plugins/thumbnailscroller/jquery.thumbnailScroller.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/jquery.noconflict.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/touchmenu.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/off-canvas.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery/plugins/nicescroll/jquery.nicescroll.js') ?>"></script>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/jquery.hoverIntent.minified.js') ?>"></script>
<!--[if IE]>
<link type="text/css" href="<?php echo $this->getSkinUrl('css/pie.php') ?>" rel="stylesheet" />
<![endif]-->
<link href="http://fonts.googleapis.com/css?family=Titillium+Web:400,600,700" rel="stylesheet" type="text/css" />
Thank you for your help. It’s working now.
This question is now closed