PDA

View Full Version : section_tree undefined on checkout page


Stally
27-Nov-2006, 09:14 AM
Hi, ive got this error that i havnt noticed until now. When I go to the first checkout page, where I enter in customer details etc, I have 2 errors:

1. the store sections is not displayed - says there is an error on the page "section_tree is not defined"

2. Just a little one, near the bottom of the page where it shows the shipping cost and the box for any shipping instructions the "£" symbol for shipping cost is replaced by a question mark "?"


Not urgent as everything else is working ok, but if anyone does have any ideas or can point me in the right direction I would be very grateful.

:D

NormanRouxel
27-Nov-2006, 01:48 PM
Look in Design / Options / Layouts / Primary Templates. Make sure the lines


<!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function YahooSections(ar)
{
var strIDs = '';
for (var i=1;i<=ar.length;i++)
{
if (ar[i].sURL != null)
{
strIDs += '<a href="' + ar[i].sURL + '"><span class="actxxsmall"><b><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].sName + '</font></b></span></a><br>';
{
if (ar[i].pChild)
{
for (var j=1;j<=ar[i].pChild.length;j++)
{
if (ar[i].pChild[j].sURL != null)
{
strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall"><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].pChild[j].sName + '</font></span></a><br>';
}
}
}
}
strIDs += '<br>'
}
}
return strIDs
}
//-->
</SCRIPT>


Are in these Templates.

As for the "?" it would help to be able to see the page.

Stally
27-Nov-2006, 02:42 PM
Hi, thanks for your reply.

yes those lines are in the primary templates. But for some reason they work fine on all pages, but "page_section" is undefined on the checkout page. :confused:

NormanRouxel
27-Nov-2006, 02:45 PM
We'll need an URL to help further.