Announcement

Collapse
No announcement yet.

Brochure Page - Store Sections

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

    Brochure Page - Store Sections

    Hi,

    I'm using the Smart theme for my site - www.bridgingthegaptonaturalhealth.com

    In the brochure pages only, I would like to display the TopLevel sections of the store - can you please advise how I do this.

    I've seen the previous threads re doing this for the store but I can't seem to get it right for the brochure pages.

    Hope this makes sense

    Linda
    Best Regards
    www.yourxocaistore.co.uk - for all your Healthy Chocolate Needs - yes I did say 'Healthy Chocolate'
    www.bridgingthegap2.co.uk - for a range of natural health and wellness products
    www.youraloestore.co.uk - for Forever Living's Aloe Vera Products

    #2
    Heres one we used........

    Place this directly above the </HEAD> so that you end up with:

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

    <SCRIPT LANGUAGE = JavaScript>
    <!--
    function BulletList(pItem)
    {
    var strIDs = '<table><tr><td valign="top"><LI></LI></td><td valign="top"><a href="NETQUOTEVAR:NAVBHOMELINK" Title="Link to our Home page">Home Page</a></td></tr><tr><td valign="top"><LI></LI></td><td valign="top"><a href="acatalog/NETQUOTEVAR:NAVBCATALOGLINK" Title="Link to our Shopping pages">Shopping Pages</a></td></tr>';
    {
    for (var i = 1; i <= pItem.length; i++)
    {
    strIDs += '<tr><td valign="top"><LI></LI></td><td valign="top"><a href="' + pItem[i].sURL + '" Title="Link to ' + pItem[i].sName +'">'+ pItem[i].sName + '</a></td></tr>';
    }
    }
    strIDs += '<tr><td valign="top"><LI></LI></td><td valign="top"><a href="NETQUOTEVAR:NAVBSEARCHLINK" Title="Link to our Search Page">Search page</a></td></tr><tr><td valign="top"><LI></LI></td><td valign="top"><a href="NETQUOTEVAR:NAVBSITEMAPLINK" Title="Link to our Site Map page">Site Map</a></td></tr></table>'
    return strIDs
    }
    -->
    </SCRIPT>
    </HEAD>

    The very first strIDs and last one has customized additional menu options in it, so play with those as you require etc.

    Then add...

    <script language=Javascript1.2>
    document.write(BulletList(sections))
    </script>

    into your design where you wish this menu to appear.

    Hope that gets you started.

    BTW: The Advanced User Guide at http://www.actinic.co.uk/support/downloads.htm has lots of helpful stuff like this in it

    Comment


      #3
      Throwing template out

      Hi,

      Tried to do this but just kept throwing the template out. Any suggestions?

      Linda

      www.bridgingthegaptonaturalhealth.com
      Best Regards
      www.yourxocaistore.co.uk - for all your Healthy Chocolate Needs - yes I did say 'Healthy Chocolate'
      www.bridgingthegap2.co.uk - for a range of natural health and wellness products
      www.youraloestore.co.uk - for Forever Living's Aloe Vera Products

      Comment


        #4
        Hi Linda

        When you say "kept throwing the template out", what do you mean by this? Are you getting an error? Is there something we can see on your website which has this issue? You could also try attach your act_brocureprimary.html onto this thread, so we can have a look at your coding.

        Kind Regards
        Nadeem Rasool
        SellerDeck Development

        Comment


          #5
          Hi,

          When I make the changes to the template, the middle section of the smart template increases in size and therefore takes the design out.

          I've attached the template I'm using which is the original Brochure primary - which I restored.

          Please let me know what I need to do so that I only got toplevel sections.

          Thanks

          Linda



          <!-- Act_BrochurePrimary HTML begin -->
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
          <HTML>

          </HEAD>

          <TITLE>NETQUOTEVAR:PAGETITLE</TITLE>
          <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF" FORCED=NETQUOTEVAR:BASEHREFFORCED/>
          <META NAME="ACTINICTITLE" CONTENT="NETQUOTEVAR:PAGEHEADER">
          <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
          <!--@act NETQUOTEVAR:HEADERMETA -->
          <!--@act NETQUOTEVAR:P3PFULLPOLICYLINK -->
          <!--@act NETQUOTEVAR:LOADFUNCTION -->
          <LINK REL=STYLESHEET HREF="actinic.css">
          <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
          <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>

          <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" TYPE="text/javascript"></SCRIPT>

          <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>


          <!-- Placeholder of cookie checking javascript code. Do not remove it! -->
          <Actinic:COOKIECHECK/>
          <!--
          The NETQUOTEVARs below can be uncommented for getting raw section lists:
          1. Top level section list
          2. Section list from current level and all children
          3. The whole section tree
          The rest covers the standalone structure members for each array - e.g. if
          you only need sName or sURL from an array.
          See the documentation for details.

          NETQUOTEVAR:TOPLEVELSECTIONS_RAW
          NETQUOTEVAR:CHILDSECTIONS_RAW
          NETQUOTEVAR:SECTIONTREE_RAW

          NETQUOTEVAR:SECTIONTREE_NAMES
          NETQUOTEVAR:SECTIONTREE_URLS
          NETQUOTEVAR:SECTIONTREE_IMAGES
          NETQUOTEVAR:SECTIONTREE_IMAGEWIDTHS
          NETQUOTEVAR:SECTIONTREE_IMAGEHEIGHTS
          NETQUOTEVAR:SECTIONTREE_SECTIONIDS

          NETQUOTEVAR:TOPLEVELSECTIONS_NAMES
          NETQUOTEVAR:TOPLEVELSECTIONS_URLS
          NETQUOTEVAR:TOPLEVELSECTIONS_IMAGES
          NETQUOTEVAR:TOPLEVELSECTIONS_IMAGEWIDTHS
          NETQUOTEVAR:TOPLEVELSECTIONS_IMAGEHEIGHTS
          NETQUOTEVAR:TOPLEVELSECTIONS_SECTIONIDS

          NETQUOTEVAR:CHILDSECTIONS_NAMES
          NETQUOTEVAR:CHILDSECTIONS_URLS
          NETQUOTEVAR:CHILDSECTIONS_IMAGES
          NETQUOTEVAR:CHILDSECTIONS_IMAGEWIDTHS
          NETQUOTEVAR:CHILDSECTIONS_IMAGEHEIGHTS
          NETQUOTEVAR:CHILDSECTIONS_SECTIONIDS

          The section level can be accessed through:
          NETQUOTEVAR:SECTIONLEVEL
          -->

          </HEAD>

          <BODY TEXT="NETQUOTEVAR:FGCOLOR" topmargin="0" marginwidth="5" marginheight="0" OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGIMAGE NETQUOTEVAR:BGCOLOR NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td align="left" bgcolor="NETQUOTEVAR:PALCOLOR2CSS">
          NETQUOTEVAR:BROCHURELOGO
          </td>
          </tr>
          </table>

          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td colspan="3" bgcolor="NETQUOTEVAR:PALCOLOR2CSS">
          <img src="shim.gif" height="1">
          </td>
          </tr>
          <tr>
          <td width="10"><img src="shim.gif" height="30" width="10"></td>
          <td>&nbsp;</td>
          <td align="right">NETQUOTEVAR:HEADERGUIDE&nbsp;</td>
          </tr>
          <tr>
          <td colspan="3" bgcolor="NETQUOTEVAR:PALCOLOR2CSS">
          <img src="shim.gif" height="3">
          </td>
          </tr>
          </table>
          <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="5" height="100%">
          <tr>

          <td valign="top" width="200">
          <table width="150" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td height="22" bgcolor="NETQUOTEVAR:PALCOLOR2CSS" background="tab_pal2.gif" class="actsmallheading"><b>&nbsp;&nbsp;STORE SECTIONS</b></td>
          </tr>
          <tr>
          <td class="thinred2">
          <table width="100%" cellspacing="2" cellpadding="2">
          <tr>
          <td>
          <script language=Javascript1.2>
          document.write(YahooSections(section_tree))
          </script>
          </td>
          </tr>
          </table> </td>
          </tr>
          </table>

          <p>&nbsp;</p>

          <table width="150" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td height="22" bgcolor="NETQUOTEVAR:PALCOLOR2CSS" class="actsmallheading" background="tab_pal2.gif"><b>&nbsp;&nbsp;CUSTOMVAR:LEFTBARTITLE</b></td>
          </tr>
          <tr valign="top">
          <td class="thinred2">
          <table width="100%" border="0" cellpadding="2" cellspacing="2" class="actxxsmall">
          <tr>
          <td valign="top"><br>CUSTOMVAR:LEFTBARTEXT<br><br></td>
          </tr>
          </table>
          </td>
          </tr>
          </table>

          <p>&nbsp;</p>


          <!-- credit card logo table start -->
          <!-- <table width="150" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td height="22" bgcolor="NETQUOTEVAR:PALCOLOR2CSS" background="tab_pal2.gif" class="actsmallheading"><b>&nbsp;&nbsp;CARDS ACCEPTED </b></td>
          </tr>
          <tr align="center" valign="middle">
          <td class="thinred2">
          <table width="100%" cellspacing="2" cellpadding="2">
          <tr align="center" valign="middle">
          <td><img src="visa.gif" width="34" height="22"></td>
          <td><img src="master.gif" width="34" height="22"></td>
          <td><img src="elec.gif" width="32" height="22"></td>
          </tr>
          <tr align="center" valign="middle">
          <td><img src="swi.gif" width="29" height="22"></td>
          <td><img src="solo.gif" width="30" height="19"></td>
          <td><img src="delta.gif" width="32" height="21"></td>
          </tr>
          </table>
          </td>
          </tr>
          </table>-->
          <!-- credit card logo table end -->

          <p>&nbsp;</p>

          </td>

          <td valign="top">

          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td width="2%" bgcolor="NETQUOTEVAR:PALCOLOR1CSS" valign="top"><img src="lefttab_pal1.gif"></td>
          <td width="92%" bgcolor="NETQUOTEVAR:PALCOLOR1CSS" height="22" class="actsmallheading"><b>NETQUOTEVAR:PAGETITLE</b></td>
          <td width="6%" bgcolor="NETQUOTEVAR:PALCOLOR1CSS" align="right" valign="top"><img src="righttab_pal1.gif"></td>
          </tr>
          <tr valign="top" align="left">
          <td colspan="3" class="thinred">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="5" WIDTH="100%" ALIGN="CENTER">
          <TR>
          <TD ALIGN="LEFT" VALIGN="MIDDLE">
          <a name="top"><!-- NETQUOTEVAR:LOGINLINK --><Actinic:NOWSERVING/><Actinic:CURRACCOUNT/><Actinic:LOGOUT_SIMPLE/></a>
          <table width="CUSTOMVAR:ACTSTDWIDTH" cellpadding="5" cellspacing="0" border="0" cols="3">NETQUOTEVAR:BROCHUREBODY</table><br><br>
          NETQUOTEVAR:POWEREDBY
          </TD>
          </TR>
          </TABLE></td>
          </tr>
          </table>

          </td>

          <td valign="top" width="200" align="right">

          <table width="150" border="0" cellpadding="0" cellspacing="0" >
          <tr>
          <td height="22" bgcolor="NETQUOTEVAR:PALCOLOR2CSS" background="tab_pal2.gif" class="actsmallheading"><b>&nbsp;&nbsp;CART DETAILS</b></td>
          </tr>
          <tr>
          <td class="thinred2"><br>
          <table width="100" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
          <td> <div align="left"><span class="actxxsmall">
          <script language="JavaScript">
          document.write("Items:&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
          document.write("Value:&nbsp;" + getCartItem(1));
          </script>
          </span> </div>
          </td>
          </tr>
          </table><br>
          </td>
          </tr>
          </table>

          <p>&nbsp;</p>

          <table width="150" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td height="22" bgcolor="NETQUOTEVAR:PALCOLOR2CSS" class="actsmallheading" background="tab_pal2.gif"><b>&nbsp;&nbsp;CUSTOMVAR:RIGHTBARTITLE</b></td>
          </tr>
          <tr valign="top">
          <td class="thinred2">
          <table width="100%" border="0" cellpadding="2" cellspacing="2" class="actxxsmall">
          <tr>
          <td valign="top"><br>CUSTOMVAR:RIGHTBARTEXT<br><br></td>
          </tr>
          </table>
          </td>
          </tr>
          </table>

          </td>
          </tr>
          </table>
          </BODY>
          </HTML>
          <!-- Act_BrochurePrimary HTML end -->
          Best Regards
          www.yourxocaistore.co.uk - for all your Healthy Chocolate Needs - yes I did say 'Healthy Chocolate'
          www.bridgingthegap2.co.uk - for a range of natural health and wellness products
          www.youraloestore.co.uk - for Forever Living's Aloe Vera Products

          Comment


            #6
            Hi,

            Remove:

            Code:
            {
            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>';
            }
            }
            }
            }
            from the function in the top of the template. Save the file and update the site and this will only display the top-level sections.
            ********************
            Tracey
            SellerDeck

            Comment


              #7
              Superb - thanks!
              Best Regards
              www.yourxocaistore.co.uk - for all your Healthy Chocolate Needs - yes I did say 'Healthy Chocolate'
              www.bridgingthegap2.co.uk - for a range of natural health and wellness products
              www.youraloestore.co.uk - for Forever Living's Aloe Vera Products

              Comment


                #8
                Hi,

                Go into Act_Brochureprimary template and do the following. I had the same problem but it's working now:

                www.bridgingthegaptonaturalhealth.com
                (I've not uploaded the store yet - but I can promise it does work!)
                Originally posted by TraceyG
                Hi,

                Remove:

                Code:
                {
                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>';
                }
                }
                }
                }
                from the function in the top of the template. Save the file and update the site and this will only display the top-level sections.
                Best Regards
                www.yourxocaistore.co.uk - for all your Healthy Chocolate Needs - yes I did say 'Healthy Chocolate'
                www.bridgingthegap2.co.uk - for a range of natural health and wellness products
                www.youraloestore.co.uk - for Forever Living's Aloe Vera Products

                Comment


                  #9
                  Everything's fine

                  Sorry was trying to attach this to someone elses message and it went a bit wrong. - Sunday mornings ahhhhhhh
                  Best Regards
                  www.yourxocaistore.co.uk - for all your Healthy Chocolate Needs - yes I did say 'Healthy Chocolate'
                  www.bridgingthegap2.co.uk - for a range of natural health and wellness products
                  www.youraloestore.co.uk - for Forever Living's Aloe Vera Products

                  Comment

                  Working...
                  X