Announcement

Collapse
No announcement yet.

Framed site Search

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

    Framed site Search

    Hello all,

    We have 2 search areas on the website 1 for product description the other is product code.

    My question split into 2.

    1.
    On the product no. search if the number isnt a product code we use. This then shows no results & refreshes CatalogBody as leftnavigation. Is it possible to set this back to main_frame.shtml?

    2.
    We have a catalogue that is produced uses the same code except it adds an A on the end of the product code to show us which catalogue our customers are ordering from. Is it Posible to set the search to the first six characters eg)120617A if they type that in it will display product 120617??

    Many thanks,

    Dave
    David Shorthouse,
    Website Manager,
    http://www.Queenswood.co.uk

    #2
    Hi David,

    I've passed on your queries to my senior colleagues and I am waiting for a reply from them.

    Cheers
    Kiran Chandran
    Technical Support - SellerDeck
    http://www.sellerdeck.co.uk/

    Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

    Comment


      #3
      Hi David,

      On the product no. search if the number isnt a product code we use. This then shows no results & refreshes CatalogBody as leftnavigation. Is it possible to set this back to main_frame.shtml?
      Please try this

      Browse to C:\Program Files\Actinic Ecommerce... Sites\Site1(or a name you have given) and look for SearchScript.pl

      Right click on the file and open it in a text editor like notepad

      Find where it says:

      "$::g_sContentUrl, $::g_pSetupBlob, $::Session->GetLastShopPage(),"

      Change this to

      "$::g_sContentUrl, $::g_pSetupBlob, "http://localhost","

      Replace localhost with whatever address you want.


      The second part of your query would be very difficult to achieve,as it will involve a lot of customisation of the perl scripts.
      Kiran Chandran
      Technical Support - SellerDeck
      http://www.sellerdeck.co.uk/

      Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

      Comment


        #4
        Originally posted by Kiran
        Browse to C:\Program Files\Actinic Ecommerce... Sites\Site1(or a name you have given) and look for SearchScript.pl

        Find where it says:

        "$::g_sContentUrl, $::g_pSetupBlob, $::Session->GetLastShopPage(),"

        Change this to

        "$::g_sContentUrl, $::g_pSetupBlob, "http://localhost","

        Replace localhost with whatever address you want.
        I have changed so reads

        $::g_sContentUrl, ::g_pSetupBlob, "http://www.queenswood.co.uk/acatalog/search.html", \%::g_InputHash, $::FALSE);

        This hasn't made any difference. I have also noticed that when I do a search add my product to the shopping cart click confirm & continue shopping again it loads the leftmenu in the catalogbody. I wasnt aware of this till I tried a search just now.

        Any other ideas..

        Thanks

        Dave
        Last edited by Queenswood; 28-Feb-2005, 02:41 PM. Reason: correcting
        David Shorthouse,
        Website Manager,
        http://www.Queenswood.co.uk

        Comment


          #5
          Hi David,

          I have changed so reads

          $::g_sContentUrl, ::g_pSetupBlob, "http://www.queenswood.co.uk/acatalog/search.html", \%::g_InputHash, $::FALSE);

          This hasn't made any difference.
          I have just tried this and it works ok for me. What is the exact version of actinic that you are using (Help | About) and I will try to amend the correct script for you and upload it.

          when I do a search add my product to the shopping cart click confirm & continue shopping again it loads the leftmenu in the catalogbody
          Actinic has always had problems when dealing with frames, especially custom frames. Try the following, but if that doesn't work then I suggest you raise a support query here

          - Open CartManager.pl (take a backup first) in a text editor such as notepad
          - Find 'sub ContinueShopping'
          - Within this subroutine find the following line:

          my $bClearFrames = $sDigest && ACTINIC::IsCatalogFramed() ? $::TRUE : $::FALSE;

          - Change it to this one:

          my $bClearFrames = $sDigest && ACTINIC::IsCatalogFramed() && $$::g_pSetupBlob{UNFRAMED_CHECKOUT} ? $::TRUE : $::FALSE;

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

          Comment


            #6
            Hi Tracey

            Version number 6.1.4.0.0.0.DNNA

            It happens all over the place with the frames when I do a search & click a extended info It tries to load where the left frame is held.

            Many thanks for your help!!!

            Dave...
            David Shorthouse,
            Website Manager,
            http://www.Queenswood.co.uk

            Comment


              #7
              Hi,

              I've just checked your site out and see that the search now doesn't load the frameset twice and returns you to the search page, which I think is what you want.

              It happens all over the place with the frames when I do a search & click a extended info It tries to load where the left frame is held.
              I can't see any extended info buttons on your site and the images aren't clickable either, can you point me to a product where this happens please. As mentioned above the search is working fine for me. The only place I can recreate a doubling of the left frame is when cancelling the checkout process. To get round this you can try going to 'Design | Options | Miscellaneous' and entering 'http://www.queenswood.co.uk/index2.shtml' into the 'URL for Completed and Aborted Checkout' field. You will have to check 'No frames in checkout' for this field to be active (you can turn it off again once you've entered the URL).

              I also notice that when you go through the checkout stages your credit card entry page is not secure (ie no golden padlock). This could put customers off from ordering online. If you do have a secure checkout then the reason that the padlock is not showing is because of the frames. There is no workaround for that other than to have 'No frames in checkout'. Also with custom frames you may need to set up a custom property in 'Advanced | Custom Properties' called ACT_SETUP_FRAMES_OFF.
              ********************
              Tracey
              SellerDeck

              Comment


                #8
                Hi again Tracey,

                I up in my search 118739C (this can be any product.) shows the search with one item select that one item. Click add to shopping cart. then if you click confim & continue shopping I get the left navigation within the catabody. There is a screen it stays on with a refresh click here if it doesnt refresh & this points to http://www.queenswood.co.uk/buttons/...vigation.shtml which is the screen thats loaded... I dont know were it is getting the left_navigation from but it only happens If i have done a search...

                Thanks again...

                Dave
                David Shorthouse,
                Website Manager,
                http://www.Queenswood.co.uk

                Comment


                  #9
                  Hi Dave,

                  OK, I see. There are a couple of things left to try and if these don't work then I think you will need to raise a support query here for further investigation.

                  In the meantime try the following (please backup the files before making the changes). These are changes made for another customer having problems with frames but they may not necessarily work for your site (although I think it's worth a try):

                  - Open SearchScript.pl in a text editor such as notepad
                  - Search for SECTIONID, you should see...

                  Code:
                  elsif (exists $::g_InputHash{SECTIONID})
                          {
                          my $sSection = ACTINIC::DecodeText($::g_InputHash{SECTIONID}, 
                  $ACTINIC::FORM_URL_ENCODED);
                          my $sHTML = DisplayDirectLinkPage($sSection );
                  - Replace the last line with...

                  Code:
                         my $sHTML = DisplayDirectLinkPage($sSection, $::TRUE );
                  - then search for DisplayDirectLinkPage, you should see...

                  Code:
                  return(DisplayDirectLinkPage($sLink, $sProdRef));
                  - Replace this with...

                  Code:
                  return(DisplayDirectLinkPage($sLink, $::FALSE, $sProdRef));
                  - Scroll down a few lines and you will see 'sub DisplayDirectLinkPage'

                  - At the start of the sub, insert an extra parameter so that...

                  Code:
                  my $sLink       = shift;
                  my $sProdRef    = shift;
                  Becomes...

                  Code:
                  my $sLink       = shift;
                  my $bClearFrames= shift;
                  my $sProdRef    = shift;
                  - About 15 lines below this you will see...

                  Code:
                  $sLink = $::g_InputHash{NOCLEARFRAMES} || !$$::g_pSetupBlob{USE_FRAMES} || 
                  !$$::g_pSetupBlob{UNFRAMED_CHECKOUT} ?
                  - Replace the line with...
                  Code:
                  $sLink = !$bClearFrames || $::g_InputHash{NOCLEARFRAMES} || 
                  !$$::g_pSetupBlob{USE_FRAMES} ?
                  - Close and save the file.

                  - Edit Session.pm.

                  - Search for 'sub InitURLs'

                  - Scroll down to...

                  Code:
                  if ($sReferrer =~ 
                  /$::g_sAccountScriptName.*PRODUCTPAGE\=(?!framenavbar\.html)/i )
                  Comment out this line with a '#' and insert a new line after it so that it
                  reads...
                  Code:
                  #  if ($sReferrer =~ 
                  /$::g_sAccountScriptName.*PRODUCTPAGE\=(?!framenavbar\.html)/i )
                  
                     if ($sReferrer =~ 
                  /$::g_sAccountScriptName.*PRODUCTPAGE\=(?!(framenavbar|index)\.htm(l?))/i 
                  )
                  NOTE: If you are using a topframe too then that also needs to be
                  added to the line above
                  i.e. if ($sReferrer =~
                  /$::g_sAccountScriptName.*PRODUCTPAGE\=(?!(framenavbar|topframe|index)\.htm(l?))/i )
                  Obviously, 'topframe' should be whatever you have called this frame

                  'index' in the above line is the catalog base page name, this will
                  need to be changed if the catalog base page name (Design | Options | Shop Defaults) is different.

                  - Save and close the file and upload your site.

                  These changes should be done in conjunction with the CartManager.pm change given in my previous thread. As I said if this doesn't work then register a support query, where you will be asked for a snapshot. Replace the above files with the original before sending the snapshot through.
                  ********************
                  Tracey
                  SellerDeck

                  Comment


                    #10
                    Hi Tracey,

                    Many thanks for your help I have tried the above & had a problem after clicking add to shopping cart I was getting an error. With both the search & the session scripts. Which I have reverted back to the backup.

                    I am raising a support request on the web now.

                    Many thanks again for your help.

                    Dave
                    David Shorthouse,
                    Website Manager,
                    http://www.Queenswood.co.uk

                    Comment


                      #11
                      I now have this working on 1 machine out of 4.
                      After implementing Traceys fix

                      "return(DisplayDirectLinkPage($sLink, $::FALSE, $sProdRef));" in searchscript.pl

                      Because it works for me on my machine I thought it was due to internet explorer not being upto date so updated one of the other machines & still no joy.

                      Recap as the problem has moved from the original post.

                      When I do a search for a product then click on the extended information link(image) I get could not find file. It then loads the index2.shtml in the info box that was created. (when this happens the link actually points javascript:ShowPopUp('http://www.queenswood.co.uk/buttons/info%5f122953C%2ehtml',200,525);

                      I can no longer create this on my machine using internet explorer but can on firefox.


                      How hard would it be for me to move the site from frames to a different style? Nearly all our problems occure because of the frames.

                      Thanks again.. If you have any other suggestions Id be greatful

                      Thanks,

                      Dave
                      David Shorthouse,
                      Website Manager,
                      http://www.Queenswood.co.uk

                      Comment


                        #12
                        Thanks James,

                        I would like to thank james for suggesting removing the cookies as this was not something I would associate with a problem like this. I have always cleared the internet cache & thought nothing else of it.

                        Thanks to everyone else who helped.

                        Dave.
                        David Shorthouse,
                        Website Manager,
                        http://www.Queenswood.co.uk

                        Comment

                        Working...
                        X