Announcement

Collapse
No announcement yet.

Capturing a custom search parameter

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

    Capturing a custom search parameter

    v6.1.3 business

    Hi

    I have a client who sells a range of wines, some of which are 'organic' or 'environmentally friendly'. 'Environmentally friendly' is going to be one of the Custom Search parameters, but because some of the wines which fall within this category are not actually certified as organic, he needs a disclaimer to say something along the lines of "You have searched for environmentally friendly wines. The results of your search, listed here, are not necessarily organic wines. If you would like further information about a particular wine please contact us...etc"

    So what I want ideally is a method of testing to see whether one of the custom search parameters was 'environmentally friendly', and if so perhaps a bit of client-side JS in the results template to show or hide some text containing the warning.

    I have custom search in the primary templates on every page.

    Does anyone have any ideas, particularly on how to pass the parameter from the search through to the results page?

    Thanks in advance, Dan
    adaptive-image.co.uk

    #2
    Hi Dan

    particularly on how to pass the parameter from the search through to the results page?
    I'm afraid i have no idea on this. Would it not be easy to enter the plain text in "Advance | Template Manager | Searching" and click on "Results".
    This brings up the "Act_ResultsTemplate.html", where the search results gets listed. Here along the top enter:

    If you have searched for environmentally friendly wines. The results of your search, listed here, are not necessarily organic wines. If you would like further information about a particular wine please contact us...etc"

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      Thanks Nadeem

      Yes, I suppose that would be the simplest option - Hadn't thought of that, I'm always looking for the complicated way to do things!

      Thanks again, Dan
      adaptive-image.co.uk

      Comment

      Working...
      X