message after search with zero results

  • Posts: 19
  • Thank you received: 0
12 years 5 months ago #51877

I am currently using the filter module for my product search. When one searches for a product which does not exist no message is shown. The page that displays is empty. I want to display a text like "sorry, no product corresponds to your search". Could you guide me where I can add that?

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51976

You can change the line:
if(!empty($html)){ ?>

to:

if(empty($html)){echo 'sorry, no product corresponds to your search';}else{ ?>

in the file "listing" of the view "product" of your front end template via the menu Display>Views.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 5 months ago #52198

that worked perfectly, thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum