Announcement

Collapse
No announcement yet.

How can I set my search results product links to go to the extended info page?

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

    How can I set my search results product links to go to the extended info page?

    The following relies on SellerDeck generating the extended info page names (ie info_productreference.html) and also will not work with customer accounts as it no longer uses the search script to determine if a customer is logged in or not:

    * go to the 'Design' menu and select 'Library'
    * on the 'Layouts' tab, expand the 'Search Results' group (click the '+')
    * double-click on the 'Standard Search Results' layout to edit it
    * look for the 'SearchResultLink' variable (around line 9 on a default layout)
    * replace that variable with:

    <script language="JavaScript" type="text/javascript">
    document.write("<a href='<actinic:variable name="CatalogURL" />info_" +
    "<Actinic:S_REFNUM/>".replace(/[.-]/g,"_") + ".html'>");
    </script>


    * click 'Apply'.

    You also need to make a script change:

    * browse to your site folder and locate the 'SearchScript.pl' file (take a backup)
    * open the file in a text editor such as notepad
    * search for:

    $ACTINIC::B2B->SetXML('ImageLine', $sImage);

    * directly below this line add:

    $ACTINIC::B2B->SetXML('S_REFNUM', $$rarrResults[$nCount]);

    * save and close the file
    * update the site.


    Please note: This will not work with duplicate products to disable indexing for these go to 'Settings | Search Settings | Search Options' and remove the tick from the box 'Index Procuct Duplicates' under the 'Indexing Options' area.
Working...
X