-
AuthorPosts
-
April 2, 2014 at 10:03 am #196367
Hi guys.
I’ve build a website with a product finder.
But when you filter the products and no product is found, theres no message or something like that.
No message like “Headline: Product finder. No Items were found”…
Heres the url: http://dev.feig-online.de/index.php/de/component/jak2filter/?Itemid=122&isc=1&st=exact&category_id=62&xf_2_range=100|2050&xf_5_range=8000|10000
Any help?
Greetings
TobiThanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
April 4, 2014 at 10:28 am #529510Please PM me FTP credentials of your site, I’ll help you to update result page to display that message.
ronny_vdb Friendronny_vdb
- Join date:
- January 2012
- Posts:
- 9
- Downloads:
- 35
- Uploads:
- 4
- Thanked:
- 2 times in 1 posts
April 15, 2014 at 9:47 pm #531043It is ‘basic functionality’ to display a message like ‘No search results found’ when there are no results. Just showing an empty page is not very user-friendly.
Could you please share your solution to show this with all your customers and not via pm ?Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
April 16, 2014 at 9:29 am #531102I agree that it is basic function, however this code is placed in search result page and no option of K2 to control to show or hide now.
As you know our component only helps to filter data, and result page still uses layout of K2 component. This helps not to manage your theme in many places.
<blockquote>Could you please share your solution to show this with all your customers and not via pm ?</blockquote>
It requires certain knowledge of programming to edit the template file. Anyway, you can give it a try with steps below:
1. Open the file
components/com_k2/templates//category.phpReplace with current K2 theme that you are using
2. Find the last code block (you will see many code block, just find the last one)
[PHP]<?php endif; ?>[/PHP]3. and replace it with
[PHP]
<?php else: ?>
<div>
No Item found!
</div>
<?php endif; ?>[/PHP]Update content for No Item block as you want.
ronny_vdb Friendronny_vdb
- Join date:
- January 2012
- Posts:
- 9
- Downloads:
- 35
- Uploads:
- 4
- Thanked:
- 2 times in 1 posts
April 16, 2014 at 10:17 pm #531180I’m afraid that one does not work for me.
Are you sure this needs to be changed in components/com_k2/templates//category.php ?
I don’t think that file is called after performing a find with your module…Thanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
April 22, 2014 at 2:43 am #531852<blockquote>Are you sure this needs to be changed in components/com_k2/templates//category.php ?
I don’t think that file is called after performing a find with your module…</blockquote>JA K2 filter helps to filter data based on search conditions, but it uses category view of K2 component to display search result.
If you tried solution above but it did not help, that means you seem to have made some customization on that layout before. Please attach that file here, I check and help you out.
dbc021191 Frienddbc021191
- Join date:
- May 2015
- Posts:
- 18
- Downloads:
- 8
- Uploads:
- 9
- Thanked:
- 1 times in 1 posts
August 22, 2016 at 11:22 am #961972Hi Thanh
I have tried the same, but can’t get the error message translated :/
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
August 24, 2016 at 10:14 am #962658 -
AuthorPosts
This topic contains 7 replies, has 5 voices, and was last updated by Luna Garden 8 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum