pandorrah Posted October 3, 2016 Share Posted October 3, 2016 (edited) In my theme, the header.tpl file reads: {* * 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 *} <!DOCTYPE HTML> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 " lang="{$lang_iso}"><![endif]--> <!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="{$lang_iso}"><![endif]--> <!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="{$lang_iso}"><![endif]--> <!--[if gt IE 8]> <html class="no-js ie9" lang="{$lang_iso}"><![endif]--> <html lang="{$lang_iso}"> <head> <meta charset="utf-8" /> <title>{$meta_title|escape:'html':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" /> {/if} <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" /> <meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" /> {if isset($js_defer) && !$js_defer && isset($js_files) && isset($js_def)} {$js_def} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script> {/foreach} {/if} {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link rel="stylesheet" href="{$css_uri}" type="text/css" media="{$media}" /> {/foreach} {/if} {$HOOK_HEADER} <!--[if IE 8]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> </head> <body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {implode value=$body_classes separator=' '}{/if}{if $hide_left_column} hide-left-column{/if}{if $hide_right_column} hide-right-column{/if}{if $content_only} content_only{/if} lang_{$lang_iso}"> {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div id="page"> <div class="header-container"> <header id="header"> <div class="banner"> <div class="container"> <div class="row"> {hook h="displayBanner"} </div> </div> </div> <div class="nav"> <div class="container"> <div class="row"> <nav>{hook h="displayNav"}</nav> </div> </div> </div> <div> <div class="container"> <div class="row"> <div id="header_logo"> <a href="{$base_dir}" title="{$shop_name|escape:'html':'UTF-8'}"> <img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"{if $logo_image_width} width="{$logo_image_width}"{/if}{if $logo_image_height} height="{$logo_image_height}"{/if}/> </a> </div> {if isset($HOOK_TOP)}{$HOOK_TOP}{/if} </div> </div> </div> </header> </div> <div class="columns-container"> <div id="columns" class="container"> {if $page_name !='index' && $page_name !='pagenotfound'} {include file="$tpl_dir./breadcrumb.tpl"} {/if} <div class="row"> <div id="top_column" class="center_column col-xs-12 col-sm-12">{hook h="displayTopColumn"}</div> </div> <div class="row"> {if isset($left_column_size) && !empty($left_column_size)} <div id="left_column" class="column col-xs-12 col-sm-{$left_column_size|intval}">{$HOOK_LEFT_COLUMN}</div> {/if} <div id="center_column" class="center_column col-xs-12 col-sm-{12 - $left_column_size - $right_column_size}"> {/if} From line 46 to 51, the code allows the menu to open into submenus, but it effects the order.tpl in such a way, that the vouchers and trashbin behind the products in the order steps dissapear: {if isset($js_defer) && !$js_defer && isset($js_files) && isset($js_def)} {$js_def} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script> {/foreach} {/if} When i delete line 46 to 51, the vouchers and trashbins appear as they should in the order.tpl, but now my muenu won't open into submenus.Please help. Thank you. Edited October 3, 2016 by pandorrah (see edit history) Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 (edited) Thank you, i changed it to lines of code. Edited October 3, 2016 by pandorrah (see edit history) Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 I deleted line 46 and line 51, no change. I also deleted line 46, white screen.With the 4 remaing lines the problem remains: ór my menu won't change into submenu items, ór the voucher codes and trash icons dissapear on the order.tpl. I have little to no php experience... Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2016 Share Posted October 3, 2016 Confused by what you want to accomplish.. back office-->advanced parms-->performance scroll down find load .js files bottom...etc. If you have non-1.6 compliant modules/theme then load .js top to see if resolved. This however is big performance hit on your time to render 'above the fold' page view. Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2016 Share Posted October 3, 2016 I don't know why original poster thinks code needs to be changed, or the responder, ndiaga helping them to do so. There is no need to change code...it's cofigurable in back office.....ndiaga, you know 'push ups', drop and give me like 100... Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 (edited) Let me make it visible: if you want i can give you url of shop. Edited October 3, 2016 by pandorrah (see edit history) Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 Fix is not working: 1. BO > Advanced > Load Javascipt at bottom YES, but no changes to problem. Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2016 Share Posted October 3, 2016 (edited) No, don't say that code needs to be changed. He changed the code and that was the mistake. I was just showing him where the issue is. thanks for clarification...so no push ups? Fix is not working: 1. BO > Advanced > Load Javascipt at bottom YES, but no changes to problem. not working covers a lot of area.... I would think you have some non-compliant menu or other .js issue non native. It's best for community help to describe issue before making core changes...that is how to get best advice's. Edited October 3, 2016 by El Patron (see edit history) 1 Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 Would this be a missing javascript from the theme itself? In DEV MODE i have no errors whatsoever. I don't know where to go from here. Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2016 Share Posted October 3, 2016 Would this be a missing javascript from the theme itself? In DEV MODE i have no errors whatsoever. I don't know where to go from here. post front office url where community can test, then we can use chrome tools for example to debug .js loading. I suggest/recommend loading .js bottom....but detail each time what errors you are getting..... Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 https://www.pandorrah.nl/comics/ site is not live for public, but settings are correct to go live. Just for this one little problem. Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2016 Share Posted October 3, 2016 (edited) https://www.pandorrah.nl/comics/ site is not live for public, but settings are correct to go live. Just for this one little problem. ok, I see shop, now .js loaded bottom....now give ndiaga and I idea how to recreate your issue. Remember details details for each post so we dont' play 20 questions. also tell us where you got this theme...the link... Edited October 3, 2016 by El Patron (see edit history) Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 (edited) I am using Firefox 49 to create PS, and i have the error in Firefox shown.I now use Chrome for the website, and the error is not showing. Chrome , Microsoft Edge and Internet Explorer work fine. Must be something in Firefox then? Edited October 3, 2016 by pandorrah (see edit history) Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 (edited) If you make an order (order some stuff from the website) and go to checkout:in checkout screen i have the problem: not working submenus, ór not showing vouchers and trashbins behind items (in Firefox, not in Chrome, Microsoft Edge or Internet Explorer). Link for theme is: https://www.prestashop.com/forums/topic/334322-free-prestashop-16-theme-minimal/ in forumpost.Thank you in advance for your time Edited October 3, 2016 by pandorrah (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 3, 2016 Share Posted October 3, 2016 If you make an order (order some stuff from the website) and go to checkout: in checkout screen i have the problem: not working submenus, ór not showing vouchers and trashbins behind items (in Firefox, not in Chrome). Link for theme is: https://www.prestashop.com/forums/topic/334322-free-prestashop-16-theme-minimal/ in forumpost. Thank you in advance for your time https://www.prestashop.com/forums/topic/334322-free-prestashop-16-theme-minimal/?p=2401709 there are similar questions in the theme posting you can try....but for me anyway....you need to wait for developer response. best of luck Link to comment Share on other sites More sharing options...
pandorrah Posted October 3, 2016 Author Share Posted October 3, 2016 Thank you very much, Sir. I will adress it there then. Thank you again for helping. Link to comment Share on other sites More sharing options...
Apium Posted October 5, 2016 Share Posted October 5, 2016 I was just looking around to see if this had been solved, and when trying to add a product to the cart, I got this error message: Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: Unexpected token in JSON at position 0' responseText: {"products":[{"id":3038,"link":"https:\/\/www.pandorrah.nl\/comics\/actie-figuren\/3038-guardians-of-the-galaxy-rocket-raccoon-met-blaster.html","quantity":1,"image":"https:\/\/www.pandorrah.nl\/comics\/3006-home_default\/guardians-of-the-galaxy-rocket-raccoon-met-blaster.jpg","image_cart":"https:\/\/www.pandorrah.nl\/comics\/3006-cart_default\/guardians-of-the-galaxy-rocket-raccoon-met-blaster.jpg","priceByLine":"\u20ac 20,00","name":"Guardians Of The Galaxy Rocket Raccoon Met Blaster","price":"\u20ac 20,00","price_float":16.53,"idCombination":0,"idAddressDelivery":0,"is_gift":false,"hasAttributes":false,"hasCustomizedDatas":false,"customizedDatas":[]}],"discounts":[],"shippingCost":"\u20ac 4,95","shippingCostFloat":4.95,"taxCost":"\u20ac 4,33","wrappingCost":"\u20ac 0,00","nbTotalProducts":1,"total":"\u20ac 24,95","productTotal":"\u20ac 20,00","freeShipping":"\u20ac 15,00","freeShippingFloat":15,"hasError":false,"crossSelling":""} Are you aware of this? Link to comment Share on other sites More sharing options...
pandorrah Posted October 5, 2016 Author Share Posted October 5, 2016 I have no idea what that means and yes: it is an error. Wasn't there this morning. Link to comment Share on other sites More sharing options...
pandorrah Posted October 5, 2016 Author Share Posted October 5, 2016 Problem solved. That specific error was xenforum module. It has several other errors, so i deactivated it. Link to comment Share on other sites More sharing options...
El Patron Posted October 5, 2016 Share Posted October 5, 2016 my advice? you get what you pay for. For the money you save with 'free theme', you spend countless hours debugging. Budget for and then buy a 'high qualiity' theme, which 1) works and 2) comes with tools you didn't know even existed. This is advice of experience...happy day, el Link to comment Share on other sites More sharing options...
Apium Posted October 5, 2016 Share Posted October 5, 2016 I second that. Sometimes I find that one of my clients might be hesitant at first to spend money on a theme, but when they see the sizable difference in features, support and quality, they are generally easily convinced. It's an investment, much more so than a sunk cost! Link to comment Share on other sites More sharing options...
pandorrah Posted October 6, 2016 Author Share Posted October 6, 2016 Has nothing to do with cost, but preferences. Also, i have lots of paid modules and sometimes they give errors also.For now, no problems. Link to comment Share on other sites More sharing options...
El Patron Posted October 6, 2016 Share Posted October 6, 2016 Has nothing to do with cost, but preferences. Also, i have lots of paid modules and sometimes they give errors also. For now, no problems. it has to do with what one gets with high quality theme....if you never had one then you must rely on others to tell you what you are missing. Link to comment Share on other sites More sharing options...
pandorrah Posted October 9, 2016 Author Share Posted October 9, 2016 Let's agree to disagree on that one. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now