test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • sunconcept Friend
    #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
    Tobi

    Thanh Nguyen Viet Friend
    #529510

    Please PM me FTP credentials of your site, I’ll help you to update result page to display that message.

    ronny_vdb Friend
    #531043

    It 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 Friend
    #531102

    I 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.php

    Replace 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 Friend
    #531180

    I’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 Friend
    #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 Friend
    #961972

    Hi Thanh

    I have tried the same, but can’t get the error message translated :/

    Luna Garden Moderator
    #962658

    Hi,

    Above solution was for old version.
    For latest version, go to:

    modules\mod_jak2filter\assets\js\jak2filter.js

    Find for:

     jak2Highlight(container, jQuery('.ja-k2filter input[name="searchword"]').val());
        } else {
            container.html('No Item found!');
        }

    Change text No Item found! to any text you want.

Viewing 8 posts - 1 through 8 (of 8 total)

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