Announcement

Collapse
No announcement yet.

Brochure Page V Catalogue Page

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

    Brochure Page V Catalogue Page

    Hi there

    I am trying to add both the cart and the simple search that I have set up in my catalogue pages to my brochure pages.

    I have tried to simple copy the html from Act_Primary to Act_BrochurePrimary but this does not seem to work.

    To start, despite defining the logo in the catalogue, and it is the same code, all i get is a box. More importantly, the cart or search functions dont work.

    I have looked at GC164 - How Can I add a quick search to a brochure page? but this dont seem to work.

    Here, let me attach the Act_Primary text since i have edited this somewhat... This page works successfully.

    I would really appreciate any advice on this.

    THanks as always, Steven

    <!-- Primary HTML begin -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>
    NETQUOTEVAR:PAGETITLE NETQUOTEVAR:PAGEHEADER
    </TITLE>
    <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>
    <META NAME="ACTINICTITLE" CONTENT="NETQUOTEVAR:PAGEHEADER">
    <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
    <!--@act NETQUOTEVAR:HEADERMETA -->
    <!--@act NETQUOTEVAR:LOADFUNCTION -->
    <!--@act NETQUOTEVAR:SUBMITFUNCTION -->
    <!--@act NETQUOTEVAR:P3PFULLPOLICYLINK -->
    <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>

    <!-- 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 NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR TEXT="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR marginwidth="5" marginheight="5" align="center">
    <div align="center">
    <br>

    <table width="800" height="74" border="0" cellpadding="0" cellspacing="0" background="banner_header.gif">
    <tr>
    <td width="689">&nbsp;&nbsp;NETQUOTEVAR:LOGOIMAGE</td>
    <td width="70"><div align="right">
    <table width="87" height="70" border="0" cellspacing="5" cellpadding="5">
    <tr>
    <td bgcolor="#FFFFFF">
    <div align="right"><span class="actxxsmall"> <font color="NETQUOTEVAR:BGCOLORCSS">
    <script language="JavaScript">
    document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
    document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
    </script>
    </font></span></div></td>
    </tr>
    </table>
    </div></td>
    </tr>
    </table>

    <img src="flyer_header.gif" width="800" height="9">
    <br>
    <table width="800" border="0" cellspacing="2" cellpadding="0" background="palettefdjnavbar.gif">
    <tr>
    <td align="left"><div align="left">&nbsp;&nbsp;NETQUOTEVAR:FOOTERGUIDE</div></td>
    <td align="right"><div align="right">NETQUOTEVAR:SIMPLESEARCH</div></td>
    </tr>
    </table>

    <img src="banner_store.gif" width="800" height="80" alt="">

    <!-- tr -->

    <td valign="top">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="CUSTOMVAR:ACTSTDWIDTH" ALIGN="CENTER">
    <!-- TR -->
    <TD VALIGN="MIDDLE" ALIGN="LEFT" >
    NETQUOTEVAR:FORMBEGIN
    <A NAME="top">
    <INPUT TYPE=HIDDEN NAME=RANDOM VALUE="NETQUOTEVAR:RANDOM">
    </A> NETQUOTEVAR:HIDDENFIELDS
    <!-- If customer accounts are in operation following two lines allow displaying -->
    <!-- User name and customer account name on every page -->
    <!-- NETQUOTEVAR:LOGINLINK --><Actinic:NOWSERVING/><Actinic:CURRACCOUNT/><Actinic:LOGOUT_SIMPLE/>
    <!-- NETQUOTEVAR:HEADER -->
    <!-- span class="actxsmall">NETQUOTEVAR:HEADERTEXT</span -->NETQUOTEVAR:BULK<!-- br -->
    <!-- span class="actxsmall">NETQUOTEVAR:FOOTERTEXT</span -->
    <!-- NETQUOTEVAR:FOOTER -->
    <!-- NETQUOTEVAR:FORMEND --><!-- br -->
    </TD>
    <!-- /TR -->
    </TABLE>
    <img src="flyer_footer.gif" width="800" height="17"><br>
    <img src="banner_footer.gif" width="800" height="31">
    NETQUOTEVAR:FORMEND

    </td>

    <!-- /tr -->
    </table>
    </div>
    </table>
    </BODY>
    </HTML>
    <!-- Primary HTML end -->

    #2
    Hi there,

    Please try inserting the code below in the body area in your Brochure Primary template.

    <form name=simplesearch action="http://localhost/cgi-bin/ss000001.pl" METHOD="GET"><td valign="MIDDLE"><font face="ARIAL" size="2"><b>Quick search</b></font></td><td valign=middle noWrap align=right><input type="TEXT" name="SS" size="15" maxsize="125" value="">&nbsp;</td><td valign=center noWrap align=left><input type=SUBMIT name=ACTION value="Go!"><input TYPE=HIDDEN NAME="PR" VALUE="-1"><input TYPE=HIDDEN NAME="TB" VALUE="A"><input TYPE=HIDDEN NAME="SHOP" VALUE=""></td></form>

    Please replace 'action=http://www.domain.com' with your domain name as well as the 'ssxxxxx'1'.pl' to the 'cgi script ID number' in your Advance Network Setup.

    In order to get the 'Simple Search working you have to take the code from a generated page i.e. index.html file which can be found within your 'Site1' folder in a folder called 'SiteHTML'.

    Hope this helps
    Thank You
    Menar Khan

    Comment


      #3
      Thanks Menar. i have done this albeit the www. etc. what is the easiest way to test this, can I only do it when i am 'connected' or can i do it in the preview mode.

      Also, I have used index.html as suggested for the cart code, is there any info missing (such as the cgi you mentioned).

      Cheers, Steven


      <tr>
      <td bgcolor="#ffffff"><div align="center"> <span class="actxxsmall"> <font color="#000033">
      <script language="JavaScript">
      document.write("Items&#58;&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
      document.write("Value&#58;&nbsp;" + getCartItem(1));
      </script></font></span> </div></td>
      </tr>

      Comment


        #4
        i have done this albeit the www. etc.

        Does this mean you have edited the <form> tag so that you are using your own correct address of your search script (rather than 'localhost')? In that case you should be fine.

        can I only do it when i am 'connected' or can i do it in the preview mode.

        The code you have copied in will only work properly on a live store, so you need to be connected.

        Your 'cart content' code looks fine.

        Comment

        Working...
        X