Announcement

Collapse
No announcement yet.

Search not available for unregistered users

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

    Search not available for unregistered users

    Hi all.

    I have disabled the 'allow orders from unregistered customers' option and now the search is unavailable for people that don't log in. Is there any way to allow this? I'd still like anonymous users to be able to search.

    The usual details:
    - Product: Actinic Business
    - Version: 6.1.3

    Any help would be appreciated

    Kind regards,
    Dave
    David Webb
    A2Z Computing Ltd

    #2
    Hmmm... never noticed that one before.

    I've tried hard-coding search tools into the HTML and still have no luck.

    I'll ask Zoltan to cast his eye over this thread and see if he can suggest a Perl change to get this working.

    Comment


      #3
      Thanks Chris.

      The site is http://www.a2z-computing.com/shop if you want to have a look - the search box is in the left navigation table.

      Regards,
      Dave
      David Webb
      A2Z Computing Ltd

      Comment


        #4
        One more tricky perl problem...

        Actually we have the <Actinic:UNREG> XML tags in the HTML pages. When the page is displayed by any of the scripts then this XML tag is processed and the wole page is replaced by a warning message if there is no user loged in. Probably it would be better to exclude the search page but I'm not sure. Therefore this is back to Chris to decide if he wants to post a bug report for this.

        Anyway my technical explanation doesn't result a working site for you so lets see what can be done. The search page can be excluded from the scope of this XML tag by a simple change on the scripts. Just open ActinicPXML.pm in a plain text editor (e.g. NotePad) and find sub UnregTagHandler. Just a few lines below there will be a code fragment
        Code:
        	if( $sDigest ||				
        		 $::g_bLoginPage )		
        		{
        		if( ref($sInsideText) ) { $$sInsideText = ""; }
        		return "";
        		}
        	else
        		{
        		#
        		# If we were here already then the processing should be stopped here 
        		# to avoid infinitive loop 
        		#
        If you found this then change the else statement to get
        Code:
        	if( $sDigest ||		
        		 $::g_bLoginPage )		
        		{
        		if( ref($sInsideText) ) { $$sInsideText = ""; }
        		return "";
        		}
        	elsif ($::prog_name ne "SearchScript")
        		{
        		#
        		# If we were here already then the processing should be stopped here 
        		# to avoid infinitive loop 
        		#
        When the chage is done just save the file and upload your site. The search should be working for the unregistered customers now. I hope this helps.

        Please note that the usual disclaimer applies. In other words any script customisation should be done in your own risk.

        Regards,
        Zoltan
        Actinic Software
        www.actinic.co.uk

        Comment


          #5
          Hi Zoltar, and thanks for the reply.

          After applying the change you suggested, the search produced the following error:

          Error: syntax error at ax000001.pm line 949, near ") {" syntax error at ax000001.pm line 979, near "}" Compilation failed in require at al000001.pm line 7727
          My knowledge of Perl (or lack thereof) does not enable me to fix this problem myself, so I've put the code back. If you don't mind, I'm kind of relying on you guys to help me out

          Thanks in advance.

          Kind regards,
          Dave
          David Webb
          A2Z Computing Ltd

          Comment


            #6
            Please upload your ActinicPXML.pm file here. I'm going to send back the patched one.

            Regards,
            Zoltan
            Actinic Software
            www.actinic.co.uk

            Comment


              #7
              Nice one, thanks. It's attached as a .txt file.


              Regards,
              Dave
              Attached Files
              David Webb
              A2Z Computing Ltd

              Comment


                #8
                Ok, it looks like identical to the one what I have patched locally. See my file in the attached zip file.

                Regards,
                Attached Files
                Zoltan
                Actinic Software
                www.actinic.co.uk

                Comment


                  #9
                  Hi Zoltan.

                  Thanks for posting the file back. The search lists results now, but the same thing happens when trying to view an item in the results - it says it's for registered customers only. Any ideas?

                  Thanks very much for your time and effort.

                  Kind regards,
                  Dave
                  David Webb
                  A2Z Computing Ltd

                  Comment


                    #10
                    I think a quick way to stop this would be to disable search highlighting in 'View | Search Settings | Results'.

                    Comment


                      #11
                      Sorry about that. New file is uploaded now. Try this, I hope this works.

                      Regards,

                      Zoltan
                      Attached Files
                      Zoltan
                      Actinic Software
                      www.actinic.co.uk

                      Comment


                        #12
                        Thanks Zoltan, it works brilliantly now.

                        Thanks also to Chris.

                        Kind regards,
                        Dave
                        David Webb
                        A2Z Computing Ltd

                        Comment

                        Working...
                        X