Announcement

Collapse
No announcement yet.

Login Page Does not Work

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

    Login Page Does not Work

    Hi

    I am trying to add a customer login page so that only registered customers can view certain sections.

    First I set up a test customer account, then I followed the Advanced Users Guide instructions as best I could for Putting A Login Page Anywhere on your Site. I have pasted in what I think is the relevant code to a fragment & changed the default landing page code as instructed.

    When I made a live test & clicked "Login" with the test customer details I got the error message:
    A General Script Error Occurred
    Error: Could not locate the product reference.
    I have attached the code now in the fragment but cannot work out why it returning an error.

    Can anyone solve this?
    Attached Files
    www.calmncomfy.co.uk : Improving well being and enjoyment of life - Naturally

    #2
    Hi Colin,

    From what I can see in your code, you do not have an opening <form> tag. If you view the source of your login.html page online you should copy the code from:
    Code:
    <FORM METHOD=POST ACTION="http://yourdomain/cgi-bin/bb000001.pl" >
    right down to the </FORM> tag and paste that into your fragment (with the embedding tags).
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Thanks

      I have redone the code in the fragment as suggested which now reads as attached.

      I uploaded, then managed to successfully login once, but while experimenting I tried to log in later & the original error popped up again as in the 1st thread.

      I then tried setting up a new user for the account & got the same error message again.

      Any ideas what may be wrong?
      Attached Files
      www.calmncomfy.co.uk : Improving well being and enjoyment of life - Naturally

      Comment


        #4
        Hi Colin,

        There seems to be something odd going on on your site. If I click on the login link on your home page I don't get the login page, it just goes to your store top page. I would suggest that you start from scratch again and restore it to how it was before you made any changes and update the site. That way I can get the correct code for you to paste into your fragment.
        ********************
        Tracey
        SellerDeck

        Comment


          #5
          Thanks Tracey.

          The login link on the homepage was originally set up by Actinic support when i first purchased the software. Not sure how I can reset it.

          The new section I am trying to create starts with the login page at:
          http://www.calmncomfy.co.uk/acatalog...Deodorant.html

          Does the original login affect what I need for the new page on the url I have mentioned.

          Any help would be appreciated.
          www.calmncomfy.co.uk : Improving well being and enjoyment of life - Naturally

          Comment


            #6
            Does the original login affect what I need for the new page on the url I have mentioned.
            It's the code from the original online login page that you would need to add to the fragment.

            Looking at the source of your page with the login form on it, you seem to have an embedded <form> tag which is not allowed and this seems to be what is causing your problem.

            Can you post your primary template code please so I can try and find out why this is happening.
            ********************
            Tracey
            SellerDeck

            Comment


              #7
              Hi

              I have attached the Primary template

              Hope you can help.
              Attached Files
              www.calmncomfy.co.uk : Improving well being and enjoyment of life - Naturally

              Comment


                #8
                Hi Colin,

                What 'shopping mode' is this section set to? I would appear that if you use 'Quantity on Product Page' then the 'NETQUOTEVAR:FORMBEGIN' variable is not used on the primary template (unless you have a single add to cart button). The other shopping modes use this variable and this is why you're getting embedded form tags.

                Can you try setting the shopping mode to 'Quantity on Product Page' for this section on the 'layout' tab of the section details (don't tick the 'single add to cart button' option) and update your site to see if that works for you.
                ********************
                Tracey
                SellerDeck

                Comment


                  #9
                  Thanks Tracey

                  It works quite well now but there's one piece of the jigsaw missing.

                  When the trade customer logs in, how can I automatically bounce them to the landing page of my choice, rather than the standard main shop page?

                  I tried altering the
                  NoEntry.html
                  code (from the advanced user guide on bouncing out unregistered customers) to different page names but it made no difference. I must be barking up the wrong tree.

                  Any ideas on how to make that bounce for the registered customer?
                  www.calmncomfy.co.uk : Improving well being and enjoyment of life - Naturally

                  Comment


                    #10
                    Hi,

                    You need to edit the 'AccountScript.pl' file in your site folder. Search for:

                    Code:
                    ($sBodyPage,$sProductPage) = ACTINIC::CAccCatalogBody();
                    and replace this line with:

                    Code:
                    $sProductPage = "URL";
                    $sBodyPage = $sProductPage;
                    where 'URL' is the page name that you want your customers to land on (ie index.html).

                    Save and close the file and update your site.
                    ********************
                    Tracey
                    SellerDeck

                    Comment


                      #11
                      Fantastic,

                      Thanks so much for your help on this Tracey.
                      www.calmncomfy.co.uk : Improving well being and enjoyment of life - Naturally

                      Comment

                      Working...
                      X