Announcement

Collapse
No announcement yet.

Business Login

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

    Business Login

    After hacking about creating a custom template I have seemingly lost the code that requires the shopper to login before getting access to the products.

    The catalogue shows that it is reserved for registered customers only but is still showing the products. You can't order without logging in however!

    Anyone have any ideas.
    Dan Mansfield

    #2
    Dan - just a quickie - if you go to the Help index and find Registered/Unregistered users, and follow the lionks, you may be able to locate where the source code is....

    ... I've learned the hard way to copy templates before mutilating them!

    Best - James
    James Gladwin

    Comment


      #3
      Thanks James.

      My settings all appear correct although the shop is not requesting login upon entry dispite that fact that it is ticked.

      I will need to backup start a fresh site and make sure I understand properly this time!
      Dan Mansfield

      Comment


        #4
        I have a feeling that even if you have restricted the site just for registered customers, if you link directly to a section page within Actinic, customers can still see the page without the requirement to log in first.

        This is probably because you are linking directly to a *.html page rather than using a link via the Perl (which would enforce the login). When linking to section pages, use links of the following form in your custom template...

        http://your.URL/cgi-bin/ss00000x.pl?SECTIONID=Section%5fPage%2ehtml

        Where:
        · http://your.URL/cgi-bin/ is the URL of your CGI-BIN
        · ss00000x.pl is the name of your search script with the 'x' replaced with your CGI ID number
        · Section%5fPage%2ehtml is the filename of the section page. Note that you have to encode any non-alphanumeric characters so an underscore '_' becomes '%5f' and a full stop '.' becomes '%2e'.

        Comment


          #5
          I have a link on the front page of the site which simply links to http://blah.com/something/acatalog/

          so obviously loads up the index.html created by Actinic but which is also the product page.

          Using that information that gives me:
          http://blah.com/cgi-bin/ss000001.pl?...NID=index.html

          which works perfectly!

          That does though beg the question whether one could circumvent this login for any shop by simply using the url for the page as I have done. So, is there code that checks whether the shopper has logged in and dumps them back to the login page if they haven't?

          Regards,
          Dan Mansfield

          Comment


            #6
            Whenever those customers activate a Perl function (e.g. adding to the cart) it will prompt them to log in.

            If you want to automatically bounce non-registerered customers out of the pages then consider using the fix on page 63 of the Advanced User Guide - headed 'Bouncing Unregistered Customers Out of Sections'.

            Comment


              #7
              Thank you Chris and I know.... RTFM!
              Dan Mansfield

              Comment

              Working...
              X