Announcement

Collapse
No announcement yet.

Can I show the product reference in the search results?

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

    Can I show the product reference in the search results?

    To do this:

    1. go to 'Design | Library | Layouts' tab

    2. expand the 'Search Results' group (click the '+')

    3. double-click on the 'Standard Search Results' layout to edit it

    4. on line 14 of the code, make a new line, and copy and paste in the code below:

    Product Ref:<Actinic:S_REFNUM/>

    5. click 'OK'

    6. you then need to make a script change, so browse to your 'Site' folder (e.g. Site1)

    7. locate the 'SearchScript.pl' file and open it with a text editor such as notepad

    8. search for the following line of code:

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

    9. directly below this line of code, add:

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

    10. save and close the file

    11. update your site.

    You should now see the product reference appear in the search results.

    SellerDeck 2014
    With this version you simply need to paste the following code into the search results layout that you use for the reference to be visible: -

    Code:
    <Actinic:S_PRODREF/>
Working...
X