Search for "exact phrase" or "all of these words"

Hello!



I’m looking for a way to modify the quick search to do as follow:


  • I insert two words in the quick search
  • Cs-cart search for “the exact phrase” and show results
  • If there is no results than automatically it search for “all of these words” and show results



    Does anyone have an idea on how to do it?



    Thank you

    Luca

See this KnowledgeBase article:

[url]CS-Cart Documentation — CS-Cart 4.15.x documentation



Bob

Hi Bob,



thank you for your reply but I think maybe I did not explain correctly.



What’s I need is an “automatic switch” between two mode of search.



IF “exact phrase” do not produce any results THEN use “any of these words” :smiley:



Thank you

Luca