Announcement

Collapse
No announcement yet.

Open Extended Info Page at Search Results

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

    Open Extended Info Page at Search Results

    How do I change the product link in the Search Results Page to open up the Product Extended Info page instead of the standard list of products in the sections page?

    #2
    There's no easy way to do this AFAIK as the search scripts are unaware as to whether a product has a popup page or not.

    You could patch SearchScript.pl so that it checks for a file called "info_<productreference>.html" and replaces the usual link with one to that filename if it exists. You'll need to know some Perl.

    Even if you do this the extended info pages return to the calling page so you'd probably end up back in the search script rather than in the product page. You'll have to try it to see.

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks for the info.

      Ok .. I'll try that. I have no knowledge of perl but I guess I'll just tinkle around a bit and see what happens.

      Btw, great job on the free add-on scripts on your website, Norman. They're life-savers.

      Comment


        #4
        how to get the REF?

        I'd like to do the same thing - all my products have an extended Info page so I don't need to check if one exists, just link to it.

        Trouble is, I don't know how to get the Product Reference from within the search results...

        I have tried this:

        <A HREF="javascript:ShowPopUp('../info_<Actinic:S_REF/>.html',550,400)">

        But S_REF doen't exist. Would you know how to get the ref by any chance?

        Cheers,
        Andrew

        Comment


          #5
          Have answered my own question (with a little help from some similar code on norman's site). Posting solution in case anyone else is interested and so it won't waste anyone's time:

          Open SearchScript.pl. Find the section with the following heading:

          #
          # Build the replacement tags
          #

          Insert the following 2 lines of code:

          ----
          my $TheProdRef = $$rarrResults[$nCount];
          $ACTINIC::B2B->SetXML('S_REF', $TheProdRef );
          ----

          Then you can access the extended info page using

          javascript:ShowPopUp('../acatalog/info_<Actinic:S_REF/>.html',550,400)

          Comment

          Working...
          X