Announcement

Collapse
No announcement yet.

Formatting Search Results

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

    Formatting Search Results

    I have a number of questions about the search results layout.

    Firstly, is it true that you cannot use Product Variables directly in the search results, only the search variables available?

    Secondly, is there anyway to use a products thumbnail image in the search results? All examples I have seen use the products main image, reducing the image width to make it smaller. However my clients main product images are huge and as such they each have a thumbnail image associated with them which I use in the product lists within sections.

    Thirdly, is there anyway I can remove the brackets from around the SearchResultSectionName variable? I seem to remember seeing something but cannot find it now, maybe I was dreaming.

    Next. When I run a search, the browser always jumps to the bottom of the page as the focus automatically falls on the search keywords text box. Is there anyway to stop this happening without moving the search fields back to the top of the page?

    And finally! Is there a way I can have an "Add to Cart" button within the search results?

    I wanted to try and get my search results to look the same as the product lists in my sections, however when I tried to include a product layout in the search results it crashed Actinic. The only way I could edit the search results page again without another crash was by going into the database and returning the layout to it original value. This is the reason I came to the conclusion that I couldn't use Product variables in the search results

    Any help would be greatly appreciated. You can see the current implementation of the search at http://shop.sussexscuba.co.uk


    cheers

    Giles
    Giles Thurston
    Float Clear Solutions
    http://www.floatclear.com

    #2
    Hi Giles

    Firstly, is it true that you cannot use Product Variables directly in the search results, only the search variables available?
    This is correct, expect for Thumbnail which does work, see the next question
    Secondly, is there anyway to use a products thumbnail image in the search results?
    Yes, simply go to the "Design" tab, for page layout, select "Search Results", and click on the image, and simply change it to:
    Code:
    <img src="<actinic:variable name="Thumbnail" />" <actinic:variable name="SearchResultProductImageSize" /> />
    Thirdly, is there anyway I can remove the brackets from around the SearchResultSectionName variable? I seem to remember seeing something but cannot find it now, maybe I was dreaming.
    Maybe ... Edit "SearchScript.pl" and find the following line

    Code:
    $sTemp = "($sTemp)";
    You could simply do a search for "( and this will show you that line, remove the brackets, but put a space in there and you should be able to get what you want.

    Next. When I run a search, the browser always jumps to the bottom of the page as the focus automatically falls on the search keywords text box. Is there anyway to stop this happening without moving the search fields back to the top of the page?
    I'm afraid that is the solution to move the search field back to the top page.

    And finally! Is there a way I can have an "Add to Cart" button within the search results?
    I'm afraid this is a wishlist item

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment

    Working...
    X