Message if no product meets filter criteria

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

Message if no product meets filter criteria

Post by pixls » 27 Jan 2017, 10:00

Hi

I was wondering if there was a way to implement a message if no product meets the filter criteria. Currently it just displays an empty list. It would be really neat to have a message there.

I tried it building it, but couldnt figure out how.
Does somebody know how to implement this?

Thanks

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Message if no product meets filter criteria

Post by aimeos » 27 Jan 2017, 13:36

Pretty simple: Add your message like "There are no products matching your criteria" if "itemsProductItems" is empty:
https://github.com/aimeos/ai-client-htm ... lt.php#L35

Can you create a pull request for your change too so we will get it into the next Aimeos release? :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply