Вопрос

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":"...
Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с magento.stackexchange
scroll top