- Posts: 19
- Thank you received: 0
message after search with zero results
14 years 4 months ago #51877
by vilost
message after search with zero results was created by vilost
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.
14 years 4 months ago #51976
by nicolas
Replied by nicolas on topic Re: message after search with zero results
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.
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.
14 years 4 months ago #52198
by vilost
Replied by vilost on topic Re: message after search with zero results
that worked perfectly, thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.155 seconds