Ste Berrill Posted March 21, 2011 Share Posted March 21, 2011 Hi all, im pretty new to prestashop. I have added a cms page in the back end of prestashop with is going to be a form which calculates, I have 4 javascript files that it needs to function correctly. It all works offline without any problems & even if i upload the html file and the javascript on the the server it also runs but I cant seem to get it working correctly within the actual shop.I have add the tags for the javascript in the header.tpl (as seen below) {literal} [removed][removed] [removed][removed] [removed][removed] [removed][removed] {/literal} Here is the header.tpl page were the tags have been inserted <html ><head> <title>{$meta_title|escape:'htmlall':'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 http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" /> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} [removed][removed] [removed] var baseDir = '{$content_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; var roundMode = {$roundMode}; [removed] [removed][removed] [removed][removed] [removed][removed] [color=green] {literal} [removed][removed] [removed][removed] [removed][removed] [removed][removed] {/literal}[/color] {if isset($js_files)} {foreach from=$js_files item=js_uri} [removed][removed] {/foreach} {/if} {$HOOK_HEADER} </head> <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {if "MSIE 6"|eregi:$smarty.server.HTTP_USER_AGENT or "Internet Explorer"|eregi:$smarty.server.HTTP_USER_AGENT}{include file=$tpl_dir./ie6.tpl}{/if} {if !$content_only} <!-- Header --> {$HOOK_TOP} <!-- Left --> {$HOOK_LEFT_COLUMN} <!-- Center --> {/if} Link to comment Share on other sites More sharing options...
Paladino Posted March 21, 2011 Share Posted March 21, 2011 Download Firebug for Firefox so you will be able to activate Javascript... Link to comment Share on other sites More sharing options...
Ste Berrill Posted March 21, 2011 Author Share Posted March 21, 2011 ok. does firebug implement into the site? Link to comment Share on other sites More sharing options...
Paladino Posted March 21, 2011 Share Posted March 21, 2011 I sent to you a screenshot where to click - Link to comment Share on other sites More sharing options...
Ste Berrill Posted March 21, 2011 Author Share Posted March 21, 2011 is this image from firefox or back end office in prestashop. im gettin confused now? Link to comment Share on other sites More sharing options...
Paladino Posted March 21, 2011 Share Posted March 21, 2011 After you download Firebug and you open it you will get THAT Link to comment Share on other sites More sharing options...
TEMON Posted May 26, 2011 Share Posted May 26, 2011 The case same with me. It does not work after I put the script in CMS.But I tried put in the blok HTML and It works.I don't know why? Link to comment Share on other sites More sharing options...
AnilaN Posted May 30, 2011 Share Posted May 30, 2011 Hi, I have the same problem, I tried to fix it with firebug but i don't have the "déasctiver" button. Can someone plz help me because i really don't know what to do!Thanks in advanceAany 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