Announcement

Collapse
No announcement yet.

using the login form away from the cart

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

    using the login form away from the cart

    Im using actinic as a shop behind the content pages listed at the front of the domain. so index is standard content and /acatalog is the shop.

    I want to be able to have a login form on the front page that will take the user to the login page in the shop.

    It seems that every time i try to transfer the login form it throws out a "general script error" trying to reference a file that doesn't exist ( ../httpdocs/acatalog/http://www....etc...)

    The shop login is on https if that makes a difference. I have tried sending from https but still the same error.

    Is there an established method for doing this? i have jacked forms before on all sorts of situations and cross-sites.

    Also it seems i need to clear my cashe every time i come across this error
    http://www.valves-online.co.uk

    #2
    What is the HTML code you are using for the login form on that page?
    Do you have a link and test account to see the issue?

    If you are linking directly to a scripted page such as the login url from a page outside the SellerDeck website then it will not have the base href / referrer set correctly and you may end up with a broken page so you will need to add a referrer on the link.

    There's an old post about this here: login on homepage it's v7 so it may still work or you need to add the v10 equivalent.

    There are other pointers on linking to scripts from outside the SellerDeck site here: http://community.sellerdeck.com/showthread.php?t=45497
    Peblaco

    Comment


      #3
      Originally posted by peblaco View Post
      What is the HTML code you are using for the login form on that page?
      Do you have a link and test account to see the issue?

      If you are linking directly to a scripted page such as the login url from a page outside the SellerDeck website then it will not have the base href / referrer set correctly and you may end up with a broken page so you will need to add a referrer on the link.

      There's an old post about this here: login on homepage it's v7 so it may still work or you need to add the v10 equivalent.

      There are other pointers on linking to scripts from outside the SellerDeck site here: http://community.sellerdeck.com/showthread.php?t=45497
      Hi, Thanks for the link.
      I literally ripped the html from the original login page. i did see something about a refer page which i played with but to no avail.

      Edit: Those links weren't useful in this case im afraid. the first was within the same base DIR and the second was for adding in products.
      http://www.valves-online.co.uk

      Comment


        #4
        The login from home page would have been the same as your setup, root with index then acatalog folder, hence the referrer tag. The second link that refers to adding in products was a pointer, it does not relate to the same situation but it describes the way the referrer can work for cgi scripts. Can you share your link and a test account details to see what you have done?
        Peblaco

        Comment


          #5
          Originally posted by peblaco View Post
          The login from home page would have been the same as your setup, root with index then acatalog folder, hence the referrer tag. The second link that refers to adding in products was a pointer, it does not relate to the same situation but it describes the way the referrer can work for cgi scripts. Can you share your link and a test account details to see what you have done?
          Hi. Sorry for the late reply.
          As far as i am aware we don't have any test accounts. the login form can be found by going to https://www.valves-online.co.uk/acatalog/login.html .
          There seems to be a lot of javascript gubbins! working out hash tags and what not...
          http://www.valves-online.co.uk

          Comment


            #6
            If you could set up a new test account and upload it then provide the user and password then it could be tested.
            Peblaco

            Comment


              #7
              Originally posted by peblaco View Post
              If you could set up a new test account and upload it then provide the user and password then it could be tested.
              ok sent you some test login details. i think it might be a path thing. It seems to recognise that the credentials are correct (because it tells you if there not) then tries to access a page that doesn't exist.
              http://www.valves-online.co.uk

              Comment


                #8
                Thanks the normal login page works fine but the form needs to be tested on your front page / index, do you have it there? I thought I saw it there earlier I cannot see it there now.
                Peblaco

                Comment


                  #9
                  Originally posted by peblaco View Post
                  Thanks the normal login page works fine but the form needs to be tested on your home / index page, do you have it there? I thought I saw it there earlier I cannot see it now.
                  yea the form is in the header section of the main site found here http://www.valves-online.co.uk
                  p.s if it fails you might need to clear the cashe before you can log in at all after.
                  http://www.valves-online.co.uk

                  Comment


                    #10
                    The first link I posted had the correct answer regarding the input tag ACTINIC_REFERRER needing to point to the store folder. You said it was not useful but you have the wrong referrer set.

                    Your front page has the input ACTINIC_REFERRER as the front page / index.
                    Your login page has the input ACTINIC_REFERRER as the store folder.

                    Try changing your input tag ACTINIC_REFERRER to the store folder.
                    Peblaco

                    Comment


                      #11
                      Originally posted by peblaco View Post
                      The first link I posted had the correct answer regarding the input tag ACTINIC_REFERRER needing to point to the store folder. You said it was not useful but you have the wrong referrer set.

                      Your front page has the input ACTINIC_REFERRER as the front page / index.
                      Your login page has the input ACTINIC_REFERRER as the store folder.

                      Try changing your input tag ACTINIC_REFERRER to the store folder.
                      yeah this is what i had originally. i changed it to see if it made a difference. just to make sure i changed it back and am still getting the error
                      Attached Files
                      http://www.valves-online.co.uk

                      Comment


                        #12
                        The form input tag is still not the same as the input tag on the login page. Try adding a / on the end of the store folder.
                        Peblaco

                        Comment


                          #13
                          Originally posted by peblaco View Post
                          The form input tag is still not the same as the input tag on the login page. Try adding a / on the end of the store folder.
                          hmm still nothing. i do wonder however where
                          <input type="HIDDEN" name="PRODUCTPAGE" value="">
                          and
                          <input type="HIDDEN" name="ACTINIC_REFERRER" value="http://www.valves-online.co.uk/acatalog/">
                          came from? i cant see them on the original form.
                          http://www.valves-online.co.uk

                          Comment


                            #14
                            Originally posted by jollins View Post
                            hmm still nothing. i do wonder however where
                            <input type="HIDDEN" name="PRODUCTPAGE" value="">
                            and
                            <input type="HIDDEN" name="ACTINIC_REFERRER" value="http://www.valves-online.co.uk/acatalog/">
                            came from? i cant see them on the original form.
                            woo woo woo that was it.

                            i have no idea where that code came from but he form now works!

                            thanks for your help. trying to tackle this alone after 2 days of no sleep was not getting me anywhere haha!
                            http://www.valves-online.co.uk

                            Comment

                            Working...
                            X