Question

someone knows why, if I look at the HTML code of one page from my Magento website, I see the Translator var two times, with the same values?

First time:

<script type="text/javascript">//<![CDATA[
        var Translator = new Translate({"HTML tags are not allowed":"...

Second time:

<script type="text/javascript">
//<![CDATA[
optionalZipCountries = ["IE","PA","HK","MO"];
//]]>
</script>
<script type="text/javascript">//<![CDATA[
        var Translator = new Translate({"HTML tags are not allowed":"...
Was it helpful?

Solution

I solved the problem deleting this line of code that I've put into the page.xml file:

<block type="page/html_head" name="before_head_end" as="before_head_end" />

I've placed this custom code before the structural block after_body_start.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top