Jump to content

Issues with 1.6 Top Menu and theme


Recommended Posts

Hi,

 

Upgraded from 1.5 to 1.6 and my theme was not compatible so I bought a new one that looked nice. Problem I'm having is that the top menu does not work on my iPhone but it does on a pc. I also can't go to "Themes" in back office anymore. It just loads and gives a blank screen.

 

http://gdmperformance.se please check.

 

"Kategorier" can't expand. Also with the default handling of the top menu "Trimsatser" was pointing to index.php and not the categories. Strange

 

Regards

Göran

Link to comment
Share on other sites

Hi,

 

Upgraded from 1.5 to 1.6 and my theme was not compatible so I bought a new one that looked nice. Problem I'm having is that the top menu does not work on my iPhone but it does on a pc. I also can't go to "Themes" in back office anymore. It just loads and gives a blank screen.

 

http://gdmperformance.se please check.

 

"Kategorier" can't expand. Also with the default handling of the top menu "Trimsatser" was pointing to index.php and not the categories. Strange

 

Regards

Göran

 

Your theme is badly coded. It looks like it was coded for PS 1.5, and then the coder tried to make it responsive PS 1.6 theme, but he did it very poorly. I doubt that someone will fix it for you for free.

Link to comment
Share on other sites

Yes, had to use a modified version of superfish-modified.css found on this forum to even get the menu to work on pc. Looks better but the categories menu won't work :( just points to index.php then. Have now removed the theme folder and re-uploaded the untouched theme folder from the theme.

 

Haven't you changed .tpl and .js files of Top menu?

Link to comment
Share on other sites

Maybe try to change http://gdmperformance.se/themes/theme955/js/modules/blocktopmenu/js/blocktopmenu.js with this content, that I took from demo site, it's a bit different from yours:

/*
* 2007-2014 PrestaShop
*
* 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.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 PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

var responsiveflagMenu = false;
var categoryMenu = $('ul.sf-menu');
var mCategoryGrover = $('.sf-contener .cat-title');

$(document).ready(function(){
	responsiveMenu();
	$(window).resize(responsiveMenu);
});

// check resolution
function responsiveMenu()
{
   if ($(document).width() <= 767 && responsiveflagMenu == false)
	{
		menuChange('enable');
		responsiveflagMenu = true;
	}
	else if ($(document).width() >= 768)
	{
		menuChange('disable');
		responsiveflagMenu = false;
	}
}

// init Super Fish Menu for 767px+ resolution
function desktopInit()
{
	mCategoryGrover.off();
	mCategoryGrover.removeClass('active');
	$('.sf-menu > li > ul').removeClass('menu-mobile').parent().find('.menu-mobile-grover').remove();
	$('.sf-menu').removeAttr('style');
	categoryMenu.superfish('init');
	//add class for width define
	$('.sf-menu > li > ul').addClass('submenu-container clearfix'); 
	 // loop through each sublist under each top list item
    $('.sf-menu > li > ul').each(function(){
        i = 0;
        //add classes for clearing
        $(this).each(function(){ 
                if ($(this).attr('id') != "category-thumbnail") 
                {
                    i++;
                    if(i % 2 == 1)
                        $(this).addClass('first-in-line-xs');
                    else if (i % 5 == 1)
                        $(this).addClass('first-in-line-lg');
                }
        });
    });
}

function mobileInit()
{
	categoryMenu.superfish('destroy');
	$('.sf-menu').removeAttr('style');

	mCategoryGrover.on('click', function(){
		$(this).toggleClass('active').parent().find('ul.menu-content').stop().slideToggle('medium');
	});

	$('.sf-menu > li > ul').addClass('menu-mobile clearfix').parent().prepend('<span class="menu-mobile-grover"></span>');

	$(".sf-menu .menu-mobile-grover").on('click touchstart', function(){
		var catSubUl = $(this).next().next('.menu-mobile');
		if (catSubUl.is(':hidden'))
		{
			catSubUl.slideDown();
			$(this).addClass('active');
		}
		else
		{
			catSubUl.slideUp();
			$(this).removeClass('active');
		}
		return false;
	});

	if ('ontouchstart' in document.documentElement)
	{
		$('#block_top_menu > ul:first > li > a').on('click', function(e){
			if ($(this).parent('li').find('ul').length)
				e.preventDefault();
		});
	}
}

// change the menu display at different resolutions
function menuChange(status)
{
	status == 'enable'? mobileInit(): desktopInit();
}
Link to comment
Share on other sites

Tried 1 klick upgrade to roll back to 1.5.3.1 but got Service Unavailable " jqXHR error and now I can't access admin page and store is in maintenance mode :( The only reason I wanted to upgrade was so I wouldn't need to both have default images and make copies with the theme name so that they would display. Regret this now... :(

Link to comment
Share on other sites

Tried 1 klick upgrade to roll back to 1.5.3.1 but got Service Unavailable " jqXHR error and now I can't access admin page and store is in maintenance mode :( The only reason I wanted to upgrade was so I wouldn't need to both have default images and make copies with the theme name so that they would display. Regret this now... :(

 

Looks like you really messed up your installation. Probably, you better start with fresh install. 

Link to comment
Share on other sites

×
×
  • Create New...