Announcement

Collapse
No announcement yet.

How can I collapse the menu in checkout?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I collapse the menu in checkout?

    I am using Smart theme and find the left hand navigation menu in view basket and checkout areas has fully expanded to show all the products and looks very untidy.
    How can I collapse this?

    #2
    If you want it to only show the top level then edit Act_Primary.html and replace:-
    Code:
    <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>
    with the considerably simplified
    Code:
    <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>';
        }
      }
    return strIDs
    }
    //-->
    </SCRIPT>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks for your response, Norman. I have taken out the yahoo links on both the Brochure and Primary.html templates and replaced them with text links as the site was running so slow (it is marginally better now)

      So why would all the products still be showing in the view basket and checkout areas?

      Is there anything else I can do to rectify this?

      Link - http://www.a1cartridges.co.uk

      Comment


        #4
        Look in Design / Options / Layouts / Primary Templates and make the same changes to all templates there.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks very much for your help on this, Norman - that looks much better!

          Should I also remove the whole of the Yahoo! code in the templates as I now have the text links??

          Comment


            #6
            If you're sure your not using the Yahoo stuff then you can remove it. However if your site has a large number of sections make sure the line

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

            gets deleted as this will cause the loading of a HUGE file. This creates the data file that the YahooSections routine displays.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              That's great. Thanks again for the advice, Norman. Seems to have improved the speed between cart/view cart/ checkout.

              Now all I have to do is move from Claranet...

              Comment

              Working...
              X