[Skip to main content](#vessel-content)

#   message after search with zero results

##

- **[vilost](/forum/user/342-vilost "View vilost's Profile")**
- [![vilost's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/342-vilost "View vilost's Profile") Topic Author
- [ Offline](/forum/user/342-vilost)

Less More

- Posts: 19
- Thank you received: 0
-
-

14 years 4 months ago [\#51877](#51877) by [vilost](/forum/user/342-vilost "View vilost's Profile")  *[message after search with zero results](/forum/4-how-to/51877-message-after-search-with-zero-results#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...")* was created by *[vilost](/forum/user/342-vilost "View vilost's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODc3LW1lc3NhZ2UtYWZ0ZXItc2VhcmNoLXdpdGgtemVyby1yZXN1bHRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 4 months ago [\#51976](#51976) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: message after search with zero results](/forum/4-how-to/51877-message-after-search-with-zero-results#51976 "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...")*

You can change the line:
if(!empty($html)){ ?&gt;

to:

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

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODc3LW1lc3NhZ2UtYWZ0ZXItc2VhcmNoLXdpdGgtemVyby1yZXN1bHRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[vilost](/forum/user/342-vilost "View vilost's Profile")**
- [![vilost's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/342-vilost "View vilost's Profile") Topic Author
- [ Offline](/forum/user/342-vilost)

Less More

- Posts: 19
- Thank you received: 0
-
-

14 years 4 months ago [\#52198](#52198) by [vilost](/forum/user/342-vilost "View vilost's Profile")  Replied by *[vilost](/forum/user/342-vilost "View vilost's Profile")* on topic *[Re: message after search with zero results](/forum/4-how-to/51877-message-after-search-with-zero-results#52198 "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...")*

that worked perfectly, thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODc3LW1lc3NhZ2UtYWZ0ZXItc2VhcmNoLXdpdGgtemVyby1yZXN1bHRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.162 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
