Announcement

Collapse
No announcement yet.

Problem after prevent retail customers entering certain sections

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

    Problem after prevent retail customers entering certain sections

    Hi,

    After following the instruction to prevent retail customers entering certain sections, I find that when I enter the "Trade Only" section as a Registered Customer (set to use the just created Act_PrimaryRestricted template) I get a Runtime Error

    Line: 2
    Error: Object Expected

    Debug?

    It works as expected for Retail, they get bounced back to catalogbody.html

    I'm not conversant with scripts or java, any ideas as to how to fix this would be great.

    Thanks in advance

    pnp

    #2
    Check the latest Advanced User Guide for v6 as I have just updated this code.

    You will need to ensure the <Actinic:NOTINB2B> tags are outside of the <script> tags rather than within them.

    Comment


      #3
      I'm sorry I forgot to say I got the code from V6 Advance Guide.

      I'm not sure what I did but I managed to fix the problem. I took out an extra line break from the template that was put in after pasteing the code.

      I refreshed the site, deleted cookies and tempory internet files.

      Heres a snip from the template...

      <!-- 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">
      <Actinic:NOTINB2B>
      <meta http-equiv="Refresh" content="0; url=catalogbody.html">
      </Actinic:NOTINB2B>
      <Actinic:NOTINB2B>
      <script language="javascript1.1">
      function actNotRegistered(){
      location.replace ('catalogbody.html');
      }
      </script>
      </Actinic:NOTINB2B>
      <!--@act NETQUOTEVAR:HEADERMETA -->
      <!--@act NETQUOTEVAR:LOADFUNCTION -->
      <!--@act NETQUOTEVAR:SUBMITFUNCTION -->
      <!--@act NETQUOTEVAR:P3PFULLPOLICYLINK -->
      <LINK REL=STYLESHEET HREF="actinic.css">

      It works fine now. Thanks Chris

      Comment

      Working...
      X